AddInvoice - method

Input

Input is .xml file with following marks.

Element

Item description

Obligation

<InvoiceHeader>

 

yes

+<InvoiceYear>

Invoice year

yes

+<CustomerID>

Customer ID

yes

+<DeliveryTitle1>

Delivery title1

no

+<DeliveryTitle2>

Delivery title2

no

+<DeliveryTitle3>

Delivery title3

no

+<DeliveryAddress>

Delivery address

no

+<DeliveryHouseNo>

Delivery house number

no

+<DeliveryPostalCode>

Delivery postal code

no

+<DeliveryCity>

Delivery city

no

+<DeliveryCountry>

Delivery country

no

+<InvoiceDate>

Invoice date

no

+<DeliveryDateFrom>

Delivery date from

no

+<DeliveryDateTo>

Delivery date to

no

+<DueDate>

Due date

no

+<CurrencyID>

Currency ID

no

+<ExchangeRateDate>

Exchange rate date

no

+<Document>

Document

no

+<Comment>

Comment

no

+<DocumentHeaderDescription>

Document header description

no

+<DocumentFooterDescription>

Document footer description

no

+<LanguageID>

Language ID

no

+<VATCalculated>

VAT calculated

no

+<VATInvoiceType>

VAT invoice type

no

+<PriceListID>

Price list ID

no

+<RebatePercentage>

Rebate percentage

no

+<RebatePercentage2>

2nd Rebate percentage

no

+<RebatePercentage3>

3rd Rebate percentage

no

+<RebatePercentage4>

4th Rebate percentage

no

+<RebatePercentage5>

5th Rebate percentage

no

+<CostCenterID>

Cost center ID

no

+<CostUnitID>

Cost unit ID

no

+<WorkOrderID>

Work order ID

no

+<ClerkID>

Clerk ID

no

+<AnalyticID>

Analytic ID

no

+<AccountingBookGroupID>

Accounting book group ID

no

+<ApplicationName>

Application name

no

+<LinkToDocument>

Link to document

no

+<AccountingDescription>

Accounting description

no

+<InvoiceBook>

Invoice book

yes

+<DeliveryType>

Delivery type

no

+<ParityCode>

Parity code

no

+<CustomerPayerID>

Customer payer ID

no

+<PaymentCodeID>

Payment code ID

no

+<ParityPlace>

Parity place

no

+<RebateAmountAmount>

Rebate amount amount

no

+<AuthorizationCode>

Authorization code

no

+<DocumentSalesType>

Document sales type

no

+<Analytic_AN1_ID>

Analytic AN1 ID

no

+<Analytic_AN2_ID>

Analytic AN2 ID

no

+<Analytic_AN3_ID>

Analytic AN3 ID

no

+<DateVD>

Date VD

no

+<CodeVD>

Code VD

no

+<CodeVR>

Code VR

no

+<DiscountGroupID>

Discount group ID

no

+<AnnexID> Invoice annex ID in DMS no
+<FolderID> Folder ID associated to invoice no
+<PaymentReferenceExternal> External referenc number no
+<ContactPerson> Contact person no

+<InvoiceLines>

 

yes

++<InvoiceLine>

 

yes

+++<LineNumber>

Line number

yes

+++<ItemID>

Item ID

yes

+++<ItemIDType>

Item ID type

yes

+++<Series>

Series

no

+++<ItemTitle1>

Item title1

no

+++<ItemTitle2>

Item title2

no

+++<UnitOfMeasurement>

Unit of measurement

no

+++<ItemDescription>

Item description

no

+++<VATRateID>

VAT rate ID

no

+++<Note>

Note

no

+++<Quantity>

Quantity

yes

+++<Price>

Price

no

+++<DiscountPercentage>

Discount percentage

no

+++<DiscountPercentage2>

Discount percentage2

no

+++<DiscountPercentage3>

Discount percentage3

no

+++<DiscountPercentage4>

Discount percentage4

no

+++<DiscountPercentage5>

Discount percentage5

no

+++<DiscountAmountAmount>

Discount amount amount

no

+++<CostCenterID>

Cost center ID

no

+++<CostUnitID>

Cost unit ID

no

+++<WorkOrderID>

Work order ID

no

+++<ClerkID>

Clerk ID

no

+++<AnalyticID>

Analytic ID

no

+++<Analytic_AN1_ID>

Analytic AN1 ID

no

+++<Analytic_AN2_ID>

Analytic AN2 ID

no

+++<Analytic_AN3_ID>

Analytic AN3 ID

no

+++<VATCalculated>

VAT calculated

no

+++<VATRateDescription>

VAT rate description

no

+++<VATInvoiceType>

VAT invoice type

no

+++<Reference>

Reference

no

+++<TextLine>

Text line

no

+++<PriceIncludeVAT>

Indicate if price includes VAT

no

+++<RealizationAccount>

Realization account

no

+++<RabateAccount>

Rabate account

no

 

 

 

Output

The output is a .xml file in which it is stated, if the method is successful or not. IF methode is successful returns number of added invoice.

Natisni