Purchase
/xml/Purchase
Ostolaskujen luonti / Creation of purchase invoices.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
SupplierId | integer | snro |
| * |
Type | integer | Laji | Ostolaskun laji / Type of purchase invoice | * |
Sum | decimal | summa |
| * |
Bic | string |
|
|
|
CashDate | date | kassapvm | Asetetaan vain jos maksuehto on 0 tai 4 |
|
CashDiscount | decimal | kassamk | Asetetaan vain jos maksuehto on 0 tai 4 |
|
Currency | string | valuutta | Oletuksena haetaan toimittajalta |
|
EURSum | decimal | eursumma |
|
|
ExchangeRate | decimal | vkerroin |
|
|
Expenses | string | ukulut | Joko J eli saaja maksaa tai T eli Toimeksiantaja maksaa |
|
Iban | string |
|
|
|
Language | string | kieli |
|
|
Message | string | viesti |
|
|
NetDate | date | nettopvm | Asetetaan vain jos maksuehto on 0 tai 4 |
|
Note | string | muistilappu |
|
|
PaymentReason | string | maihe |
|
|
PaymentTermId | integer |
|
|
|
Priviledge | integer | etuoikeus | Hyväksytyt arvot ovat 0-3 ja oletus on 0. 0 = Normaali, Normal 1 = Seurannassa, FollowedUp 2 = Kiireinen, Urgent 3 = Document Centerissä, InDocumentCenter |
|
PurchaseDate | date | lapvm |
|
|
Reference | string | viite |
|
|
RFReference | string | rfviite |
|
|
SupplierAccountNumber | string | stili |
|
|
TBill | string | tlasku |
|
|
ValueDate | date | arvopvm |
|
|
VatEntryMethod | integer | kirjaustapa |
|
|
xml/Purchase/PurchaseInvoiceRows/PurchaseInvoiceRow |
|
|
|
|
Credit | Decimal | kredit |
| * |
CrAccountNumber | integer | kredittilinumero |
| * |
Debit | Decimal | debet |
| * |
DbAccountNumber | integer | debettilinumero |
| * |
CostCenter | String | kpaikka | Asetetaan molemmille tileille, paitsi jos tilillä on kustannuspaikkapakollisuus "2.Ei käytössä". |
|
Explanation | String | selite |
|
|
GrossSum | Decimal | verollinen |
|
|
Identification | String | tunniste |
|
|
NetSum | Decimal | veroton |
|
|
Project | String | projekti |
|
|
Vat | Decimal | vero |
|
|
VatSum | Decimal | alvsumma |
|
|
Output /xml/Purchase |
|
|
|
|
Result | boolean |
| true, jos tallennus onnistui / true, if succesfully saved |
|
Warning | String |
| Huomauttaa, jos samalle toimittajalle löytyy jo samalla laskunumerolla (TBill) ostolasku |
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<Purchase>
<SupplierId>123</SupplierId>
<Type>1</Type>
<Sum>100</Sum>
<PurchaseInvoiceRows>
<PurchaseInvoiceRow>
<CrAccountNumber>2670</CrAccountNumber>
<DbAccountNumber>1095</DbAccountNumber>
<Credit>100</Credit>
<Debit>100</Debit>
</PurchaseInvoiceRow>
</PurchaseInvoiceRows>
</Purchase>
</xml>
Read purchase invoice
/xml/ReadPurchaseInvoice/
Ostolaskun luku / Read purchase invoice.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
Number | integer | Numero |
| * |
Type | integer | Laji | Ostolaskun laji / Type of purchase invoice | * |
Output /xml/PurchaseInvoice/ |
|
|
|
|
Number | integer | numero |
|
|
SupplierId | integer | snro |
|
|
SupplierName | string | snimi1 |
|
|
Sum | decimal | summa |
|
|
Open | decimal | avoinna |
|
|
PurchaseDate | date | lapvm |
|
|
NetDate | date | nettopvm |
|
|
Reference | string | viite |
|
|
TBill | string | tlasku |
|
|
State | integer | tila |
|
|
Output /xml/PurchaseInvoice/PurchaseRows/PurchaseRow |
|
|
|
|
Account | String | tili |
|
|
Explanation | String | selite |
|
|
Debit | Decimal | debet |
|
|
Credit | Decimal | kredit |
|
|
CostCenter | String | kpaikka |
|
|
Project | String | projekti |
|
|
Quantity | Decimal | kpl |
|
|
UnitPrice | Decimal | ovh |
|
|
NetSum | Decimal | veroton |
|
|
GrossSum | Decimal | verollinen |
|
|
Read purchase invoice list
/xml/ReadPurchaseInvoiceList/
Ostolaskulistan luku / Read purchase invoice list.
Read purchase payment list
/xml/ReadPurchasePaymentList/
Ostolaskujen maksusuoritusten luku / Read purchase payment list.
