User Tools

Site Tools



en:xml_direct

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:xml_direct [2025/07/30 15:01] – [Sisendid] toomasen:xml_direct [2025/08/04 09:16] (current) toomas
Line 1: Line 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// 
- 
 ======XML Direct ====== ======XML Direct ======
 =====Introduction ===== =====Introduction =====
-XML Direct is a standardized interface that operates through a common access point and consists of components that can be selected individually as needed.+Introduction 
 +**XML Direct** is a standardized integration interface designed to provide seamless, structured access to business-critical data through a single unified endpoint. The interface is modular and configurable, allowing organizations to select only the components relevant to their needs. 
 + 
 +All components within the XML Direct interface follow a **fixed field structure**, ensuring a **uniform data format** across all Directo customer environments. This common structure enables faster implementation and easier maintenance, as no customer-specific development is required.
  
-The fields of all components are fixed – this means that the data format and structure are uniform across all Directo customer basesDevelopments are made based on the principle of a shared solution, and activating the interface does not require any customization from Directo.+=====Key Features ===== 
 +  * **Modular Architecture**: Components (e.g., customers, invoices, inventory) can be enabled individually according to specific integration requirements. 
 +  * **Uniform Data Format**: Field definitions and data structure are standardized across all implementations, minimizing inconsistencies. 
 +  * **Shared Development Model**: Enhancements and updates are applied centrally and benefit all users, with no need for client-specific customization
 +  * **Secure Access via API Keys**: 
 +    * Multiple API keys can be generated and assigned to different partners. 
 +    * Each API key can be restricted to access only specific components. 
 +    * This provides enhanced **flexibility** and **data security**.
  
-The interface allows for the creation of multiple different API keys to provide secure access to multiple partnersEach API key can have access only to selected components, which increases flexibility and information security.+=====Implementation Considerations ===== 
 +Prior to implementation, it is essential to
 +  * Define the **scope of integration** 
 +  * Identify the **required components**.  
 +  * Ensure the technical partner has access to the necessary documentation and authentication details.
  
-Before implementation, it must be agreed upon which components are necessary.+Once agreed upon, activating the XML Direct interface is straightforward and does not require any Directo-side development or configuration.
  
 =====API Key ===== =====API Key =====
Line 79: Line 91:
  
 ====Inputs ==== ====Inputs ====
-===Arved=== +===Invoices=== 
-what=invoice [[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_arved.xsd |Skeem]]+what=invoice [[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_arved.xsd |Schema]]
  
 +== Header: ===
 +^ XML field             ^ SQL field             ^ UI field                             ^ Explanation                                                                                                                                                           ^
 +| session_id            | x                                                          | for internal use at Directo side, do not send this field!                                                                                                               |
 +| number                | number                | Invoice                              | document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary                      |
 +| date                  | aeg                   | Date                                 | ALT.FROM: current time                                                                                                                                                |
 +| duedate               | aeg2                  | Due date                             | ALT.FROM: paymentterm                                                                                                                                                 |
 +| transactiondate       | kande_aeg                                                  |                                                                                                                                                                       |
 +| vatzone               | maa                   | VAT zone                             | local = 0, EU = 1, export = 2 ,  ALT.FROM: customer > 0                                                                                                                 |
 +| paymentterm           | tingimus              | P-term                               | ALT.FROM: customer ,  if receipt creation is used, this code also becomes the payment method of the receipt                                                          |
 +| ordernumber           | tellimusenr           | Order no.                            |                                                                                                                                                                       |
 +| latepaymentpenalty    | viivis                | Late payment penalty                 | ALT.FROM: customer                                                                                                                                                    |
 +| object                | objekt                | Object                               | ALT.FROM: tr.params                                                                                                                                                   |
 +| project               | projekt               | Project                              |                                                                                                                                                                       |
 +| account               | konto                 | Debt account                                                                                                                                                                                               |
 +| country               | asumaa                | Destination country                  | ALT.FROM: customer                                                                                                                                                    |
 +| currency              | valuuta               | Currency                             | ALT.FROM: glob.settings > 'EUR'                                                                                                                                       |
 +| currencyrate          | kurssbv1              | Rate                                 | ALT.FROM: ECB current published rates                                                                                                                                 |
 +| customercode          | klient_kood           | Customer                             | mandatory by default!                                                                                                                                                 |
 +| customername          | klient_nimi                                                | ALT.FROM: customer                                                                                                                                                    |
 +| orderer_code          | klient_tellija        |                                      |                                                                                                                                                                       |
 +| contact               | esindaja              | Their representative                 | ALT.FROM: customer                                                                                                                                                    |
 +| comment               | kommentaar            | Comment                              |                                                                                                                                                                       |
 +| intcomment            | sisekommentaar        | Internal comment                                                                                                                                                                                           |
 +| salesman              | myyja                 | Sales agent                          | ALT.FROM: tr.params > 'XML'                                                                                                                                           |
 +| language              | keel                  | Language                             | ALT.FROM: customer                                                                                                                                                    |
 +| customerordernumber   | klienditellimus       | Customer's order no.                                                                                                                                                                                       |
 +| email                 | email                 | e-mail                               | ALT.FROM: customer                                                                                                                                                    |
 +| address1              | aadress1              | address, ! according to settings     | ALT.FROM: customer                                                                                                                                                    |
 +| address2              | aadress2              | address, ! according to settings     | ALT.FROM: customer                                                                                                                                                    |
 +| address3              | aadress3              | address, ! according to settings     | ALT.FROM: customer                                                                                                                                                    |
 +| phone                 | telefon               | Phone                                | ALT.FROM: customer                                                                                                                                                    |
 +| fax                   | faks                  | Fax                                  |                                                                                                                                                                       |
 +| deliveryname          | klientnimi_lahetusel  | Name on delivery                                                                                                                                                                                           |
 +| deliveryaddress1      | lahetusaadress1       | delivery address, ! according to settings |                                                                                                                                                                    |
 +| deliveryaddress2      | lahetusaadress2       | delivery address, ! according to settings |                                                                                                                                                                    |
 +| deliveryaddress3      | lahetusaadress3       | delivery address, ! according to settings |                                                                                                                                                                    |
 +| priceformula          | hinnakiri             | Price formula                        |                                                                                                                                                                       |
 +| vatregno              | kmregnumber           | VAT Reg. no                          | ALT.FROM: customer                                                                                                                                                    |
 +| datafield1            | lisa_field1           | Add. field 1, ! or according to settings |                                                                                                                                                                    |
 +| datafield2            | lisa_field2           | Add. field 2, ! or according to settings |                                                                                                                                                                    |
 +| datafield3            | lisa_field3           | Add. field 3, ! or according to settings |                                                                                                                                                                    |
 +| datafield4            | lisa_field4           | Add. field 4, ! or according to settings |                                                                                                                                                                    |
 +| datafield5            | lisa_field5           | Add. field 5, ! or according to settings |                                                                                                                                                                    |
 +| datafield6            | lisa_field6           | Add. field 6, ! or according to settings |                                                                                                                                                                    |
 +| datafield7            | lisa_field7           | Add. field 7, ! or according to settings |                                                                                                                                                                    |
 +| quotation             | pakkumine             | Offer                                |                                                                                                                                                                       |
 +| contractnumber        | leping                | Contract                                                                                                                                                                                                   |
 +| prepayment            | ettemaksu_arve        |                                      | 1 for prepayment invoice, 0 for regular invoice                                                                                                                       |
 +| type                  | tyyp                  |                                      |                                                                                                                                                                       |
 +| status                | staatus               | Status                                                                                                                                                                                                     |
 +| paymenttotal          | laekumine_summa                                            | :!: Positive number will create receipt with same doc. number. If receipt with this number already exists, receipt will not be created and no notification will be issued |
 +| confirm               | kinnita                                                    | "1" - confirm document                                                                                                                                                |
 +| stock                 | ladu                  | Stock                                | ALT.FROM: tr.params                                                                                                                                                   |
 +| creditedinvoice       | kredarve              | Credit invoice                                                                                                                                                                                             |
 +| asset                 | inventar              | Asset                                |                                                                                                                                                                       |
 +| dealtype              | tehinguliik           | Transaction type                                                                                                                                                                                           |
 +| delivery              | lahetusaeg            | Delivery time                        |                                                                                                                                                                       |
 +| deliveryterm          | lahetustingimus       | Deliv. term.                         | ALT.FROM: customer                                                                                                                                                    |
 +| deliverytermcomment   | lahetustingimus_komm  | Deliv. term.                                                                                                                                                                                               |
 +| deliverymethod        | lahetusviis           | Delivery method                      |                                                                                                                                                                       |
 +| deliverymethodcomment | lahetusviis_komm      | Delivery method                      |                                                                                                                                                                       |
 +| manager               | haldur                | Responsible person                                                                                                                                                                                         |
 +| changestock           | muudaladu                                                  | stock changing invoice = 1                                                                                                                                            |
 +| customer_type         | klient_tyyp           | On customer card: Type               | company = 0, private citizen = 1, government institution = 2                                                                                                          |
 +| customer_regno        | klient_regnr          | On customer card: Reg no                                                                                                                                                                                   |
 +| customer_class        | klient_klass          | On customer card: Class              |                                                                                                                                                                       |
 +| customer_loyaltycard  | klient_kliendikaart   | On customer card: Loyalty card                                                                                                                                                                             |
  
-== Päis=== +== rows: == 
-^ XML väli               ^ SQL väli              ^ UI väli                                ^ Selgitus                                                                                                                                                                   ^ +^XML field^SQL field^UI field^Explanation
-| session_id             | x                                                            | for internal use at Directo side, do not send this field!                                                                                                                  | +|item|artikkel|Item| | 
-| number                 | number                | Arve                                   | document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary                          | +|description|seletus|Content| ALT.FROM: item |
-| date                   | aeg                   | Kuupäev                                | ALT.FROM: current time                                                                                                                                                     | +
-| duedate                | aeg2                  | Tähtaeg                                | ALT.FROM: paymentterm                                                                                                                                                      | +
-| transactiondate        | kande_aeg                                                    |                                                                                                                                                                            | +
-| vatzone                | maa                   | KM maa                                 | local = 0, EU = 1, export = 2 ,  ALT.FROM: customer > 0                                                                                                                    | +
-| paymentterm            | tingimus              | T-ting                                 | ALT.FROM: customer ,  kui on kasutusel laekumiste loomine, läheb see kood ka laekumise makseviisiks                                                                        | +
-| ordernumber            | tellimusenr           | Tell. nr.                              |                                                                                                                                                                            | +
-| latepaymentpenalty     | viivis                | Viivis                                 | ALT.FROM: customer                                                                                                                                                         | +
-| object                 | objekt                | Objekt                                 | ALT.FROM: tr.params                                                                                                                                                        | +
-| project                | projekt               | Projekt                                |                                                                                                                                                                            | +
-| account                | konto                 | Võla konto                                                                                                                                                                                                        | +
-| country                | asumaa                | Sihtriik                               | ALT.FROM: customer                                                                                                                                                         | +
-| currency               | valuuta               | Valuuta                                | ALT.FROM: glob.settings > 'EUR'                                                                                                                                            | +
-| currencyrate           | kurssbv1              | Kurss                                  | ALT.FROM: ECB current published rates                                                                                                                                      | +
-| customercode           | klient_kood           | Klient                                 | mandatory by default!                                                                                                                                                      | +
-| customername           | klient_nimi                                                  | ALT.FROM: customer                                                                                                                                                         | +
-| orderer_code           | klient_tellija        |                                        |                                                                                                                                                                            | +
-| contact                | esindaja              | Nende esindaja                         | ALT.FROM: customer                                                                                                                                                         | +
-| comment                | kommentaar            | Kommentaar                                                                                                                                                                                                        | +
-| intcomment             | sisekommentaar        | Sisekommentaar                                                                                                                                                                                                    | +
-| salesman               | myyja                 | Müügiagent                             | ALT.FROM: tr.params > 'XML'                                                                                                                                                | +
-| language               | keel                  | Keel                                   | ALT.FROM: customer                                                                                                                                                         | +
-| customerordernumber    | klienditellimus       | Kliendi tell. nr.                      |                                                                                                                                                                            | +
-| email                  | email                 | meil                                   | ALT.FROM: customer                                                                                                                                                         | +
-| address1               | aadress1              | aadress, ! vastavalt seadetele         | ALT.FROM: customer                                                                                                                                                         | +
-| address2               | aadress2              | aadress, ! vastavalt seadetele         | ALT.FROM: customer                                                                                                                                                         | +
-| address3               | aadress3              | aadress, ! vastavalt seadetele         | ALT.FROM: customer                                                                                                                                                         | +
-| phone                  | telefon               | Telefon                                | ALT.FROM: customer                                                                                                                                                         | +
-| fax                    | faks                  | Faks                                                                                                                                                                                                              | +
-| deliveryname           | klientnimi_lahetusel  | Nimi lähetusel                                                                                                                                                                                                    | +
-| deliveryaddress1       | lahetusaadress1       | lähetusaadress, ! vastavalt seadetele  |                                                                                                                                                                            | +
-| deliveryaddress2       | lahetusaadress2       | lähetusaadress, ! vastavalt seadetele  |                                                                                                                                                                            | +
-| deliveryaddress3       | lahetusaadress3       | lähetusaadress, ! vastavalt seadetele  |                                                                                                                                                                            | +
-| priceformula           | hinnakiri             | Hinnavalem                                                                                                                                                                                                        | +
-| vatregno               | kmregnumber           | KM Reg. nr                             | ALT.FROM: customer                                                                                                                                                         | +
-| datafield1             | lisa_field1           | Lisaväli 1, ! või vastavalt seadetele  |                                                                                                                                                                            | +
-| datafield2             | lisa_field2           | Lisaväli 2, ! või vastavalt seadetele  |                                                                                                                                                                            | +
-| datafield3             | lisa_field3           | Lisaväli 3, ! või vastavalt seadetele  |                                                                                                                                                                            | +
-| datafield4             | lisa_field4           | Lisaväli 4, ! või vastavalt seadetele  |                                                                                                                                                                            | +
-| datafield5             | lisa_field5           | Lisaväli 5, ! või vastavalt seadetele  |                                                                                                                                                                            | +
-| datafield6             | lisa_field6           | Lisaväli 6, ! või vastavalt seadetele  |                                                                                                                                                                            | +
-| datafield7             | lisa_field7           | Lisaväli 7, ! või vastavalt seadetele  |                                                                                                                                                                            | +
-| quotation              | pakkumine             | Pakkumine                              |                                                                                                                                                                            | +
-| contractnumber         | leping                | Leping                                                                                                                                                                                                            | +
-| prepayment             | ettemaksu_arve        |                                        | 1 ettemaksu arve, 0 tavaline arve                                                                                                                                          | +
-| type                   | tyyp                  |                                        |                                                                                                                                                                            | +
-| status                 | staatus               | Staatus                                |                                                                                                                                                                            | +
-| paymenttotal           | laekumine_summa                                              | :!: Positive number will create receipt with same doc. number. If receipt with this number already exists, receipt will not be created and no notification will be issued +
-| confirm                | kinnita                                                      | "1" - confirm document                                                                                                                                                     | +
-| stock                  | ladu                  | Ladu                                   | ALT.FROM: tr.params                                                                                                                                                        | +
-| creditedinvoice        | kredarve              | Kred. arve                                                                                                                                                                                                        | +
-| asset                  | inventar              | Inventar                                                                                                                                                                                                          | +
-| dealtype               | tehinguliik           | Tehinguliik                            |                                                                                                                                                                            | +
-| delivery               | lahetusaeg            | Lähetusaeg                                                                                                                                                                                                        | +
-| deliveryterm           | lahetustingimus       | Läh. ting.                             | ALT.FROM: customer                                                                                                                                                         | +
-| deliverytermcomment    | lahetustingimus_komm  | Läh. ting.                                                                                                                                                                                                        | +
-| deliverymethod         | lahetusviis           | Lähetusviis                            |                                                                                                                                                                            | +
-| deliverymethodcomment  | lahetusviis_komm      | Lähetusviis                            |                                                                                                                                                                            | +
-| manager                | haldur                | Vastutaja                              |                                                                                                                                                                            | +
-| changestock            | muudaladu                                                    | stock changing invoice = 1                                                                                                                                                 | +
-| customer_type          | klient_tyyp           | Kliendikaardil: Tüüp                   | company = 0, private citizen = 1, government institution = 2                                                                                                               | +
-| customer_regno         | klient_regnr          | Kliendikaardil: Reg nr                                                                                                                                                                                            | +
-| customer_class         | klient_klass          | Kliendikaardil: Klass                  |                                                                                                                                                                            | +
-| customer_loyaltycard   | klient_kliendikaart   | Kliendikaardil: Kliendikaart                                                                                                                                                                                      | +
- +
-== read: == +
-^XML väli^SQL väli^UI väli^Selgitus+
-|item|artikkel|Artikkel| | +
-|description|seletus|Sisu| ALT.FROM: item |+
 |variant|variant|Variant| | |variant|variant|Variant| |
-|price|hind|Ühikuhind| unit price without vat |+|price|hind|Unit price| unit price without vat |
 |discount|pross|%| | |discount|pross|%| |
-|quantity|kogus|Kogus| | +|quantity|kogus|Quantity| | 
-|unit|yhik|Ühik| ALT.FROM: item | +|unit|yhik|Unit| ALT.FROM: item | 
-|sum|summa|Summa| | +|sum|summa|Sum| | 
-|account|konto|Konto| ALT.FROM: item > item class (depending on vatregion) | +|account|konto|Account| ALT.FROM: item > item class (depending on vatregion) | 
-|object|objektid|Objekt| ALT.FROM: item > item class | +|object|objektid|Object| ALT.FROM: item > item class | 
-|project|projekt|Projekt| ALT.FROM: item > item class | +|project|projekt|Project| ALT.FROM: item > item class | 
-|purchaseprice|kulu|Ostuhind| ALT.FROM: item | +|purchaseprice|kulu|Purchase price| ALT.FROM: item | 
-|vatcode|kmk|KMk|  ALT.FROM: customer > item > item class (depending on vatregion)| +|vatcode|kmk|VAT code|  ALT.FROM: customer > item > item class (depending on vatregion)| 
-|comment|r_kommentaar|Kommentaar| |+|comment|r_kommentaar|Comment| |
 |date1|r_aeg1| | | |date1|r_aeg1| | |
 |date2|r_aeg2| | | |date2|r_aeg2| | |
-|salesman|r_myyja|Müüja| |+|salesman|r_myyja|Salesperson| |
 |order|tellimus| | | |order|tellimus| | |
 |orderrow|trn| | | |orderrow|trn| | |
-|stock|r_ladu|Ladu| | +|stock|r_ladu|Stock| | 
-|sn|seerianumber|Seerianr| | +|sn|seerianumber|Serial no.| | 
-|deliverytime|lahetusaeg|Lähetusaeg| | +|deliverytime|lahetusaeg|Delivery time| | 
-|customer|r_klient|Tellija| | +|customer|r_klient|Customer| | 
-|customername|r_klient_nimi|Tellija nimi| | +|customername|r_klient_nimi|Customer name| | 
-|text1|tekst1|Tekst1| | +|text1|tekst1|Text1| | 
-|text2|tekst2|Tekst2| | +|text2|tekst2|Text2| | 
-|text3|tekst3|Tekst3| | +|text3|tekst3|Text3| | 
-|text4|tekst4|Tekst4| | +|text4|tekst4|Text4| | 
-|constant1|konstant1|Konstant1| | +|constant1|konstant1|Constant1| | 
-|constant2|konstant2|Konstant2| | +|constant2|konstant2|Constant2| | 
-|constant3|konstant3|Konstant3| | +|constant3|konstant3|Constant3| | 
-|constant4|konstant4|Konstant4| | +|constant4|konstant4|Constant4| | 
-|shelf|riiul|Riiul| | +|shelf|riiul|Shelf| | 
-|rn|rn|Nr|row order number in document 1 - N ,  ALT.FROM: random | +|rn|rn|No.|row order number in document 1 - N ,  ALT.FROM: random | 
-|rr|rv|Rv|row reference for grouping, otherwise equals to rn ,  ALT.FROM: equals to rn |+|rr|rv|Rr|row reference for grouping, otherwise equals to rn ,  ALT.FROM: equals to rn |
  
-== Arvete transpordi parameetrid ==+== Invoice transport parameters ==
  
-^TÜÜP^KOOD^PARAMEETER 1^PARAMEETER 2^SELGITUS+^TYPE^CODE^PARAMETER 1^PARAMETER 2^EXPLANATION
-|XML|xd_changestock|0|INVOICE|Ladumuutev arve (Param.1 =1 on muuda ladu)| +|XML|xd_changestock|0|INVOICE|Stock changing invoice (Param.1 =1 means change stock)| 
-|XML|xd_autocustomer_autocode|0|INVOICE|Seotud kliendi loomisel luuakse kood liidesesunikaalne email on vajalik ja kliendi koodi süsteemiseadistused on vajalikud+|XML|xd_autocustomer_autocode|0|INVOICE|When creating a related customerthe code is created in the interface, a unique email is required and system settings for customer codes are necessary
-|XML|xd_update|1|INVOICE|Luba dokumendi update, kui puuduvad seotud dokumendid+|XML|xd_update|1|INVOICE|Allow document update if there are no related documents
-|XML|xd_customer_update|0|INVOICE|Kliendi andmete osaline update(nimi, email, telefonvõi vastavalt spekile+|XML|xd_customer_update|0|INVOICE|Partial update of customer data (name, email, phoneor according to spec
-|XML|xd_object|TEST_OBJEKT|INVOICE|Vaikimisi objekt, kui ei saadeta+|XML|xd_object|TEST_OBJECT|INVOICE|Default object if not sent
-|XML|xd_salesman|XML|INVOICE|Vaikimisi müüja+|XML|xd_salesman|XML|INVOICE|Default salesperson
-|XML|xd_stock|PL|INVOICE|Vaikimisi ladu, kui ei saadeta+|XML|xd_stock|PL|INVOICE|Default stock if not sent
-|XML|xd_confirm|0|INVOICE|Automaatne dokumendi kinnitamineseda saab ka juhtida XML väljaga "confirm"+|XML|xd_confirm|0|INVOICE|Automatic document confirmationcan also be controlled with the "confirm" XML field
-|XML|xd_posinvoice|0|INVOICE|1 = kassaarve+|XML|xd_posinvoice|0|INVOICE|1 = POS invoice
-|XML|xd_autocustomer|0|INVOICE|Automaatne seotud kliendi loomine, kui kliendi koodi ei eksisteeri|+|XML|xd_autocustomer|0|INVOICE|Automatic creation of a related customer if the customer code does not exist|
  
-Arve vaikimisi väärtuste seadistamiseks loe täpsemalt [[https://wiki.directo.ee/et/kohustuslik|siit]]+To configure default invoice values, read more [[https://wiki.directo.ee/et/kohustuslik|here]]
  
- +===Orders ===
- +
- +
- +
-===Tellimused ===+
 what=order  what=order
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tellimused.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tellimused.xsd|Schema ]]
  
-== Päis: === +== Header: === 
-^ XML väli              ^ SQL väli               ^ UI väli                                Selgitus                                                                                                                                                                   +^ XML field             ^ SQL field              ^ UI field                               Explanation                                                                                                                                                     
-| session_id            | x                      |                                        | for internal use at Directo side, do not send this field!                                                                                                                  +| session_id            | x                      |                                        | for internal use at Directo side, do not send this field!                                                                                                       
-| number                | number                 Tellimus                               | document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary                          +| number                | number                 Order                                  | document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary               
-| customercode          | klient_kood            | Klient                                 | mandatory by default!                                                                                                                                                      +| customercode          | klient_kood            | Customer                               | mandatory by default!                                                                                                                                           
-| customername          | klient_nimi            |                                        | ALT.FROM: customer                                                                                                                                                         +| customername          | klient_nimi            |                                        | ALT.FROM: customer                                                                                                                                              
-| date                  | aeg                    | Kuupäev                                | ALT.FROM: current time                                                                                                                                                     +| date                  | aeg                    | Date                                   | ALT.FROM: current time                                                                                                                                          
-| address1              | aadress1               aadress, ! vastavalt seadetele         | ALT.FROM: customer                                                                                                                                                         +| address1              | aadress1               address, ! according to settings       | ALT.FROM: customer                                                                                                                                              
-| address2              | aadress2               aadress, ! vastavalt seadetele         | ALT.FROM: customer                                                                                                                                                         +| address2              | aadress2               address, ! according to settings       | ALT.FROM: customer                                                                                                                                              
-| address3              | aadress3               aadress, ! vastavalt seadetele         | ALT.FROM: customer                                                                                                                                                         +| address3              | aadress3               address, ! according to settings       | ALT.FROM: customer                                                                                                                                              
-| deliveryaddress1      | lahetusaadress1        | lähetusaadress, ! vastavalt seadetele                                                                                                                                                                             +| deliveryaddress1      | lahetusaadress1        | delivery address, ! according to settings                                                                                                                                                                 
-| deliveryaddress2      | lahetusaadress2        | lähetusaadress, ! vastavalt seadetele                                                                                                                                                                             +| deliveryaddress2      | lahetusaadress2        | delivery address, ! according to settings                                                                                                                                                                 
-| deliveryaddress3      | lahetusaadress3        | lähetusaadress, ! vastavalt seadetele                                                                                                                                                                             +| deliveryaddress3      | lahetusaadress3        | delivery address, ! according to settings                                                                                                                                                                 
-| paymentterm           | tingimus               T-ting                                 | ALT.FROM: customer ,  kui on kasutusel laekumiste loomineläheb see kood ka laekumise makseviisiks                                                                        +| paymentterm           | tingimus               P-term                                 | ALT.FROM: customer ,  if receipt creation is usedthis code also becomes the payment method of the receipt                                                     
-| deliverymethod        | lahetusviis            | Lähetusviis                            | ALT.FROM: customer                                                                                                                                                         +| deliverymethod        | lahetusviis            | Delivery method                        | ALT.FROM: customer                                                                                                                                              
-| customerordernumber   | kliendi_tellimus       Kliendi tellnr.                                                                                                                                                                                                 +| customerordernumber   | kliendi_tellimus       Customer's order no                                                                                                                                                                                  
-| email                 | email                  | meil                                   | ALT.FROM: customer                                                                                                                                                         +| email                 | email                  | e-mail                                 | ALT.FROM: customer                                                                                                                                              
-| phone                 | telefon                | Telefon                                | ALT.FROM: customer                                                                                                                                                         +| phone                 | telefon                | Phone                                  | ALT.FROM: customer                                                                                                                                              
-| comment               | kommentaar             Kommentaar                                                                                                                                                                                                        +| comment               | kommentaar             Comment                                                                                                                                                                                                
-| stock                 | ladu                   Ladu                                   | ALT.FROM: tr.params                                                                                                                                                        +| stock                 | ladu                   Stock                                  | ALT.FROM: tr.params                                                                                                                                             
-| object                | objekt                 Objekt                                 | ALT.FROM: tr.params                                                                                                                                                        +| object                | objekt                 Object                                 | ALT.FROM: tr.params                                                                                                                                             
-| contact               | esindaja               Nende esindaja                         | ALT.FROM: customer                                                                                                                                                         +| contact               | esindaja               Their representative                   | ALT.FROM: customer                                                                                                                                              
-| datafield1            | lisa_field1            | Lisaväli 1, ! või vastavalt seadetele                                                                                                                                                                             +| datafield1            | lisa_field1            | Add. field 1, ! or according to settings                                                                                                                                                                 
-| datafield2            | lisa_field2            | Lisaväli 2, ! või vastavalt seadetele                                                                                                                                                                             +| datafield2            | lisa_field2            | Add. field 2, ! or according to settings                                                                                                                                                                 
-| datafield3            | lisa_field3            | Lisaväli 3, ! või vastavalt seadetele                                                                                                                                                                             +| datafield3            | lisa_field3            | Add. field 3, ! or according to settings                                                                                                                                                                 
-| datafield4            | lisa_field4            | Lisaväli 4, ! või vastavalt seadetele                                                                                                                                                                             +| datafield4            | lisa_field4            | Add. field 4, ! or according to settings                                                                                                                                                                 
-| datafield5            | lisa_field5            | Lisaväli 5, ! või vastavalt seadetele                                                                                                                                                                             +| datafield5            | lisa_field5            | Add. field 5, ! or according to settings                                                                                                                                                                 
-| datafield6            | lisa_field6            | Lisaväli 6, ! või vastavalt seadetele                                                                                                                                                                             +| datafield6            | lisa_field6            | Add. field 6, ! or according to settings                                                                                                                                                                 
-| datafield7            | lisa_field7            | Lisaväli 7, ! või vastavalt seadetele                                                                                                                                                                             +| datafield7            | lisa_field7            | Add. field 7, ! or according to settings                                                                                                                                                                 
-| paymenttotal          | laekumine_summa        |                                        | :!: Positive number will create receipt with same doc. number. If receipt with this number already exists, receipt will not be created and no notification will be issued  +| paymenttotal          | laekumine_summa        |                                        | :!: Positive number will create receipt with same doc. number. If receipt with this number already exists, receipt will not be created and no notification will be issued | 
-| vatzone               | maa                    | Maa                                    | local = 0, EU = 1, export = 2 ,  ALT.FROM: customer > 0                                                                                                                    +| vatzone               | maa                    | Zone                                   | local = 0, EU = 1, export = 2 ,  ALT.FROM: customer > 0                                                                                                           
-| priceformula          | hinnakiri              | Hinnavalem                                                                                                                                                                                                        +| priceformula          | hinnakiri              | Price formula                                                                                                                                                                                          
-| currency              | valuuta                | Valuuta                                | ALT.FROM: glob.settings > 'EUR'                                                                                                                                            +| currency              | valuuta                | Currency                               | ALT.FROM: glob.settings > 'EUR'                                                                                                                                 
-| currencyrate          | kurssbv1               Kurss                                  | ALT.FROM: ECB current published rates                                                                                                                                      +| currencyrate          | kurssbv1               Rate                                   | ALT.FROM: ECB current published rates                                                                                                                           
-| vatregno              | kmregnumber            | KM Reg. nr                             | ALT.FROM: customer                                                                                                                                                         +| vatregno              | kmregnumber            | VAT Reg. no                            | ALT.FROM: customer                                                                                                                                              
-| country               | asumaa                 Sihtriik                               | ALT.FROM: customer                                                                                                                                                         +| country               | asumaa                 Destination country                    | ALT.FROM: customer                                                                                                                                              
-| status                | staatus                | Staatus                                                                                                                                                                                                           +| status                | staatus                | Status                                                                                                                                                                                                 
-| delivery              | lahetusaeg             Lähetusaeg                                                                                                                                                                                                        +| delivery              | lahetusaeg             Delivery time                                                                                                                                                                                          
-| customer_type         | klient_tyyp            | KliendikaardilTüüp                   | company = 0, private citizen = 1, government institution = 2                                                                                                               +| customer_type         | klient_tyyp            | On customer cardType                 | company = 0, private citizen = 1, government institution = 2                                                                                                    
-| customer_regno        | klient_regnr           Kliendikaardil: Reg nr                                                                                                                                                                                            +| customer_regno        | klient_regnr           On customer card: Reg no                                                                                                                                                                               
-| customer_loyaltycard  | klient_kliendikaart    | KliendikaardilKliendikaart                                                                                                                                                                                      +| customer_loyaltycard  | klient_kliendikaart    | On customer cardLoyalty card                                                                                                                                                                         
-| salesman              | myyja                  | Müügiagent                             | ALT.FROM: tr.params > 'XML'                                                                                                                                                +| salesman              | myyja                  | Sales agent                            | ALT.FROM: tr.params > 'XML'                                                                                                                                     
-| project               | projekt                | Projekt                                                                                                                                                                                                           +| project               | projekt                | Project                                                                                                                                                                                                
-| deliveryname          | klient_nimi_lahetusel Nimi lähetusel                                                                                                                                                                                                    +| deliveryname          | klient_nimi_lahetusel Name on delivery                                                                                                                                                                                       
-| factoring             | arvetasub              | Arve tasub                             | ALT.FROM: customer                                                                                                                                                         +| factoring             | arvetasub              | Invoice paid by                        | ALT.FROM: customer                                                                                                                                              
-| deliveryterm          | lahetustingimus        | Lähting                                                                                                                                                                                                       +| deliveryterm          | lahetustingimus        | Delivterm                                                                                                                                                                                          
-| language              | keel                   Keel                                   | ALT.FROM: customer                                                                                                                                                         |+| language              | keel                   Language                               | ALT.FROM: customer                                                                                                                                              | 
 +== Rows: == 
 +^ XML field     ^ SQL field     ^ UI field      ^ Explanation                                                                   ^ 
 +| item          | artikkel      | Item          |                                                                               | 
 +| description   | nimetus       | Content       | ALT.FROM: item                                                                | 
 +| price         | yhikuhind     | Unit price    | unit price without vat                                                        | 
 +| quantity      | kogus         | Quantity      |                                                                               | 
 +| discount      | pross         | %                                                                                           | 
 +| account       | konto         | Account       | ALT.FROM: item > item class (depending on vatregion)                          | 
 +| vatcode       | kmkood        | VAT code      | ALT.FROM: customer > item > item class (depending on vatregion)               | 
 +| unit          | yhik          | Unit          | ALT.FROM: item                                                                | 
 +| comment       | r_kommentaar  | Comment                                                                                     | 
 +| variant       | variant       | Variant                                                                                     | 
 +| deliverytime  | lahetusaeg    | Delivery time |                                                                               | 
 +| stock         | r_ladu        | Stock                                                                                       | 
 +| project       | projekt       | Project       | ALT.FROM: item > item class                                                   | 
 +| ext_sum       | ext_sum                                                                                                   | 
 +| ext_id        | ext_id        |                                                                                             | 
 +| rn            | rn            | No.           | row order number in document 1 - N ,  ALT.FROM: random                        | 
 +| rr            | rv            | Rr            | row reference for grouping, otherwise equals to rn ,  ALT.FROM: equals to rn  | 
 +==Order transport parameters == 
 +^TYPE^CODE^PARAMETER 1^PARAMETER 2^EXPLANATION^ 
 +|XML|xd_stock|PL|ORDER|Default stock, if not sent| 
 +|XML|xd_object|VEEB|ORDER|Default object, if not sent| 
 +|XML|xd_autocustomer|1|ORDER|Automatic creation of a related customer if the customer code does not exist| 
 +|XML|xd_confirm|0|ORDER|Automatic document confirmation, this can also be controlled with the XML field "confirm"
 +|XML|xd_update|1|ORDER|Allow document update if there are no related documents| 
 +|XML|xd_autocustomer_autocode|0|ORDER|When creating a related customer, the code is created in the interface, a unique email is required and system settings for customer codes are necessary| 
 +|XML|xd_customer_update|0|ORDER|Partial update of customer data, (name, email, phone) or according to spec| 
 +|XML|xd_salesman|XML|ORDER|Default salesperson|x 
 +|XML|xd_confirmpayment|1|ORDER|Automatic receipt confirmation| 
 +|XML|xd_paymentvatcode|11|ORDER|VAT code for the created related receipt row, receipt is generated upon sending the "paymentamount" field, which must exist in the schema | 
 +|XML|xd_order_assemble|1|ORDER|Triggers the order assembler for items with recipes |
  
-== Read: == +To configure default order valuesread more [[https://wiki.directo.ee/en/mandatory|here]] 
-^ XML väli      ^ SQL väli      ^ UI väli     ^ Selgitus                                                                      ^ +===Receipts ===
-| item          | artikkel      | Artikkel    |                                                                               | +
-| description   | nimetus       | Sisu        | ALT.FROM: item                                                                | +
-| price         | yhikuhind     | Ühikuhind   | unit price without vat                                                        | +
-| quantity      | kogus         | Kogus                                                                                     | +
-| discount      | pross         | %                                                                                         | +
-| account       | konto         | Konto       | ALT.FROM: item > item class (depending on vatregion)                          | +
-| vatcode       | kmkood        | KMk                       ALT.FROM: customer > item > item class (depending on vatregion) | +
-| unit          | yhik          | Ühik        | ALT.FROM: item                                                                | +
-| comment       | r_kommentaar  | Kommentaar  |                                                                               | +
-| variant       | variant       | Variant                                                                                   | +
-| deliverytime  | lahetusaeg    | Lähetusaeg  |                                                                               | +
-| stock         | r_ladu        | Ladu        |                                                                               | +
-| project       | projekt       | Projekt     | ALT.FROM: item > item class                                                   | +
-| ext_sum       | ext_sum                                                                                                 | +
-| ext_id        | ext_id        |                                                                                           | +
-| rn            | rn            | Nr          | row order number in document 1 - N  ALT.FROM: random                        | +
-| rr            | rv            | Rv          | row reference for grouping, otherwise equals to rn ,  ALT.FROM: equals to rn  | +
- +
- +
-==Tellimuse transpordi parameetrid == +
-^TÜÜP^KOOD^PARAMEETER 1^PARAMEETER 2^SELGITUS^ +
-|XML|xd_stock|PL|ORDER|Vaikimisi ladu, kui ei saadeta| +
-|XML|xd_object|VEEB|ORDER|Vaikimisi objekt, kui ei saadeta| +
-|XML|xd_autocustomer|1|ORDER|Automaatne seotud kliendi loomine, kui kliendi koodi ei eksisteeri| +
-|XML|xd_confirm|0|ORDER|Automaatne dokumendi kinnitamine, seda saab ka juhtida XML väljaga "confirm"+
-|XML|xd_update|1|ORDER|Luba dokumendi update, kui puuduvad seotud dokumendid| +
-|XML|xd_autocustomer_autocode|0|ORDER|Seotud kliendi loomisel luuakse kood liideses, unikaalne email on vajalik ja kliendi koodi süsteemiseadistused on vajalikud| +
-|XML|xd_customer_update|0|ORDER|Kliendi andmete osaline update, (nimi, email, telefon) või vastavalt spekile| +
-|XML|xd_salesman|XML|ORDER|Vaikimisi müüja|x +
-|XML|xd_confirmpayment|1|ORDER|Automaatne laekumise kinnitamine| +
-|XML|xd_paymentvatcode|11|ORDER|Loodava seotud laekumise rea km kood, laekumine tekib välja „paymentamount“ saatmisel, mis peab skeemis olemas olema | +
-|XML|xd_order_assemble|1|ORDER|Käivitab tellimuse komplekteerija retseptidega artiklitele | +
- +
-Tellimuse vaikimisi väärtuste seadistamiseks loe täpsemalt [[https://wiki.directo.ee/et/kohustuslik|siit]] +
-===Laekumised ===+
 what=receipt  what=receipt
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_laekumised.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_laekumised.xsd|Schema ]]
  
-== Päis: ==+== Header: ==
  
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
-|number|number|Laekumine| document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary | +|number|number|Receipt| document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary | 
-|date|aeg|Aeg| ALT.FROM: current time | +|date|aeg|Time| ALT.FROM: current time | 
-|description|seletus|Kommentaar| | +|description|seletus|Comment| | 
-|paymentmode|tasumisviis|Tasviis| | +|paymentmode|tasumisviis|Paymmethod| | 
-|user|kasutaja|Kasutaja| | +|user|kasutaja|User| | 
-|reference|viide|Viide| | +|reference|viide|Reference| | 
-|object|objekt|Objekt| ALT.FROM: tr.params | +|object|objekt|Object| ALT.FROM: tr.params | 
-|project|projekt|Projekt| ALT.FROM: tr.params | +|project|projekt|Project| ALT.FROM: tr.params | 
-|location|arvuti|Koht| |+|location|arvuti|Location| |
 |confirm|kinnita| | confirm document = 1 | |confirm|kinnita| | confirm document = 1 |
  
-==read: == +==rows: == 
-^XML väli^SQL väli^UI väli^Selgitus+^XML field^SQL field^UI field^Explanation
-|invoice|arvenumber|Arve nr| | +|invoice|arvenumber|Invoice no| | 
-|aeg|raeg|Aeg| ALT.FROM: receipt header | +|aeg|raeg|Time| ALT.FROM: receipt header | 
-|customer|klient_kood|Klient| ALT.FROM: invoice > order > customer by regno field | +|customer|klient_kood|Customer| ALT.FROM: invoice > order > customer by regno field | 
-|order|ettemaks|Tellimuse nr| | +|order|ettemaks|Order No.| | 
-|customername|klient_nimi|Tekst| ALT.FROM: invoice > order > customer by regno field | +|customername|klient_nimi|Text| ALT.FROM: invoice > order > customer by regno field | 
-|payment|tasuti|Tasuti| ALT.FROM: in case of base currency = received field | +|payment|tasuti|Paid| ALT.FROM: in case of base currency = received field | 
-|bankcurrency|valuuta_p|Val saadud| ALT.FROM: glob.settings > 'EUR'+|bankcurrency|valuuta_p|Curr. received| ALT.FROM: glob.settings > 'EUR'
-|received|summa_p|Summa S| | +|received|summa_p|Amount R| | 
-|currencyrate|kurss_p|Kurss S| ALT.FROM: ECB current published rates | +|currencyrate|kurss_p|Rate R| ALT.FROM: ECB current published rates | 
-|paymentfee|teenustasu|T-Tasu| | +|paymentfee|teenustasu|S-Fee| | 
-|vatcode|kmk|KMk| ALT.FROM: tr.params | +|vatcode|kmk|VAT code| ALT.FROM: tr.params | 
-|paymentfeecurrency|valuuta_teenus|T-Tasu val.| | +|paymentfeecurrency|valuuta_teenus|S-Fee curr.| | 
-|description|selgitus|Selgitus| | +|description|selgitus|Explanation| | 
-|regno|reg|Reg number/IK| ALT.FROM: customer | +|regno|reg|Reg number/PC| ALT.FROM: customer | 
-|bankaccount|arveldusarve|Arveldusarve| | +|bankaccount|arveldusarve|Bank account| | 
-|objects|objektid|Objekt| ALT.FROM: invoice > order | +|objects|objektid|Object| ALT.FROM: invoice > order | 
-|account|r_konto|Konto| | +|account|r_konto|Account| | 
-|fine|viivis|Viivis| | +|fine|viivis|Penalty| | 
-|rn|rn|Nr|row order number in document 1 - N ,  ALT.FROM: random | +|rn|rn|No.|row order number in document 1 - N ,  ALT.FROM: random | 
- +===Transactions ===
-===Kanded ===+
 what=transaction  what=transaction
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kanded.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kanded.xsd|Schema ]]
  
-== Päis: ==+== Header: ==
  
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
 |number|number|Number| document number/ID, mandatory; With combination of field "type" it must be unique for each document and remain same if more than one transaction of the same document is necessary | |number|number|Number| document number/ID, mandatory; With combination of field "type" it must be unique for each document and remain same if more than one transaction of the same document is necessary |
-|date|aeg2|Aeg| | +|date|aeg2|Time| | 
-|reference|viide|Viide| | +|reference|viide|Reference| | 
-|comment|seletus|Seletus| | +|comment|seletus|Explanation| | 
-|type|tyyp|Tüüp| ALT.: FIN +|type|tyyp|Type| ALT.: FIN |
- +
-==read: == +
-^XML väli^SQL väli^UI väli^Selgitus^ +
-|account|konto|Konto| | +
-|object|objekt|Objektid| | +
-|description|sisu|Sisu|  ALT.FROM: account | +
-|vatcode|kmkood|KM kood| | +
-|quantity|kogus|Kogus| | +
-|debitamount|baas1deebet|Deebet| | +
-|creditamount|baas1kreedit|Kreedit| | +
-|currencydebit|valuutadeebet|Val. deebet| | +
-|currencycredit|valuutakreedit|Val. kreedit| | +
-|currencyrate|b1kursile|Kurss| ALT.FROM: ECB current published rates | +
-|currency|valuuta|Valuuta| ALT.FROM: glob.settings > 'EUR'+
-|date|r_aeg|Aeg| | +
-|supplier|hankija|Hankija| | +
-|customer|klient|Klient| | +
-|project|projekt|Projekt| | +
-|rn|rn|Nr|row order number in document 1 - N ,  ALT.FROM: random |+
  
-===Kliendid=== +==rows: =
-  * Postitamisel ja muutmisel on alati nõutud code ja email! \\+^XML field^SQL field^UI field^Explanation^ 
 +|account|konto|Account| | 
 +|object|objekt|Objects| | 
 +|description|sisu|Content| ALT.FROM: account | 
 +|vatcode|kmkood|VAT code| | 
 +|quantity|kogus|Quantity| | 
 +|debitamount|baas1deebet|Debit| | 
 +|creditamount|baas1kreedit|Credit| | 
 +|currencydebit|valuutadeebet|Curr. debit| | 
 +|currencycredit|valuutakreedit|Curr. credit| | 
 +|currencyrate|b1kursile|Rate| ALT.FROM: ECB current published rates | 
 +|currency|valuuta|Currency| ALT.FROM: glob.settings > 'EUR'
 +|date|r_aeg|Time| | 
 +|supplier|hankija|Supplier| | 
 +|customer|klient|Customer| | 
 +|project|projekt|Project| | 
 +|rn|rn|No.|row order number in document 1 - N ,  ALT.FROM: random | 
 +===Customers=== 
 +  * When posting and modifying, code and email are always required! \\
 what=customer what=customer
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kliendid.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kliendid.xsd|Schema ]]
  
  
  
-==Kliendid == +==Customers == 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
-|code|kood|Kood| document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary | +|code|kood|Code| document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary | 
-|name|nimi|Nimi| | +|name|nimi|Name| | 
-|object|objekt|Objekt| | +|object|objekt|Object| | 
-|address1|aadress1|aadress, ! vastavalt seadetele| | +|address1|aadress1|address, ! according to settings| | 
-|address2|aadress2|aadress, ! vastavalt seadetele| | +|address2|aadress2|address, ! according to settings| | 
-|address3|aadress3|aadress, ! vastavalt seadetele| | +|address3|aadress3|address, ! according to settings| | 
-|deliveryaddress1|lahaadress1|aadress, ! vastavalt seadetele| | +|deliveryaddress1|lahaadress1|address, ! according to settings| | 
-|deliveryaddress2|lahaadress2|aadress, ! vastavalt seadetele| | +|deliveryaddress2|lahaadress2|address, ! according to settings| | 
-|deliveryaddress3|lahaadress3|aadress, ! vastavalt seadetele| | +|deliveryaddress3|lahaadress3|address, ! according to settings| | 
-|county|maakond|Maakond| | +|county|maakond|County| | 
-|country|asumaa|Asumaa| | +|country|asumaa|Country| | 
-|contact|kontakt|Esindaja| | +|contact|kontakt|Representative| | 
-|phone|telefon|Telefon| | +|phone|telefon|Phone| | 
-|email|email|Meil| mandatory | +|email|email|E-mail| mandatory | 
-|regno|regnr|Reg nr| | +|regno|regnr|Reg no| | 
-|vatregno|kmregnr|Km reg nr| | +|vatregno|kmregnr|VAT reg no| | 
-|notice|margukiri|Märgukirjad| yes = 1 | +|notice|margukiri|Notices| yes = 1 | 
-|birthday|klient_synnipaev|Sünnipäev| | +|birthday|klient_synnipaev|Birthday| | 
-|gender|klient_sugu|Sugu| female = 1, male = 0 | +|gender|klient_sugu|Gender| female = 1, male = 0 | 
-|class|klass|Klass| | +|class|klass|Class| | 
-|type|klient_tyyp|Tüüp| company = 0, private citizen = 1, government institution = 2 | +|type|klient_tyyp|Type| company = 0, private citizen = 1, government institution = 2 | 
-|loyaltycard|kliendikaart|Kliendikaart| also used for personal ID code | +|loyaltycard|kliendikaart|Loyalty card| also used for personal ID code | 
-|deliveryname|nimi_lahetusel|Nimi lähetusel| | +|deliveryname|nimi_lahetusel|Name on delivery| | 
-|deliverymode|lahetusviis|Lähviis| | +|deliverymode|lahetusviis|Delivmethod| | 
-|alert|hoiatus|Hoiatus| | +|alert|hoiatus|Warning| | 
-|factoring|arvetasub|Arve tasub| | +|factoring|arvetasub|Invoice paid by| | 
-|fax|faks|Faks| | +|fax|faks|Fax| | 
-|comment|kommentaar|Kommentaar| | +|comment|kommentaar|Comment| | 
-|payterm|tingimus|Tasting.| | +|payterm|tingimus|Payterm.| | 
-|vatzone|maa|KM maa| local = 0, EU = 1, export = 2 | +|vatzone|maa|VAT zone| local = 0, EU = 1, export = 2 | 
-|language|keel|Keel| | +|language|keel|Language| | 
-|salesman|myyja|Müüja| | +|salesman|myyja|Salesperson| | 
-|bank|pank|Pank| | +|bank|pank|Bank| | 
-|bankaccount|arveldusarve|A/a | |+|bankaccount|arveldusarve|Acct. no | |
 |url|URL|Url| | |url|URL|Url| |
-|status|staatus|Staatus| | +|status|staatus|Status| | 
-|accountmanager|kliendihaldur|Haldur| | +|accountmanager|kliendihaldur|Manager| | 
-|dealtype|tehinguliik|Tehinguliik| | +|dealtype|tehinguliik|Transaction type| | 
-|creditlimit|limiit|Limiit| | +|creditlimit|limiit|Limit| | 
-|priceformula|hinnakiri|Hinnavalem| | +|priceformula|hinnakiri|Price formula| | 
-|specialpriceformula|hinnavalem_eri|Eripakkumised| | +|specialpriceformula|hinnavalem_eri|Special offers| | 
-|discount|ale|Soodus %| | +|discount|ale|Discount %| | 
-|destination|sihtriik|Sihtriik| |+|destination|sihtriik|Destination| |
 |firstname|eesnimi| | | |firstname|eesnimi| | |
 |lastname|perenimi| | | |lastname|perenimi| | |
-|vatcode|kmkood|KM kood| | +|vatcode|kmkood|VAT code| | 
-|extcode|valine_kood|Väline kood| | +|extcode|valine_kood|External code| | 
-|deliveryinvoice|lah_arve|LähetusLähetus ja Arve = 1, Lähetus = 0 | +|deliveryinvoice|lah_arve|ShipmentShipment and Invoice = 1, Shipment = 0 | 
-|currency|valuuta|Valuuta| |+|currency|valuuta|Currency| |
 |closed|suletud| | | |closed|suletud| | |
  
-== Lisaväljad: ==== +== Additional fields: ==== 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |code|kood| | | |code|kood| | |
-|content|sisu|Sisu| | +|content|sisu|Content| | 
-|param|param|Parameeter| | +|param|param|Parameter| | 
- +==Customer transport parameters == 
- +TYPE  CODE  PARAMETER 1  ^ PARAMETER 2  ^ EXPLANATION  ^ 
-==Kliendi transpordi parameetrid == +===Suppliers === 
-TÜÜP  KOOD  PARAMEETER 1  ^ PARAMEETER 2  ^ SELGITUS  ^ +  * When posting and modifying, code is always required! \\
- +
- +
-===Hankijad === +
-  * Postitamisel ja muutmisel on alati nõutud code! \\+
 what=supplier what=supplier
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_hankijad.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_hankijad.xsd|Schema ]]
  
  
  
-==hankijad: == +==suppliers: == 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
-|code|kood|Kood| document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary | +|code|kood|Code| document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary | 
-|name|nimi|Nimi| |+|name|nimi|Name| |
 |contact|kontakt| | | |contact|kontakt| | |
 |address1|aadress1| | | |address1|aadress1| | |
Line 499: Line 497:
 |purchasinggroup|ostugrupp| | | |purchasinggroup|ostugrupp| | |
 |county|maakond| | | |county|maakond| | |
- +== suppliers additional fields: == 
-== hankijad lisaväljad: == +^XML field^SQL field^UI field^Explanation^
-^XML väli^SQL väli^UI väli^Selgitus^+
 |code|kood| | | |code|kood| | |
-|content|sisu|Sisu| | +|content|sisu|Content| | 
-|param|param|Parameeter| | +|param|param|Parameter| | 
- +===Items=== 
- +  * When filling out the item card, the interface fills the fields according to the rules [[en:mandatory|]]
-===Artiklid=== +
-  * Artikli kaardi täitmisel liides täidab valjad vastavalt reeglitele [[et:kohustuslik|]]+
  
 what=item what=item
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_artiklid.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_artiklid.xsd|Schema ]]
  
-==Artiklid== +==Items== 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
-|code|kood|Kood| document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary | +|code|kood|Code| document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary | 
-|name|nimi|Nimi| | +|name|nimi|Name| | 
-|class|klass|Klass| | +|class|klass|Class| | 
-|barcode|ribakood|Ribakood| | +|barcode|ribakood|Barcode| | 
-|areacode|piirkonnakood|Päritolu| | +|areacode|piirkonnakood|Origin| | 
-|unit|yhik|Ühik| | +|unit|yhik|Unit| | 
-|salesprice|baashind|Müügihind| without VAT | +|salesprice|baashind|Sales price| without VAT | 
-|accountlocal|konto_myyk|Müük Siseriiklik| | +|accountlocal|konto_myyk|Sales Domestic| | 
-|accounteu|konto_myyk_EU|Müük EU| | +|accounteu|konto_myyk_EU|Sales EU| | 
-|accountexport|konto_myyk_eksport|Müük Eksp| | +|accountexport|konto_myyk_eksport|Sales Exp| | 
-|vatcode|KMkood|KM Siseriiklik| | +|vatcode|KMkood|VAT Domestic| | 
-|vatcodeeu|KMkood_EU|KM EU| | +|vatcodeeu|KMkood_EU|VAT EU| | 
-|vatcodeexport|KMkood_eksport|KM mitte EU| | +|vatcodeexport|KMkood_eksport|VAT non-EU| | 
-|type|tyyp|Tüüp| ALT.FROM: tr.params, cannot be updated. 0=service; 1=stock item; 2=rental item  | +|type|tyyp|Type| ALT.FROM: tr.params, cannot be updated. 0=service; 1=stock item; 2=rental item  | 
-|minlevel|minimaaltase|Min tase| | +|minlevel|minimaaltase|Min level| | 
-|shelf|riiulikood|Riiul| | +|shelf|riiulikood|Shelf| | 
-|weight|kaal|Kaal| | +|weight|kaal|Weight| | 
-|volume|maht|Maht| | +|volume|maht|Volume| | 
-|warranty|garantii|Garantii| | +|warranty|garantii|Warranty| | 
-|package1|yhikumuut1|Pakis 1| | +|package1|yhikumuut1|In package 1| | 
-|package2|yhikumuut2|Pakis 2| | +|package2|yhikumuut2|In package 2| | 
-|sntracking|SN_jalgimine|Seeria nr| cannot be updated. 0=without sn tracking; 1=serial no tracking; 2=batch no tracking | +|sntracking|SN_jalgimine|Serial no.| cannot be updated. 0=without sn tracking; 1=serial no tracking; 2=batch no tracking | 
-|cost|ostuhind|Ostuhind| | +|cost|ostuhind|Purchase price| | 
-|object|objekt|Objekt| | +|object|objekt|Object| | 
-|recipe|retsept|Retsept| | +|recipe|retsept|Recipe| | 
-|recipetorows|retsept_ridadeks|Retsept ei asetu| | +|recipetorows|retsept_ridadeks|Recipe does not apply| | 
-|alert|hoiatus|Hoiatus| | +|alert|hoiatus|Warning| | 
-|closed|suletud|Suletud| closed = 1, open = 0 | +|closed|suletud|Closed| closed = 1, open = 0 | 
-|description|pikktekst|Kirjeldus| | +|description|pikktekst|Description| | 
-|vatprice1|hind_okonline|Lisahind 1 (customizable)| with local VAT | +|vatprice1|hind_okonline|Add. price 1 (customizable)| with local VAT | 
-|vatprice2|hind_delfi|Lisahind 2 (customizable)| with local VAT | +|vatprice2|hind_delfi|Add. price 2 (customizable)| with local VAT | 
-|vatprice3|soodus_hind1|Soodushind 1 (customizable)| with local VAT | +|vatprice3|soodus_hind1|Discount price 1 (customizable)| with local VAT | 
-|vatprice4|soodus_hind2|Soodushind 2 -customizable)| with local VAT | +|vatprice4|soodus_hind2|Discount price 2 -customizable)| with local VAT | 
-|vatprice|hind_tavaline|Tavahind| ALT.FROM: salesprice + local vat | +|vatprice|hind_tavaline|Regular price| ALT.FROM: salesprice + local vat | 
-|priority|prioriteet|Prioriteet| |+|priority|prioriteet|Priority| |
 |url|url|URL| | |url|url|URL| |
-|supplier|hankija_kood|Hankija| | +|supplier|hankija_kood|Supplier| | 
-|supplieritem|hankija_artikkel|Hankartikkel| | +|supplieritem|hankija_artikkel|Suppitem| | 
-|maxlevel|maksimaaltase|Max tase| | +|maxlevel|maksimaaltase|Max level| | 
-|abc|abc|ABC klass| | +|abc|abc|ABC class| | 
-|cn8code|cn8_kood|CN8 kood| | +|cn8code|cn8_kood|CN8 code| | 
-|cnkogus|cnkogus|CN kogus| | +|cnkogus|cnkogus|CN quantity| | 
-|vatcodeeu2|KMKood_EU2|KM EU 2| | +|vatcodeeu2|KMKood_EU2|VAT EU 2| | 
-|vatcodeeu3|KMKood_EU3|KM EU 3| | +|vatcodeeu3|KMKood_EU3|VAT EU 3| | 
-|vatcodeconcern|KMKood_kontsern|KM kontsern| | +|vatcodeconcern|KMKood_kontsern|VAT concern| | 
-|accounteu2|konto_myyk_EU2|Müük EU 2| | +|accounteu2|konto_myyk_EU2|Sales EU 2| | 
-|accounteu3|konto_myyk_EU3|Müük EU 3| | +|accounteu3|konto_myyk_EU3|Sales EU 3| | 
-|accountconcern|konto_myyk_kontsern|Müük kontsern| | +|accountconcern|konto_myyk_kontsern|Sales concern| | 
-|snclass|sn_klass|SN klass| | +|snclass|sn_klass|SN class| | 
-|normarrivaltime|norm_aeg|Norm saabumisaeg| | +|normarrivaltime|norm_aeg|Normal arrival time| | 
-|replacement|asendus|Asendus| | +|replacement|asendus|Replacement| | 
-|snrule|sn_reegel|SN reegel| | +|snrule|sn_reegel|SN rule| | 
-|project|projekt|Projekt| |+|project|projekt|Project| |
 |variants|variandid|Variant| cannot be updated. 0=no; 1=yes | |variants|variandid|Variant| cannot be updated. 0=no; 1=yes |
 |autosn|auto_sn|Auto SN| | |autosn|auto_sn|Auto SN| |
-|specialprice1|kaibeta_hind1|Artikli käibeta lisahind1 (customizable)| | +|specialprice1|kaibeta_hind1|Item add. price w/o VAT 1 (customizable)| | 
-|specialprice2|kaibeta_hind2|Artikli käibeta lisahind2 (customizable)| | +|specialprice2|kaibeta_hind2|Item add. price w/o VAT 2 (customizable)| | 
-|specialprice3|kaibeta_hind3|Artikli käibeta lisahind3 (customizable)| | +|specialprice3|kaibeta_hind3|Item add. price w/o VAT 3 (customizable)| | 
-|specialprice4|kaibeta_hind4|Artikli käibeta lisahind4 (customizable)| | +|specialprice4|kaibeta_hind4|Item add. price w/o VAT 4 (customizable)| | 
-|specialprice5|kaibeta_hind5|Artikli käibeta lisahind5 (customizable)| | +|specialprice5|kaibeta_hind5|Item add. price w/o VAT 5 (customizable)| | 
-|specialprice6|kaibeta_hind6|Artikli käibeta lisahind6 (customizable)| | +|specialprice6|kaibeta_hind6|Item add. price w/o VAT 6 (customizable)| | 
-|specialprice7|kaibeta_hind7|Artikli käibeta lisahind7 (customizable)| | +|specialprice7|kaibeta_hind7|Item add. price w/o VAT 7 (customizable)| | 
-|specialprice8|kaibeta_hind8|Artikli käibeta lisahind8 (customizable)| | +|specialprice8|kaibeta_hind8|Item add. price w/o VAT 8 (customizable)| | 
-|height|korgus|Kõrgus| | +|height|korgus|Height| | 
-|width|laius|Laius| | +|width|laius|Width| | 
-|depth|sygavus|Sügavus| | +|depth|sygavus|Depth| | 
-|grossweight|kaal_bruto|Bruto kaal| | +|grossweight|kaal_bruto|Gross weight| | 
-|giftcert|kinkekaart|Kinkekaart| | +|giftcert|kinkekaart|Gift card| | 
-|manufacturer|tootja|Tootja| | +|manufacturer|tootja|Manufacturer| | 
- +== Items additional fields: == 
-== Artiklid lisaväljad: == +^XML field^SQL field^UI field^Explanation^
-^XML väli^SQL väli^UI väli^Selgitus^+
 |code|kood| | | |code|kood| | |
-|content|sisu|Sisu| | +|content|sisu|Content| | 
-|param|param|Parameeter| |+|param|param|Parameter| |
  
-== Artiklid pakendid: == +== Items packages: == 
-^XML väli^SQL väli^UI väli^Selgitus+^XML field^SQL field^UI field^Explanation
-|class|pakendi_klass|Klass| | +|class|pakendi_klass|Class| | 
-|type|pakendi_tyyp|Tüüp| | +|type|pakendi_tyyp|Type| | 
-|height|korgus|Kõrgus| | +|height|korgus|Height| | 
-|width|laius|Laius| | +|width|laius|Width| | 
-|length|pikkus|Pikkus| | +|length|pikkus|Length| | 
-|volume|maht|Maht| | +|volume|maht|Volume| | 
-|qty|kogus|Pak.kogus| | +|qty|kogus|Packqty| | 
-|packageweight|pakendi_kaal|Pakendi kaal| | +|packageweight|pakendi_kaal|Package weight| | 
-|productweight|toote_kaal|Toote kaal| | +|productweight|toote_kaal|Product weight| | 
-|totalweight|kaal_kokku|KOKKU kaal| | +|totalweight|kaal_kokku|TOTAL weight| | 
-|totalvolume|maht_kokku|KOKKU maht| | +|totalvolume|maht_kokku|TOTAL volume| | 
-|barcode|ribakood|Ribakood| | +|barcode|ribakood|Barcode| | 
-|comment|kommentaar|Kommentaar| | +|comment|kommentaar|Comment| | 
-|shelf|riiul|Riiul| | +|shelf|riiul|Shelf| | 
- +== Items supplier items: == 
-== Artiklid hankija artiklid: == +^XML field^SQL field^UI field^Explanation
-^XML väli^SQL väli^UI väli^Selgitus+|supplier|hankija|Supplier| | 
-|supplier|hankija|Hankija| | +|supplieritem|hankija_artikkel|Suppitem| | 
-|supplieritem|hankija_artikkel|Hankartikkel| | +|name|nimi|Name| | 
-|name|nimi|Nimi| | +|price|hind|Purchase price| | 
-|price|hind|Ostuhind| | +|normarrivaltime|norm_aeg|Normal arrival time| | 
-|normarrivaltime|norm_aeg|Norm saabumisaeg| | +|object|objekt|Object| |
-|object|objekt|Objekt| |+
 |variant|variant|Variant| | |variant|variant|Variant| |
 |varianta|varianta|VariantA - (customizable)| | |varianta|varianta|VariantA - (customizable)| |
Line 626: Line 619:
 |variantg|variantg|VariantG - (customizable)| | |variantg|variantg|VariantG - (customizable)| |
 |varianth|varianth|VariantH - (customizable)| | |varianth|varianth|VariantH - (customizable)| |
-|salesprice|myygihind|Müügihind| without VAT|+|salesprice|myygihind|Sales price| without VAT|
 |sales|myyk|| ALT.FROM: tr.params, cannot be updated ,  sales item = 1, supplier item = 0 | |sales|myyk|| ALT.FROM: tr.params, cannot be updated ,  sales item = 1, supplier item = 0 |
- +== Items - minmax: == 
-== Artiklid - minmax: == +^XML field^SQL field^UI field^Explanation
-^XML väli^SQL väli^UI väli^Selgitus+|stock|ladu|Stock| | 
-|stock|ladu|Ladu| | +|shelf|riiul|Shelf| |
-|shelf|riiul|Riiul| |+
 |variant|variant|Variant| | |variant|variant|Variant| |
 |minlevel|min_kogus|MIN| | |minlevel|min_kogus|MIN| |
 |maxlevel|max_kogus|MAX| | |maxlevel|max_kogus|MAX| |
- +==Item transport parameters == 
-==Artikli transpordi parameetrid == +^TYPE ^CODE ^PARAMETER 1 ^PARAMETER 2 ^EXPLANATION
-^TÜÜP ^KOOD ^PARAMEETER 1 ^PARAMEETER 2 ^SELGITUS+|XML |xd_supplieritemtype |0 |ITEM |0 = supplier item; 1 = sales item 
-|XML |xd_supplieritemtype |0 |ITEM |0 = hankija artikkel; 1 = müügi artikkel +|XML |type |1 |ITEM |1 = stock item 
-|XML |type |1 |ITEM |1 = laoartikkel | +===Purchase Invoices ===
- +
- +
-===Ostuarved ===+
  
 what=purchase what=purchase
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_oarved.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_oarved.xsd|Schema ]]
  
-==Päis== +==Header== 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
 |number|number|Number| document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary | |number|number|Number| document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary |
-|date|aeg|Arve aeg| ALT.FROM: current time | +|date|aeg|Invoice time| ALT.FROM: current time | 
-|duedate|tas_aeg|Tas. aeg| | +|duedate|tas_aeg|Due time| | 
-|sum|summa|Tasuda| sum with vat | +|sum|summa|To be paid| sum with vat | 
-|supplierinvoiceno|hankija_arve|Hankija arve| | +|supplierinvoiceno|hankija_arve|Supplier invoice| | 
-|paymentterm|tingimus|Tasting.| ALT.FROM: supplier | +|paymentterm|tingimus|Payterm.| ALT.FROM: supplier | 
-|suppliercode|hankija_kood|Hankija| |+|suppliercode|hankija_kood|Supplier| |
 |suppliername|hankija_nimi|| ALT.FROM: supplier | |suppliername|hankija_nimi|| ALT.FROM: supplier |
 |bankaccount|pangakonto| | ALT.FROM: supplier | |bankaccount|pangakonto| | ALT.FROM: supplier |
-|reference|viide|Viitenumber| ALT.FROM: supplier | +|reference|viide|Reference number| ALT.FROM: supplier | 
-|transactiontime|kande_aeg|Opaeg| | +|transactiontime|kande_aeg|Opertime| | 
-|creditaccount|kred_konto|Kredkonto| ALT.FROM: supplier > glob.settings | +|creditaccount|kred_konto|Credaccount| ALT.FROM: supplier > glob.settings | 
-|factoring|arve_tasub|Arve tasub| | +|factoring|arve_tasub|Invoice paid by| | 
-|currency|valuuta|Valuuta| ALT.FROM: glob.settings > 'EUR'+|currency|valuuta|Currency| ALT.FROM: glob.settings > 'EUR'
-|currencyrate|kurssbv1|Kurss| ALT.FROM: ECB current published rates | +|currencyrate|kurssbv1|Rate| ALT.FROM: ECB current published rates | 
-|vatzone|maa|KM Maa (peidetud väli)| local = 0, EU = 1, export = 2 ,  ALT.FROM: supplier > 0 | +|vatzone|maa|VAT Zone (hidden field)| local = 0, EU = 1, export = 2 ,  ALT.FROM: supplier > 0 | 
-|comment|kommentaar|Kommentaar| | +|comment|kommentaar|Comment| | 
-|vat|arvestatudkm|KM kokku| | +|vat|arvestatudkm|VAT total| | 
-|object|objekt|Objekt| ALT.FROM: supplier > tr.params | +|object|objekt|Object| ALT.FROM: supplier > tr.params | 
-|bankcode|pangakood|Pangakood| | +|bankcode|pangakood|Bank code| | 
-|creditpurchase|kredost|Kredost| | +|creditpurchase|kredost|Cred. purch.| | 
-|purchaseorder|ostutellimus|Ostutellimus| | +|purchaseorder|ostutellimus|Purchase order| | 
-|project|projekt|Projekt| | +|project|projekt|Project| | 
-|email|email|meil| ALT.FROM: supplier | +|email|email|e-mail| ALT.FROM: supplier | 
-|stockreceipt|sissetulek|Sissetulek| | +|stockreceipt|sissetulek|Stock receipt| | 
-|country|asumaa|Saatjariik| ALT.FROM: supplier | +|country|asumaa|Origin country| ALT.FROM: supplier | 
-|prepayment|ettemaks|Ettemaks| | +|prepayment|ettemaks|Prepayment| | 
-|status|staatus|Staatus| | +|status|staatus|Status| | 
-|type|tyyp|Tüüp| | +|type|tyyp|Type| | 
-|dividedsum|jagatav_summa|Jagatav summa| | +|dividedsum|jagatav_summa|Divisible sum| | 
-|vatdate|km_aeg|KM aeg| ALT.FROM: date > current time | +|vatdate|km_aeg|VAT time| ALT.FROM: date > current time | 
-|reclamation|reklamatsioon|Reklamatsioon| | +|reclamation|reklamatsioon|Reclamation| | 
-|reclamationcomment|rekl_selgitus|Reklselgitus| | +|reclamationcomment|rekl_selgitus|Reclexplanation| | 
-|asset|inventar|Inventar| |+|asset|inventar|Asset| |
 |datafield1|lisa_field1|| | |datafield1|lisa_field1|| |
 |datafield2|lisa_field2|| | |datafield2|lisa_field2|| |
Line 692: Line 681:
 |datafield6|lisa_field6|| | |datafield6|lisa_field6|| |
 |datafield7|lisa_field7|| | |datafield7|lisa_field7|| |
-|intcomment|sisekommentaar|Sisekommentaar| | +|intcomment|sisekommentaar|Internal comment| | 
-|supplier_class|hankija_klass|Klass| | +|supplier_class|hankija_klass|Class| | 
-|supplier_vatcountry|hankija_maa_tasu|KM-maa| local = 0, EU = 1, export = 2 ,  ALT.FROM: customer > 0 | +|supplier_vatcountry|hankija_maa_tasu|VAT-zone| local = 0, EU = 1, export = 2 ,  ALT.FROM: customer > 0 | 
-|supplier_regno|hankija_regnr1|Reg nr 1| | +|supplier_regno|hankija_regnr1|Reg no 1| | 
-|supplier_vatregno|hankija_kmregnr|Km reg nr| | +|supplier_vatregno|hankija_kmregnr|VAT reg no| | 
-|supplier_type|hankija_tyyp|Tüüp| | +|supplier_type|hankija_tyyp|Type| | 
-|confirm|kinnita|Olek| "1" - confirm document |+|confirm|kinnita|State| "1" - confirm document |
  
-==read == +==rows == 
-^XML väli^SQL väli^UI väli^Selgitus+^XML field^SQL field^UI field^Explanation
-|account|konto|Konto| | +|account|konto|Account| | 
-|object|objekt|Objekt ALT.FROM: project | +|object|objekt|Object| ALT.FROM: project | 
-|name|sisu|Sisu|  ALT.FROM: account | +|name|sisu|Content|  ALT.FROM: account | 
-|linetotalwovat|summa|Summa| | +|linetotalwovat|summa|Sum| | 
-|vatcode|kmkood|KMK|  ALT.FROM: supplier > account > object | +|vatcode|kmkood|VAT code|  ALT.FROM: supplier > account > object | 
-|project|projekt|Projekt| | +|project|projekt|Project| | 
-|customer|klient_kood|Klient| | +|customer|klient_kood|Customer| | 
-|item|artikkel|Artikkel| | +|item|artikkel|Item| | 
-|quantity|kogus|Kogus| | +|quantity|kogus|Quantity| | 
-|date1|r_aeg1|Algus| | +|date1|r_aeg1|Start| | 
-|date2|r_aeg2|Lõpp| | +|date2|r_aeg2|End| | 
-|contract|leping|Leping| | +|contract|leping|Contract| | 
-|user|kasutaja|Kasutaja| |+|user|kasutaja|User| |
 |oid|oid|OID| | |oid|oid|OID| |
 |orderrn|trn|| | |orderrn|trn|| |
-|asset|r_inventar|Inventar| | +|asset|r_inventar|Asset| | 
-|price|myygihind|Müügihind| |+|price|myygihind|Sales price| |
 |constant1|konstant1| | | |constant1|konstant1| | |
 |constant2|konstant2| | | |constant2|konstant2| | |
Line 727: Line 716:
 |text3|tekst3|| | |text3|tekst3|| |
 |text4|tekst4|| | |text4|tekst4|| |
-|intcomment|r_sisekommentaar|Sisekommentaar| | +|intcomment|r_sisekommentaar|Internal comment| | 
-|vatsum|km|KM| | +|vatsum|km|VAT| | 
-|rn|rn|Nr| |+|rn|rn|No.| |
  
-==manused == +==attachments == 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |name |attachment_name | | | |name |attachment_name | | |
 |description |attachment_kirjeldus | | | |description |attachment_kirjeldus | | |
-|code |kood| | for updating excisting attachments, do not send this field for new attachments |+|code |kood| | for updating existing attachments, do not send this field for new attachments |
 |sharepoint_link |cloud_preview_query| | external Sharepoint attachment link  | |sharepoint_link |cloud_preview_query| | external Sharepoint attachment link  |
 |gdrive_link |cloud_gdrive| | external Google Drive attachment link  | |gdrive_link |cloud_gdrive| | external Google Drive attachment link  |
 |ext_link|cloud_ext_link | | external attachment link, must be full external link starting with <code>http://</code>  | |ext_link|cloud_ext_link | | external attachment link, must be full external link starting with <code>http://</code>  |
- +==Purchase invoice transport parameters == 
-==Ostuarve transpordi parameetrid == +TYPE  CODE                      PARAMETER 1  ^ PARAMETER 2  ^ EXPLANATION                                                                                                      
-TÜÜP  KOOD                      PARAMEETER 1  ^ PARAMEETER 2  ^ SELGITUS                                                                                                                          +| XML   | xd_autosupplier           | 1             | PURCHASE      | Automatic creation of a related supplier if the supplier code does not exista unique reg. number is a prerequisite 
-| XML   | xd_autosupplier           | 1             | PURCHASE      | Automaatne seotud hankija loominekui hankija koodi ei eksisteeri, unikaalne regnr on eelduseks                                  +| XML   | xd_autosupplier_autocode  | 0             | PURCHASE      | When creating a related supplierthe code is created in the interface, a unique reg. number is required and system settings for supplier codes are necessary 
-| XML   | xd_autosupplier_autocode  | 0             | PURCHASE      | Seotud hankija loomisel luuakse kood liidesesunikaalne reg.number on vajalik ja hankija koodi süsteemiseadistused on vajalikud  +| XML   | xd_update                 | 0             | PURCHASE      | Allow document update if there are no related documents                                                          
-| XML   | xd_update                 | 0             | PURCHASE      | Luba dokumendi update, kui puuduvad seotud dokumendid                                                                             +| XML   | supplier_update           | 0             | PURCHASE      | Partial update of supplier data, (email, ... ) fields need to be specified in the spec                             
-| XML   | supplier_update           | 0             | PURCHASE      | Hankija andmete osaline update, (email, ... ) väljad on vaja spekis täpsustada                                                    +| XML   | xd_object                 | VEEB          | PURCHASE      | Default objectif not sent                                                                                      
-| XML   | xd_object                 | VEEB          | PURCHASE      | Vaikimisi objektkui ei saadeta                                                                                                  +| XML   | xd_confirm                | 0             | PURCHASE      | Automatic document confirmationthis can also be controlled with the XML field "confirm"   
-| XML   | xd_confirm                | 0             | PURCHASE      | Automaatne dokumendi kinnitamineseda saab ka juhtida XML väljaga "confirm"                                                      | +===Resources ===
- +
- +
-===Ressursid ===+
  
 what=resource what=resource
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_ressursid.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_ressursid.xsd|Schema ]]
  
  
  
-== Päis: == +== Header: == 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | | |session_id|x| | |
 |ext_unique_id|ext_unique_id| | | |ext_unique_id|ext_unique_id| | |
Line 779: Line 765:
 |confirm|kinnita| | | |confirm|kinnita| | |
  
-== Read: == +== Rows: == 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |item|artikkel| | | |item|artikkel| | |
 |quantity|kogus| | | |quantity|kogus| | |
Line 824: Line 810:
 |delete|kustuta| | | |delete|kustuta| | |
 |rn|rn| | | |rn|rn| | |
 +==== Outputs ====
  
-==== Väljundid ====+=== Items (Items) ===
  
-=== Artiklid (Items) ===+  * what=item  [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid.xsd|Schema ]] \\ Filters: class,code,type,barcode,supplier,supplieritem,closed,ts
  
-  * what=item  [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid.xsd|Skeem ]] \\ Filtridclass,code,type,barcode,supplier,supplieritem,closed,ts+== Item stock limits (Item stock limits) == 
 +  * what=itemstocklimit [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_laolimiidid.xsd|Schema ]] \\ Filters: code,stock,ts
  
-== Artikli laolimiidid (Item stock limits) == +== Item packages (Item packages) == 
-  * what=itemstocklimit [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_laolimiidid.xsd|Skeem ]] \\ Filtrid: code,stock,ts+  * what=itempackage [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_pakendid.xsd|Schema ]] \\ Filters: code,ts
  
-== Artikli pakendid (Item packages) == +== Item relations (Item relations) == 
-  * what=itempackage [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_pakendid.xsd|Skeem ]] \\ Filtrid: code,ts+  * what=itemrelitem [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_seotud.xsd|Schema ]] \\ Filters: code,ts
  
-== Seotud artikli (Item relations) == +=== Customers (Customers) ===
-  * what=itemrelitem [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_seotud.xsd|Skeem ]] \\ Filtrid: code,ts+
  
-=== Kliendid (Customers) ===+  * what=customer [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kliendid.xsd|Schema ]] \\ Filters: code,loyaltycard,regno,email,phone,closed,ts
  
-  * what=customer [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kliendid.xsd|Skeem ]] \\ Filtrid: code,loyaltycard,regno,email,phone,closed,ts +=== Suppliers (Suppliers) ===
- +
-=== Hankijad (Suppliers) ===+
  
   * what=supplier   * what=supplier
-  * [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_hankijad.xsd|Skeem ]] \\ +  * [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_hankijad.xsd|Schema ]] \\ 
-  * Filtrid: code,regno,email,closed,ts +  * Filters: code,regno,email,closed,ts
- +
-=== Laoseis (Stock levels) === +
-  * what=stocklevel [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis.xsd|Skeem ]] \\ +
-  * what= stocklevel_sn [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_sn.xsd|Skeem ]] \\ +
-  * what=stocklevel_variant [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_variandid.xsd|Skeem ]] \\ +
-  * Filtrid: code,stock,ts +
- +
-=== Hinnavalemi read (Price formula rows) ===+
  
-  * what=priceformularow [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_hinnavalemid.xsd|Skeem ]] \\ Filtridclass,code,ts+=== Stock levels (Stock levels) === 
 +  * what=stocklevel [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis.xsd|Schema ]] \\ 
 +  * what= stocklevel_sn [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_sn.xsd|Schema ]] \\ 
 +  * what=stocklevel_variant [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_variandid.xsd|Schema ]] \\ 
 +  * Filters: code,stock,ts
  
-=== Artikli klassid (Item classes) ===+=== Price formula rows (Price formula rows) ===
  
-  * what=itemclass [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artikliklassid.xsd|Skeem ]] \\ Filtrid: code,master+  * what=priceformularow [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_hinnavalemid.xsd|Schema ]] \\ Filtersclass,code,ts
  
-=== Arved (Invoices) ===+=== Item classes (Item classes) ===
  
-  * what=invoice [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_arved.xsd|Skeem ]] \\ Filtridnumber,customercode,transactiondate,date1,date2,ts, ordernumber+  * what=itemclass [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artikliklassid.xsd|Schema ]] \\ Filterscode,master
  
-=== Tellimused (Orders) ===+=== Invoices (Invoices) ===
  
-  * what=order [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_tellimused.xsd|Skeem ]] \\ Filtrid: number,date1,date2,ts, projekt, customerordernumber, stock, status+  * what=invoice [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_arved.xsd|Schema ]] \\ Filters: number,customercode,transactiondate,date1,date2,ts, ordernumber
  
-=== Finantskanded (Transactions) ===+=== Orders (Orders) ===
  
-  * what=transaction [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kanded.xsd|Skeem ]] \\ Filtrid: number,date1,date2,ts+  * what=order [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_tellimused.xsd|Schema ]] \\ Filters: number,date1,date2,ts, projekt, customerordernumber, stock, status
  
-=== Laekumised (Receipts) ===+=== Financial transactions (Transactions) ===
  
-  * what=receipt [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laekumised.xsd|Skeem ]] \\ Filtrid: number,date1,date2,ts+  * what=transaction [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kanded.xsd|Schema ]] \\ Filters: number,date1,date2,ts
  
-=== Ostuarved (Purchase) ===+=== Receipts (Receipts) ===
  
-  * what=purchase [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_oarved.xsd|Skeem ]] \\ Filtrid: number,date1,date2,supplier,confirmed,status,ts+  * what=receipt [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laekumised.xsd|Schema ]] \\ Filters: number,date1,date2,ts
  
-=== Ressursid (Resources) === +=== Purchase Invoices (Purchase) ===
-  * what=resource [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_ressursid.xsd|Skeem ]] \\  +
-  * Filtrid: number,confirmed,ts+
  
-=== Kustutatud dokumendid (Deleted documents ) ===+  * what=purchase [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_oarved.xsd|Schema ]] \\ Filters: number,date1,date2,supplier,confirmed,status,ts
  
-  * what=delete [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kustutamised.xsd|Skeem ]] \\ Filtrid: number,code,document,ts+=== Resources (Resources) === 
 +  * what=resource [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_ressursid.xsd|Schema ]] \\  
 +  * Filters: number,confirmed,ts
  
 +=== Deleted documents (Deleted documents ) ===
  
 +  * what=delete [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kustutamised.xsd|Schema ]] \\ Filters: number,code,document,ts
en/xml_direct.1753876869.txt.gz · Last modified: 2025/07/30 15:01 by toomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki