Sisukord | ||
---|---|---|
|
SPOKU oskab suhelda Business Central-iga ning initsialiseerida see registri juures.
...
Koodilõik |
---|
{if $register.esitatud_kp >= '2021-01-01'}
{if $register.asutus.omandivorm == -1}
{registriTeenus teenus='saada_andmed_bc' konto='304300' dim_kood1='TT' dim_vaartus1='31800' dim_kood2='TKL' dim_vaartus2='334400' objekti_konto='103300' dim_kood3='TP' dim_vaartus3='833699' dim_kood4='ÜKSUS' dim_vaartus4='201'}
{elseif $register.asutus.omandivorm == 4}
{registriTeenus teenus='saada_andmed_bc' konto='304300' dim_kood1='TT' dim_vaartus1='31800' dim_kood2='TKL' dim_vaartus2='334400' objekti_konto='103330' dim_kood3='TP' dim_vaartus3='833399' dim_kood4='ÜKSUS' dim_vaartus4='201'}
{else}
{registriTeenus teenus='saada_andmed_bc' konto='304300' dim_kood1='TT' dim_vaartus1='31800' dim_kood2='TKL' dim_vaartus2='333400' objekti_konto='103300' dim_kood3='TP' dim_vaartus3='833599' dim_kood4='ÜKSUS' dim_vaartus4='201'}
{/if}
{else}Andmeid ei saadeta BCsse, kuna maksudeklaratsiooni koostamise kuupäev varasem kui 01.01.2021
{/if} |
NÄITED
Saadetav BC-sse päring addSalesDocument - Kohustuste saatmine BCsse (päis)
{code}
{ "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 }{code}