Configuration of the Order Adapter with different formats (XML, JSON).
When the Order Adapter is used (MATA120, MATA410), both must have the same file format configuration (XML, JSON).
In the SIGACFG (Configurator) module, Environment > Schedule >EAI Adapter >Add MATA410
Format field set to JSON.
ORDER 4.003 - Receipt
Element | Description | Note | |
BusinessContent | |||
CompanyId | Company | The field is filled in with the Company's From/To reference value. | |
CompanyInternalId | Company's InternalId | The field is filled in with the Company and Branch's From/To reference value. | |
BranchId | Branch | The field is filled in with the Branch's From/To reference value. | |
OrderPurpose | Purpose of the order | This indicates if the Order is:1 - Purchase | |
InternalId | InternalId of the Order | The field is filled in with the Orders' From/To reference value (SC5/SC7). | |
RegisterDate | Issue Date | ||
OrderId | Order Number | Code referring to the Protheus record (C5_NUM). | |
CustomerCode | Customer/Supplier code | Code referring to the Protheus record (A1_COD+A1_LOJA/A2_COD+A2_LOJA). | |
CustomerInternalId | InternalId of the Customer/Supplier | Code referring to the From/To (XXF). | |
PaymentTermCode | Payment Term | Code referring to the Protheus record (E4_CODIGO). | |
PaymentConditionInternalId | InternalId of the payment term | Code with the Payment Term's From/To reference value (SE4) | |
SalesOrderItens.Item | |||
InternalId | Order Item's InternalID | The field is filled in with the Order Item's From/To reference value (C6_ITEM). | |
OrderItem | Order Item | ||
ItemInternalId | InternalId of the Product | The field is filled in with the Product's From/To reference value (B1_COD). | |
ItemCode | Product Code | Code referring to the Protheus record (B1_COD). | |
Quantity | Quantity | ||
UnityPrice | Unit Price | ||
TotalPrice | Total Value | ||
TypeOperation | Operation Type | If lower than 3, it will be treated as C6_OPER; otherwise, it will be treated as C6_TES. | |
CostCenterCode | Cost Center | Code referring to the Protheus record (CTT_CUSTO). | |
CostCenterInternalId | InternalID of the Cost Center | The field is filled in with the Cost Center's From/To reference value (CTT_CUSTO). |