...
Uue asutuse reklaamimaksu viitenumber tekib deklaratsiooni esitamisega eeldusel, et vormi lisaväljade osas on olemas väli tüübiga "Taotleja andmed: Viitenumber". Antud valik on olemas ainult ühel SPOKU kasutajal (andmebaasi sp_viitenr tabelis on rida olemas).
...
Deklaratsiooni (nõue) saatmine Business Central-isse
Deklaratsiooni andmete saatmist saab häälestada SPOKU-s valikuga ...
Andmevälja tüübiks on "Tekst" ning valemi näide (dimensioonide väärtused on illustratiivsed). Antud valem saadab vastavalt taotleja omandivormile omad dimentsiooni väärtused ning ainult need deklaratsioonid, mis oli esitatud alates 01.01.2021
...
Näide 1. addSalesDocument
Saadetav BC-sse päring addSalesDocument - Kohustuste saatmine BCsse (päis)
Laienda |
---|
title | Vaatamiseks tee lahti >>> |
---|
|
Koodilõik |
---|
{ "documentType": "Invoice", "documentNo": "DEKL-2021/00054", "lineCount": 1, "sellToCustomerNo": "10283105", "sellToCustomerName": "IT Medical Tecnologies OÜ", "billToCustomerNo": "10283105", "billToCustomerName": "IT Medical Tecnologies OÜ", "referenceNo": "4102831050", "objectAccountNo": "103000", "invoiceDescription": "Reklaamimaksu deklaratsioon (01.08.2021-08.09.2021)", "documentDate": "2021-08-05", "postingDate": "2021-08-05", "dueDate": "2021-08-19", "relatedInvoiceNo": null, "dimCode1": "TT", "dimValue1": "01800", "dimCode2": "TKL", "dimValue2": "304400", "dimCode3": "TP", "dimValue3": "800599", "dimCode4": "ÜKSUS", "dimValue4": "201", "dimCode5": null, "dimValue5": null, "dimCode6": null, "dimValue6": null, "dimCode7": null, "dimValue7": null, "dimCode8": null, "dimValue8": null, "dimCode9": null, "dimValue9": null, "dimCode10": null, "dimValue10": null, "dimCode11": null, "dimValue11": null, "dimCode12": null, "dimValue12": null } |
|
...
Näide 2. addSalesDocumentLine
Saadetav BC-sse päring addSalesDocumentLine - Kohustuste saatmine BCsse (rida)
Laienda |
---|
title | Vaatamiseks tee lahti >>> |
---|
|
Koodilõik |
---|
{
"documentType": "Invoice",
"documentNo": "DEKL-2021/00054",
"lineNo": 1,
"accountNo": "304400",
"unitOfMeasureCode": "TK",
"amount": 356.77,
"description": "Reklaamimaksu deklaratsioon (01.08.2021-08.09.2021)",
"INF3": false,
"dimCode1": "TT",
"dimValue1": "01800",
"dimCode2": "TKL",
"dimValue2": "304400",
"dimCode3": "TP",
"dimValue3": "800599",
"dimCode4": "ÜKSUS",
"dimValue4": "201",
"dimCode5": null,
"dimValue5": null,
"dimCode6": null,
"dimValue6": null,
"dimCode7": null,
"dimValue7": null,
"dimCode8": null,
"dimValue8": null,
"dimCode9": null,
"dimValue9": null,
"dimCode10": null,
"dimValue10": null,
"dimCode11": null,
"dimValue11": null,
"dimCode12": null,
"dimValue12": null
} |
|
BC-st tulnud vastus (päring õnnestus)
Laienda |
---|
title | Vaatamiseks tee lahti >>> |
---|
|
Koodilõik |
---|
{
"@odata.context": "https://pperp.piksel.ee:3058/SAUE150SERVLIVE/ODataV4/$metadata#Company('Saue%20Piksel%2019.05.2021')/addSalesDocumentLine/$entity",
"@odata.etag": "W/\"JzQ0O0NNUWRFcFY4TFExS3ZiT3RwbHBjT1RTQUcrMnQ3eGc4T29BYWJVZjhlbDg9MTswMDsn\"",
"documentType": "Invoice",
"documentNo": "DEKL-2021/00054",
"lineNo": 1,
"accountNo": "304400",
"unitOfMeasureCode": "TK",
"amount": 356.77,
"description": "Reklaamimaksu deklaratsioon (01.08.2021-08.09.2021)",
"INF3": false,
"dimCode1": "TT",
"dimValue1": "01800",
"dimCode2": "TKL",
"dimValue2": "304400",
"dimCode3": "TP",
"dimValue3": "800599",
"dimCode4": "ÜKSUS",
"dimValue4": "201",
"dimCode5": "",
"dimValue5": "",
"dimCode6": "",
"dimValue6": "",
"dimCode7": "",
"dimValue7": "",
"dimCode8": "",
"dimValue8": "",
"dimCode9": "",
"dimValue9": "",
"dimCode10": "",
"dimValue10": "",
"dimCode11": "",
"dimValue11": "",
"dimCode12": "",
"dimValue12": ""
} |
|
Näide 3. referenceNoBalance (Saldo päring)
SPOKUst saadetav päring
Laienda |
---|
title | Vaatamiseks tee lahti >>> |
---|
|
Koodilõik |
---|
https://pperp.piksel.ee:3058/SAUE150SERVLIVE/ODataV4/Company('Saue%20Piksel%2019.05.2021')/referenceNoBalance?$filter=paymentReferenceNo%20eq%20'4499030200128' |
|
BC-st tulev vastus
Laienda |
---|
title | Vaatamiseks tee lahti >>> |
---|
|
Koodilõik |
---|
{
"@odata.context": "https://pperp.piksel.ee:3058/SAUE150SERVLIVE/ODataV4/$metadata#Company('Saue%20Piksel%2019.05.2021')/referenceNoBalance",
"value": []
} |
|
Näide 4. customerTransaction (Asutuse tehingute küsimine)
SPOKUst saadetav päring
Laienda |
---|
title | Vaatamiseks tee lahti >>> |
---|
|
Koodilõik |
---|
https://pperp.piksel.ee:3058/SAUE150SERVLIVE/ODataV4/Company('Saue%20Piksel%2019.05.2021')/customerTransactions?$filter=paymentReferenceNo%20eq%20'4109293390' |
|
BC-st tulev vastus
Laienda |
---|
title | Vaatamiseks tee lahti >>> |
---|
|
Koodilõik |
---|
{
"@odata.context": "https://pperp.piksel.ee:3058/SAUE150SERVLIVE/ODataV4/$metadata#Company('Saue%20Piksel%2019.05.2021')/customerTransactions",
"value": []
} |
|
...