Credit-invoice-API-ENG: erinevus redaktsioonide vahel
Mine navigeerimisribale
Mine otsikasti
(Uus lehekülg: 'When there is a need to post a Credit Invoice type invoice that cancels the invoice previously issued to the customer, there are two important points: * Payment term in invoice header is "K" * Row type "3" must be specified where original invoice number is saved * other rows may be the same as in original invoice but also it can be partial - for example only one of the originally sold items are returned FOr example there is original sales invoice with no. 200005. Sum with...') |
Resümee puudub |
||
2. rida: | 2. rida: | ||
* Payment term in invoice header is "K" | * Payment term in invoice header is "K" | ||
* Row type "3" must be specified where original invoice number is saved | * Row type "3" must be specified where original invoice number is saved in field "OrdRow" | ||
* other rows may be the same as in original invoice but also it can be partial - for example only one of the originally sold items are returned | * other rows may be the same as in original invoice but also it can be partial - for example only one of the originally sold items are returned | ||
For example there is original sales invoice with no. 200005. Sum without VAT is 450.00 and VAT included 540.00 | |||
[[Fail:Algne arve.png|raamita|465x465px]] | [[Fail:Algne arve.png|raamita|465x465px]] |
Viimane redaktsioon: 28. juuni 2024, kell 08:44
When there is a need to post a Credit Invoice type invoice that cancels the invoice previously issued to the customer, there are two important points:
- Payment term in invoice header is "K"
- Row type "3" must be specified where original invoice number is saved in field "OrdRow"
- other rows may be the same as in original invoice but also it can be partial - for example only one of the originally sold items are returned
For example there is original sales invoice with no. 200005. Sum without VAT is 450.00 and VAT included 540.00
To credit this invoice we must POST new invoice with correct cust code, pay deal and original invoice information in row. First row stp=3 and OrdRow=200005.
Example:
set_field.InvDate=2021-10-01&
set_field.CustCode=5&
set_field.PayDeal=K&
set_row_field.0.stp=3&
set_row_field.0.OrdRow=200005&
set_row_field.1.ArtCode=1&
set_field.OKFlag=1&
Response in XML:
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<message description="Kreeditarve 200006"></message>
<data register="IVVc" sequence="7625521" url="/api/1/IVVc/200007" systemversion="8.5.39.314">
<IVVc>
<SerNr>200007</SerNr>
<InvDate>2021-10-01</InvDate>
<CustCode>5</CustCode>
<Math></Math>
<PayDate>2021-10-01</PayDate>
<Addr0>Näidis OÜ</Addr0>
<Addr1>Rõõmu puiestee 123</Addr1>
<Addr2>Päikese, 11212</Addr2>
<PayDeal>K</PayDeal>
<OKFlag>1</OKFlag>
<pdays>0</pdays>
<pdvrebt>0</pdvrebt>
<pdrdays>0</pdrdays>
<InvType>3</InvType>
<ARAcc>1210</ARAcc>
<CredInv>200005</CredInv>
<CredMark>K</CredMark>
<SalesMan>KAUPO</SalesMan>
<TransDate>2021-10-01</TransDate>
<CurncyCode>EUR</CurncyCode>
<Sign>KRISTIINA</Sign>
<FrGP>0.00</FrGP>
<Sum0>0.00</Sum0>
<Sum1>450.00</Sum1>
<Sum3>90.00</Sum3>
<Sum4>540.00</Sum4>
<VATNr>EE233323233</VATNr>
<Location>PL</Location>
<CalcFinRef>20000 70000 00052</CalcFinRef>
<BaseSum4>540.00</BaseSum4>
<TotGP>450.00</TotGP>
<RetValue>-540.00</RetValue>
<TotQty>1</TotQty>
<SumIncCom>540.00</SumIncCom>
<RetnValue>-540.00</RetnValue>
<TransTime>14:17:47</TransTime>
<ServiceDelDate>2021-10-01</ServiceDelDate>
<RefStr>2000079</RefStr>
<NoTAXonVAT>1</NoTAXonVAT>
<TotalwoTAX>1</TotalwoTAX>
<RegDate>2021-10-01</RegDate>
<RegTime>14:17:47</RegTime>
<OKBy>KRISTIINA</OKBy>
<GPProc>100.0</GPProc>
<RegNr1>12345678</RegNr1>
<rows>
<row rownumber="0">
<stp>3</stp>
<OrdRow>200005</OrdRow>
</row>
<row rownumber="1">
<stp>1</stp>
<ArtCode>1</ArtCode>
<Quant>1</Quant>
<Price>450.00</Price>
<Sum>450.00</Sum>
<SalesAcc>3100</SalesAcc>
<rowGP>450.00</rowGP>
<Spec>Tõukeratas "Tõuks"</Spec>
<VATCode>1</VATCode>
<UnitCode>TK</UnitCode>
<TaxMatrix></TaxMatrix>
<UnitComment>tükk</UnitComment>
</row>
</rows>
</IVVc>
</data>
Credit invoice in Standard Books: