> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/infor-integration-and-configuration/exporting-to-infor/m3/example-export-m3.md).

# Example Export M3

## General Overview

The export to Infor M3 involves transferring invoice-related data from Docbits into Infor M3 in a structured manner. The data is organized into headers, tax lines, receipt lines, and cost lines. Each section includes static fields that remain constant across transactions and dynamic fields that vary based on the invoice or transaction details.

## Field Mappings

### Header Fields

| Field in Infor M3 | Mapped Field in Docbits    | Description                  |
| ----------------- | -------------------------- | ---------------------------- |
| HF\_SUNO          | supplier\_id               | Supplier identifier          |
| HF\_IVDT          | invoice\_date              | Invoice date                 |
| HF\_SINO          | invoice\_id                | Invoice identifier           |
| HF\_SPYN          | supplier\_id               | Supplier identifier          |
| HF\_CUCD          | currency                   | Currency used in the invoice |
| HF\_CUAM          | total\_amount              | Total amount                 |
| HF\_VTAM          | total\_tax\_amount         | Total tax amount             |
| HF\_ACDT          | accounting\_date           | Accounting Date              |
| HF\_SERS          | invoice\_sub\_type         | Invoice sub type             |
| HF\_FTCO          | supplier\_country\_code    | Supplier country code        |
| HF\_PUNO          | purchase\_order            | Purchase order               |
| HF\_TXAP          | tax\_country\_1            | Tax country                  |
| HF\_CORI          | correlation\_id            | Correlation identifier       |
| HF\_PAIN          | sqr\_field\_esr\_reference | Field Reference              |
| HF\_TCHG          | additional\_amount         | Additional amount            |
| HF\_CDC1          | negative\_amount           | Negative amount              |
| HF\_APCD          | authorised\_user           | Authorised user              |
| HF\_TEPY          | payment\_terms             | Payment terms                |
| HF\_PYME          | payment\_method            | Payment method               |
| HF\_BKID          | bank\_id                   | Bank identifier              |
| HF\_GEOC          | geo\_code                  | Geo code                     |
| HF\_TECD          | discount\_term             | Discount term                |
| HF\_TXAP          | tax\_applicable            | Tax applicable               |
| HF\_TXIN          | tax\_included              | Tax included                 |

## Tax Line Fields

| Field in Infor M3 | Mapped Field in Docbits | Description        |
| ----------------- | ----------------------- | ------------------ |
| ITF\_VTCD         | TF\_tax\_code           | Tax code           |
| ITF\_VTA1         | TF\_tax\_amount         | Tax amount         |
| ITF\_VTP1         | TF\_tax\_rate           | Tax rate           |
| ITF\_CLAM         | TF\_gross\_amount       | Gross amount       |
| ITF\_DIVI         | company\_id             | Company identifier |
| ITF\_TTXA         | TF\_amount              | Amount             |
| ITF\_TAXC         | TF\_tax\_code           | Tax code           |
| ITF\_GEOC         | TF\_geo\_code           | Geo code           |

## Order Header Extra Charges Fields <a href="#tax-line-fields" id="tax-line-fields"></a>

| Field in Infor M3      | Mapped Field in Docbits | Description |
| ---------------------- | ----------------------- | ----------- |
| OrderExtraChargeFields | NLAM                    | NLAM        |
| OECF\_NLAM             | TF\_amount              | Amount      |

## Receipt Line Fields

| Field in Infor M3 | Mapped Field in Docbits | Description           |
| ----------------- | ----------------------- | --------------------- |
| IRF\_IVQA         | TF\_quantity            | Invoiced quantity     |
| IRF\_PUUN         | TF\_unit                | Unit number           |
| IRF\_PUNO         | TF\_purchase\_order     | Purchase order number |
| IRF\_PNLI         | TF\_line\_number        | Order line number     |
| IRF\_ITNO         | TF\_item\_number        | Item number           |
| IRF\_POPN         | TF\_item\_number        | Item number           |
| IRF\_SUDO         | TF\_packing\_slip       | Packing slip          |
| IRF\_NEPR         | TF\_net\_unit\_price    | Net unit price        |
| IRF\_GRPR         | TF\_gross\_unit\_price  | Gross unit price      |
| IRF\_PPUN         | TF\_unit\_code\_price   | Unit code price       |
| IRF\_NLAM         | TF\_net\_amount         | Net amount            |
| IRF\_GLAM         | TF\_gross\_amount       | Gross amount          |
| IRF\_TCHG         | TF\_charges             | Charges               |
| IRF\_CDC1         | TF\_discount            | Discount              |
| IRF\_PNLS         | TF\_sub\_line\_number   | Sub line number       |
| IRF\_REPN         | TF\_receipt\_number     | Receipt number        |
| IRF\_DIVI         | company\_id             | Company identifier    |
| IRF\_IVCW         | TF\_catch\_weight       | Catch weight          |
| IRF\_PUCD         | TF\_unit\_price\_per    | Unit price per        |

## Order Line Charges Fields <a href="#tax-line-fields" id="tax-line-fields"></a>

| Field in Infor M3 | Mapped Field in Docbits | Description     |
| ----------------- | ----------------------- | --------------- |
| OLCF\_GRPR        | TF\_unit\_price         | Unit price      |
| OLCF\_CHGT        | TF\_voucher\_text       | Voucher text    |
| OLCF\_CEID        | TF\_costing\_element    | Costing element |
| OLCF\_PUNO        | TF\_purchase\_order     | Purchase order  |
| OLCF\_PNLI        | TF\_line\_number        | Line number     |
| OLCF\_ITNO        | TF\_item\_number        | Item number     |
| OLCF\_CDSE        | TF\_charge\_sequence    | Charge sequence |
| OLCF\_PNLS        | TF\_sub\_line\_number   | Sub line number |
| OLCF\_REPN        | TF\_receipt\_number     | Receipt number  |
| OLCF\_IVQA        | TF\_quantity            | Quantity        |
| OLCF\_SUDO        | TF\_packing\_slip       | Packing slip    |

## Order Charge Line Fields <a href="#tax-line-fields" id="tax-line-fields"></a>

| Field in Infor M3 | Mapped Field in Docbits | Description     |
| ----------------- | ----------------------- | --------------- |
| OCF\_NLAM         | TF\_amount              | Amount          |
| OCF\_CEID         | TF\_costing\_element    | Costing element |
| OCF\_CDSE         | TF\_charge\_sequence    | Charge sequence |

### Cost Line Fields

| Field in Infor M3 | Mapped Field in Docbits   | Description               |
| ----------------- | ------------------------- | ------------------------- |
| ICF\_NLAM         | TF\_amount                | Amount in the transaction |
| ICF\_VTXT         | TF\_voucher\_text         | Voucher text              |
| ICF\_AIT1         | TF\_ledger\_account       | Ledger account            |
| ICF\_AIT2         | TF\_dimension\_2          | Dimension 2               |
| ICF\_AIT3         | TF\_dimension\_3          | Dimension 3               |
| ICF\_AIT4         | supplier\_id              | Supplier identifier       |
| ICF\_AIT5         | TF\_dimension\_5          | Dimension 5               |
| ICF\_AIT6         | TF\_dimension\_6          | Dimension 6               |
| ICF\_AIT7         | TF\_dimension\_7          | Dimension 7               |
| ICF\_AO01         | TF\_accounting\_object\_1 | Accounting object 1       |
| ICF\_AO02         | TF\_accounting\_object\_2 | Accounting object 2       |
| ICF\_AO03         | TF\_accounting\_object\_3 | Accounting object 3       |
| ICF\_AO04         | TF\_accounting\_object\_4 | Accounting object 4       |
| ICF\_AO05         | TF\_accounting\_object\_5 | Accounting object 5       |
| ICF\_AO06         | TF\_accounting\_object\_6 | Accounting object 6       |
| ICF\_AO07         | TF\_accounting\_object\_7 | Accounting object 7       |

## Debit Note Header Fields <a href="#tax-line-fields" id="tax-line-fields"></a>

| Field in Infor M3 | Mapped Field in Docbits    | Description             |
| ----------------- | -------------------------- | ----------------------- |
| DN\_HF\_SUNO      | supplier\_id               | Supplier identifier     |
| DN\_HF\_IVDT      | invoice\_date              | Invoice date            |
| DN\_HF\_SINO      | invoice\_id                | Invoice identifier      |
| DN\_HF\_SPYN      | supplier\_id               | Supplier identifier     |
| DN\_HF\_CUCD      | currency                   | Currency                |
| DN\_HF\_CUAM      | total\_net\_amount\_us     | Total net amount us     |
| DN\_HF\_VTAM      | total\_tax\_amount         | Total tax amount        |
| DN\_HF\_ACDT      | invoice\_date              | Invoice\_date           |
| DN\_HF\_SERS      | invoice\_sub\_type         | Invoice sub type        |
| DN\_HF\_FTCO      | supplier\_country\_code    | Supplier country code   |
| DN\_HF\_TXAP      | tax\_country\_1            | Tax country             |
| DN\_HF\_CORI      | correlation\_id            | Correlation identifier  |
| DN\_HF\_PAIN      | sqr\_field\_esr\_reference | Sqr field esr reference |
| DN\_HF\_TCHG      | additional\_amount         | Additional amount       |
| DN\_HF\_CDC1      | negative\_amount           | Negative amount         |
| DN\_HF\_APCD      | buyer\_id                  | Buyer identifier        |
| DN\_HF\_TEPY      | payment\_terms             | Payment terms           |
| DN\_HF\_PYME      | payment\_method            | Payment Method          |
| DN\_HF\_BKID      | bank\_id                   | Bank identifier         |
| DN\_HF\_GEOC      | geo\_code                  | Geo Code                |

## Debit Note Cost Line Fields <a href="#tax-line-fields" id="tax-line-fields"></a>

<table><thead><tr><th width="252">Field in Infor M3</th><th>Mapped Field in Docbits</th><th>Description</th></tr></thead><tbody><tr><td>DebitNoteInvoiceCostFields</td><td>NLAM,AIT5</td><td>NLAM,AIT5</td></tr><tr><td>DNCF_NLAM</td><td>TF_amount</td><td>Amount</td></tr><tr><td>DNCF_AIT5</td><td>purchase_order</td><td>Purchase Order</td></tr></tbody></table>

## Debit Note Receipt Line Fields <a href="#tax-line-fields" id="tax-line-fields"></a>

| Field in Infor M3 | Mapped Field in Docbits | Description      |
| ----------------- | ----------------------- | ---------------- |
| DNRF\_IVQA        | TF\_quantity            | Quantity         |
| DNRF\_PUUN        | TF\_unit                | Unit             |
| DNRF\_PUNO        | TF\_purchase\_order     | Purchase order   |
| DNRF\_PNLI        | TF\_line\_number        | Line number      |
| DNRF\_ITNO        | TF\_item\_number        | Item number      |
| DNRF\_POPN        | TF\_item\_number        | Item number      |
| DNRF\_SUDO        | TF\_packing\_slip       | Packing slip     |
| DNRF\_NEPR        | TF\_net\_unit\_price    | Net unit price   |
| DNRF\_GRPR        | TF\_gross\_unit\_price  | Gross unit price |
| DNRF\_PPUN        | TF\_unit\_code\_price   | Unit code price  |
| DNRF\_NLAM        | TF\_net\_amount         | Net amount       |
| DNRF\_GLAM        | TF\_gross\_amount       | Gross amount     |
| DNRF\_TCHG        | TF\_charges             | Charges          |
| DNRF\_CDC1        | TF\_discount            | Discount         |

## Credit Note Header <a href="#tax-line-fields" id="tax-line-fields"></a>

| Field in Infor M3 | Mapped Field in Docbits    | Description             |
| ----------------- | -------------------------- | ----------------------- |
| CN\_HF\_SUNO      | supplier\_id               | Supplier identifier     |
| CN\_HF\_IVDT      | invoice\_date              | Invoice date            |
| CN\_HF\_SINO      | invoice\_id                | Invoice identifier      |
| CN\_HF\_SPYN      | supplier\_id               | Supplier identifier     |
| CN\_HF\_CUCD      | currency                   | Currency                |
| CN\_HF\_CUAM      | total\_net\_amount\_us     | Total net amount us     |
| CN\_HF\_VTAM      | total\_tax\_amount         | Total tax amount        |
| CN\_HF\_ACDT      | invoice\_date              | Invoice date            |
| CN\_HF\_SERS      | invoice\_sub\_type         | Invoice sub type        |
| CN\_HF\_FTCO      | supplier\_country\_code    | Supplier country code   |
| CN\_HF\_TXAP      | tax\_country\_1            | Tax country             |
| CN\_HF\_CORI      | correlation\_id            | Correlation identifier  |
| CN\_HF\_PAIN      | sqr\_field\_esr\_reference | Sqr field esr reference |
| CN\_HF\_TCHG      | additional\_amount         | Additional amount       |
| CN\_HF\_CDC1      | negative\_amount           | Negative amount         |
| CN\_HF\_APCD      | buyer\_id                  | Buyer identifier        |
| CN\_HF\_TEPY      | payment\_terms             | Payment terms           |
| CN\_HF\_PYME      | payment\_method            | Payment method          |
| CN\_HF\_BKID      | bank\_id                   | Bank identifier         |
| CN\_HF\_GEOC      | geo\_code                  | Geo code                |

## Credit Note Cost Line Fields <a href="#tax-line-fields" id="tax-line-fields"></a>

<table><thead><tr><th width="257">Field in Infor M3</th><th>Mapped Field in Docbits</th><th>Description</th></tr></thead><tbody><tr><td>CreditNoteInvoiceCostFields</td><td>NLAM,AIT5</td><td>NLAM, AIT5</td></tr><tr><td>CNCF_NLAM</td><td>TF_amount</td><td>Amount</td></tr><tr><td>CNCF_AIT5</td><td>purchase_order</td><td>Purchase order</td></tr></tbody></table>

## Credit Note Receipt Line Fields <a href="#tax-line-fields" id="tax-line-fields"></a>

| Field in Infor M3 | Mapped Field in Docbits | Description      |
| ----------------- | ----------------------- | ---------------- |
| CNRF\_IVQA        | TF\_quantity            | Quantity         |
| CNRF\_PUUN        | TF\_unit                | Unit             |
| CNRF\_PUNO        | TF\_purchase\_order     | Purchase order   |
| CNRF\_PNLI        | TF\_line\_number        | Line number      |
| CNRF\_ITNO        | TF\_item\_number        | Item number      |
| CNRF\_POPN        | TF\_item\_number        | Item number      |
| CNRF\_SUDO        | TF\_packing\_slip       | Packing slip     |
| CNRF\_NEPR        | TF\_net\_unit\_price    | Net unit price   |
| CNRF\_GRPR        | TF\_gross\_unit\_price  | Gross unit price |
| CNRF\_PPUN        | TF\_unit\_code\_price   | Unit code price  |
| CNRF\_NLAM        | TF\_net\_amount         | Net amount       |
| CNRF\_GLAM        | TF\_gross\_amount       | Gross amount     |
| CNRF\_TCHG        | TF\_charges             | Charges          |
| CNRF\_CDC1        | TF\_discount            | Discount         |

## Static Fields

In addition to the dynamic mappings, there are several static fields used for each type of line, which are predefined as follows:

* **Header Static Fields**:
  * StaticFields=DIVI,IBTP,BSCD,IMCD,APCD,CRTP,CONO,PVLD
  * SF\_DIVI=RFP
  * SF\_IBTP=20
  * SF\_CONO=001
  * SF\_BSCD=DE
  * SF\_IMCD=0
  * SF\_APCD=MHIDALGO
  * SF\_CRTP=1
  * SF\_PVLD=1
* **Tax Line Static Fields:**
  * InvoiceTaxStaticFields=RDTP,DIVI,VTCD,CONO,TAXT
  * IT\_SF\_RDTP=3
  * IT\_SF\_DIVI=RFP
  * IT\_SF\_CONO=001
  * IT\_SF\_TAXT=2
* **Order Header Extra Charge Static Static Fields:**
  * OrderExtraChargeStaticFields=RDTP,DIVI,CONO,CDSE,CEID
  * OEC\_SF\_RDTP=2
  * OEC\_SF\_DIVI=RFP
  * OEC\_SF\_CONO=001
  * OEC\_SF\_CEID=INVPD
  * OEC\_SF\_CDSE=99
* **Receipt Line Static Fields**:
  * InvoiceReceiptStaticFields=RDTP,DIVI,SERS,RELP,VTCD,CONO
  * IR\_SF\_RDTP=1
  * IR\_SF\_DIVI=RFP
  * IR\_SF\_RELP=1
  * IR\_SF\_VTCD=52
  * IR\_SF\_CONO=001
* **Order Line Charge Static Fields:**
  * OrderLineChargeStaticFields=RDTP,DIVI,CONO
  * OLC\_SF\_RDTP=5
  * OLC\_SF\_DIVI=RFP
  * OLC\_SF\_CONO=001
* **Order Charge Line Static Fields:**
  * OrderChargeStaticFields=RDTP,DIVI,CONO
  * OC\_SF\_RDTP=2
  * OC\_SF\_DIVI=RFP
  * OC\_SF\_CONO=001
* **Cost Line Static Fields**:
  * InvoiceCostStaticFields=RDTP,DIVI,CONO
  * IC\_SF\_RDTP=8
  * IC\_SF\_DIVI=RFP
  * IC\_SF\_CONO=001
* **Debit Note Header Static Fields:**
  * DNStaticFields=DIVI,IBTP,BSCD,IMCD,TEPY,PYME,APCD,CRTP,CONO
  * DN\_SF\_DIVI=RFP
  * DN\_SF\_IBTP=20
  * DN\_SF\_CONO=001
  * DN\_SF\_BSCD=DE
  * DN\_SF\_IMCD=0
  * DN\_SF\_TEPY=N00
  * DN\_SF\_PYME=CSH
  * DN\_SF\_APCD=MHIDALGO
  * DN\_SF\_CRTP=1
  * DN\_SF\_BKID=DJ1
* **Debit Note Cost Line Static Fields:**
  * DebitNoteCostStaticFields=RDTP,DIVI,CONO,AIT1,AIT2,AIT3,AIT4,AIT5,AIT6,AIT7
  * DNC\_SF\_RDTP=8
  * DNC\_SF\_DIVI=RFP
  * DNC\_SF\_CONO=001
  * DNC\_SF\_AIT1=20216
  * DNC\_SF\_AIT3=100
  * DNC\_SF\_AIT6=INVDN
  * DNC\_SF\_AIT7=PP20230
* **Debit Note Receipt Line Static Fields**
  * DebitNoteReceiptStaticFields=RDTP,DIVI,SERS,RELP,VTCD,CONO
  * DNR\_SF\_RDTP=1
  * DNR\_SF\_DIVI=RFP
  * DNR\_SF\_RELP=1
  * DNR\_SF\_VTCD=52
  * DNR\_SF\_CONO=001
* **Credit Note Header Static Fields:**
  * CNStaticFields=DIVI,IBTP,BSCD,IMCD,TEPY,PYME,APCD,CRTP,CONO
  * CN\_SF\_DIVI=RFP
  * CN\_SF\_IBTP=20
  * CN\_SF\_CONO=001
  * CN\_SF\_BSCD=DE
  * CN\_SF\_IMCD=0
  * CN\_SF\_TEPY=N00
  * CN\_SF\_PYME=CSH
  * CN\_SF\_APCD=MHIDALGO
  * CN\_SF\_CRTP=1
  * CN\_SF\_BKID=DJ1
* **Credit Note Cost Line Static Fields:**
  * CreditNoteCostStaticFields=RDTP,DIVI,CONO,AIT1,AIT2,AIT3,AIT4,AIT5,AIT6,AIT7
  * CNC\_SF\_RDTP=8
  * CNC\_SF\_DIVI=RFP
  * CNC\_SF\_CONO=001
  * CNC\_SF\_AIT1=20216
  * CNC\_SF\_AIT3=100
  * CNC\_SF\_AIT6=INVDN
  * CNC\_SF\_AIT7=PP20230
* **Credit Note Receipt Line Static Fields:**
  * CreditNoteReceiptStaticFields=RDTP,DIVI,SERS,RELP,VTCD,CONO
  * CNR\_SF\_RDTP=1
  * CNR\_SF\_DIVI=RFP
  * CNR\_SF\_RELP=1
  * CNR\_SF\_VTCD=52
  * CNR\_SF\_CONO=001

## Full Example

```
###########################
# Header
###########################

## Header Static Fields
StaticFields=DIVI,IBTP,BSCD,IMCD,APCD,CRTP,CONO,PVLD
SF_DIVI=RFP
SF_IBTP=20
SF_CONO=001
#SF_BSCD=DE
SF_IMCD=0
#SF_APCD=MHIDALGO
SF_CRTP=1
# Partial validation
#SF_PVLD=1

## Header Fields
HeaderFields=SUNO,IVDT,SINO,SPYN,CUCD,CUAM,VTAM,ACDT,SERS,FTCO,BSCD,PUNO,CORI,PAIN,TCHG,CDC1,APCD,TEPY,PYME,BKID,GEOC,TECD,TXAP,TXIN
HF_SUNO=supplier_id
HF_IVDT=invoice_date
HF_SINO=invoice_id
HF_SPYN=supplier_id
HF_CUCD=currency
HF_CUAM=total_amount
#HF_VTAM=total_tax_amount
#HF_ACDT=invoice_date
#HF_SERS=invoice_sub_type
HF_FTCO=supplier_country_code
HF_PUNO=purchase_order
#HF_TXAP=tax_country_1
HF_CORI=correlation_id
HF_PAIN=sqr_field_esr_reference
HF_TCHG=additional_amount
HF_CDC1=negative_amount
HF_APCD=buyer_id
HF_TEPY=payment_terms
HF_PYME=payment_method
HF_BKID=bank_id
HF_GEOC=geo_code
HF_TECD=discount_term
# Tax applicable
HF_TXAP=tax_applicable
# Tax included
HF_TXIN=tax_included

###########################
# Tax Line
###########################

# ## Tax Line Static Fields
InvoiceTaxStaticFields=RDTP,DIVI,VTCD,CONO,TAXT
IT_SF_RDTP=3
IT_SF_DIVI=RFP
IT_SF_CONO=001
# Tax Type
IT_SF_TAXT=2

# ## Tax Line Fields
# InvoiceTaxFields=VTCD,VTA1,VTP1,CLAM
InvoiceTaxFields=TTXA,TAXC,GEOC
# ITF_VTCD=TF_tax_code
# ITF_VTA1=TF_tax_amount
# ITF_VTP1=TF_tax_rate
# ITF_CLAM=TF_gross_amount

ITF_TTXA = TF_amount
ITF_TAXC = TF_tax_code
ITF_GEOC = TF_geo_code


###########################
# Order Header Extra Charges
###########################

OrderHeaderExtraCharges=order_xtra_header_charges

## Order Header Extra Charge Static Fields
OrderExtraChargeStaticFields=RDTP,DIVI,CONO,CDSE,CEID
OEC_SF_RDTP=2
OEC_SF_DIVI=RFP
OEC_SF_CONO=001
OEC_SF_CEID=INVPD
OEC_SF_CDSE=99

## Order Header Extra Charge Fields
OrderExtraChargeFields=NLAM
OECF_NLAM=TF_amount


###########################
# Receipt Line
###########################

InvoiceReceipt=invoice_table

## Receipt Line Static Fields
InvoiceReceiptStaticFields=RDTP,DIVI,SERS,RELP,VTCD,CONO
IR_SF_RDTP=1
IR_SF_DIVI=RFP
IR_SF_RELP=1
#IR_SF_VTCD=52
IR_SF_CONO=001

## Receipt Line Fields
InvoiceReceiptFields=IVQA,PUUN,PUNO,PNLI,ITNO,POPN,SUDO,NEPR,GRPR,PPUN,NLAM,GLAM,TCHG,CDC1,REPN,PNLS
IRF_IVQA = TF_quantity
IRF_PUUN = TF_unit
IRF_PUNO = TF_purchase_order
IRF_PNLI = TF_line_number
IRF_ITNO = TF_item_number
IRF_POPN = TF_item_number
IRF_SUDO = TF_packing_slip
#IRF_NEPR = TF_net_unit_price
IRF_GRPR = TF_gross_unit_price
IRF_PPUN = TF_unit_code_price
#IRF_NLAM = TF_net_amount
#IRF_GLAM = TF_gross_amount
IRF_TCHG = TF_charges
IRF_CDC1 = TF_discount
IRF_PNLS = TF_sub_line_number
IRF_REPN = TF_receipt_number


###########################
# Order Line Charges
###########################

OrderLineCharge=order_charges
## Order Charge Static Fields
OrderLineChargeStaticFields=RDTP,DIVI,CONO
OLC_SF_RDTP=5
OLC_SF_DIVI=RFP
OLC_SF_CONO=001

## Order Charge Fields
OrderLineChargeFields=NLAM,CHGT,CEID,PUNO,PNLI,GRPR,ITNO,IVQA,SUDO,CDSE,REPN,PNLS
OLCF_GRPR=TF_unit_price
OLCF_CHGT=TF_voucher_text
OLCF_CEID=TF_costing_element
OLCF_PUNO=TF_purchase_order
OLCF_PNLI=TF_line_number
OLCF_ITNO=TF_item_number
OLCF_CDSE=TF_charge_sequence
OLCF_PNLS = TF_sub_line_number
OLCF_REPN = TF_receipt_number
OLCF_IVQA=TF_quantity
OLCF_SUDO=TF_packing_slip


###########################
# Order Charge Line
###########################

OrderCharge=order_charges

## Order Charge Static Fields
OrderChargeStaticFields=RDTP,DIVI,CONO
OC_SF_RDTP=2
OC_SF_DIVI=RFP
OC_SF_CONO=001

## Order Charge Fields
OrderChargeFields=NLAM,CHGT,CEID,CDSE
OCF_NLAM=TF_amount
OCF_CEID=TF_costing_element
OCF_CDSE=TF_charge_sequence


###########################
# Cost Line
###########################

InvoiceCost=cost_lines

## Cost Line Static Fields
InvoiceCostStaticFields=RDTP,DIVI,CONO
IC_SF_RDTP=8
IC_SF_DIVI=RFP
IC_SF_CONO=001

## Cost Line Fields
InvoiceCostFields=NLAM,VTXT,AO01,AO02,AO03,AO04,AO05,AO06,AO07,VTCD,AIT1,AIT2,AIT3,AIT4,AIT5,AIT6,AIT7,VTP1,VTP2
ICF_NLAM=TF_amount
ICF_VTXT=TF_voucher_text
ICF_AIT1=TF_ledger_account
ICF_AIT2=TF_dimension_2
ICF_AIT3=TF_dimension_3
ICF_AIT4=TF_dimension_4
ICF_AIT5=TF_dimension_5
ICF_AIT6=TF_dimension_6
ICF_AIT7=TF_dimension_7
ICF_AO01=TF_accounting_object_1
ICF_AO02=TF_accounting_object_2
ICF_AO03=TF_accounting_object_3
ICF_AO04=TF_accounting_object_4
ICF_AO05=TF_accounting_object_5
ICF_AO06=TF_accounting_object_6
ICF_AO07=TF_accounting_object_7


###########################
# Debit Note Header
###########################

## Header Static Fields
DNStaticFields=DIVI,IBTP,BSCD,IMCD,TEPY,PYME,APCD,CRTP,CONO
DN_SF_DIVI=RFP
DN_SF_IBTP=20
DN_SF_CONO=001
#DN_SF_BSCD=DE
DN_SF_IMCD=0
#DN_SF_TEPY=N00
#DN_SF_PYME=CSH
#DN_SF_APCD=MHIDALGO
DN_SF_CRTP=1
#DN_SF_BKID=DJ1

## Header Fields
DNHeaderFields=SUNO,IVDT,SINO,SPYN,CUCD,CUAM,VTAM,ACDT,SERS,FTCO,BSCD,TXAP,CORI,PAIN,TCHG,CDC1,APCD,TEPY,PYME,BKID,GEOC
DN_HF_SUNO=supplier_id
DN_HF_IVDT=invoice_date
DN_HF_SINO=invoice_id
DN_HF_SPYN=supplier_id
DN_HF_CUCD=currency
DN_HF_CUAM=total_net_amount_us
#DN_HF_VTAM=total_tax_amount
#DN_HF_ACDT=invoice_date
#DN_HF_SERS=invoice_sub_type
DN_HF_FTCO=supplier_country_code
DN_HF_TXAP=tax_country_1
DN_HF_CORI=correlation_id
DN_HF_PAIN=sqr_field_esr_reference
DN_HF_TCHG=additional_amount
DN_HF_CDC1=negative_amount
DN_HF_APCD=buyer_id
DN_HF_TEPY=payment_terms
DN_HF_PYME=payment_method
DN_HF_BKID=bank_id
DN_HF_GEOC=geo_code


###########################
# Debit Note Cost Line
###########################

DebiteNoteInvoiceCost=debite_note_cost_lines

## Cost Line Static Fields
DebitNoteCostStaticFields=RDTP,DIVI,CONO,AIT1,AIT2,AIT3,AIT4,AIT5,AIT6,AIT7
DNC_SF_RDTP=8
DNC_SF_DIVI=RFP
DNC_SF_CONO=001
DNC_SF_AIT1=20216
DNC_SF_AIT3=100
DNC_SF_AIT6=INVDN
DNC_SF_AIT7=PP20230

## Cost Line Fields
DebitNoteInvoiceCostFields=NLAM,AIT5
DNCF_NLAM=TF_amount
DNCF_AIT5=purchase_order

###########################
# Debit Note Receipt Line
###########################

DebitNoteReceipt=invoice_table

## Debit Note Receipt Line Static Fields
DebitNoteReceiptStaticFields=RDTP,DIVI,SERS,RELP,VTCD,CONO
DNR_SF_RDTP=1
DNR_SF_DIVI=RFP
DNR_SF_RELP=1
#DNR_SF_VTCD=52
DNR_SF_CONO=001

## Debit Note Receipt Line Fields
DebitNoteReceiptFields=IVQA,PUUN,PUNO,PNLI,ITNO,POPN,SUDO,NEPR,GRPR,PPUN,NLAM,GLAM,TCHG,CDC1
DNRF_IVQA = TF_quantity
DNRF_PUUN = TF_unit
DNRF_PUNO = TF_purchase_order
DNRF_PNLI = TF_line_number
DNRF_ITNO = TF_item_number
DNRF_POPN = TF_item_number
DNRF_SUDO = TF_packing_slip
#DNRF_NEPR = TF_net_unit_price
DNRF_GRPR = TF_gross_unit_price
DNRF_PPUN = TF_unit_code_price
#DNRF_NLAM = TF_net_amount
#DNRF_GLAM = TF_gross_amount
DNRF_TCHG = TF_charges
DNRF_CDC1 = TF_discount


###########################
# Credit Note Header
###########################

## Header Static Fields
CNStaticFields=DIVI,IBTP,BSCD,IMCD,TEPY,PYME,APCD,CRTP,CONO
CN_SF_DIVI=RFP
CN_SF_IBTP=20
CN_SF_CONO=001
#CN_SF_BSCD=DE
CN_SF_IMCD=0
#CN_SF_TEPY=N00
#CN_SF_PYME=CSH
#CN_SF_APCD=MHIDALGO
CN_SF_CRTP=1
#CN_SF_BKID=DJ1

## Header Fields
CNHeaderFields=SUNO,IVDT,SINO,SPYN,CUCD,CUAM,VTAM,ACDT,SERS,FTCO,BSCD,TXAP,CORI,PAIN,TCHG,CDC1,APCD,TEPY,PYME,BKID,GEOC
CN_HF_SUNO=supplier_id
CN_HF_IVDT=invoice_date
CN_HF_SINO=invoice_id
CN_HF_SPYN=supplier_id
CN_HF_CUCD=currency
CN_HF_CUAM=total_net_amount_us
#CN_HF_VTAM=total_tax_amount
#CN_HF_ACDT=invoice_date
#CN_HF_SERS=invoice_sub_type
CN_HF_FTCO=supplier_country_code
CN_HF_TXAP=tax_country_1
CN_HF_CORI=correlation_id
CN_HF_PAIN=sqr_field_esr_reference
CN_HF_TCHG=additional_amount
CN_HF_CDC1=negative_amount
CN_HF_APCD=buyer_id
CN_HF_TEPY=payment_terms
CN_HF_PYME=payment_method
CN_HF_BKID=bank_id
CN_HF_GEOC=geo_code


###########################
# Credit Note Cost Line
###########################

CreditNoteInvoiceCost=credit_note_cost_lines

## Cost Line Static Fields
CreditNoteCostStaticFields=RDTP,DIVI,CONO,AIT1,AIT2,AIT3,AIT4,AIT5,AIT6,AIT7
CNC_SF_RDTP=8
CNC_SF_DIVI=RFP
CNC_SF_CONO=001
CNC_SF_AIT1=20216
CNC_SF_AIT3=100
CNC_SF_AIT6=INVDN
CNC_SF_AIT7=PP20230

## Cost Line Fields
CreditNoteInvoiceCostFields=NLAM,AIT5
CNCF_NLAM=TF_amount
CNCF_AIT5=purchase_order

###########################
# Credit Note Receipt Line
###########################

CreditNoteReceipt=invoice_table

## Credit Note Receipt Line Static Fields
CreditNoteReceiptStaticFields=RDTP,DIVI,SERS,RELP,VTCD,CONO
CNR_SF_RDTP=1
CNR_SF_DIVI=RFP
CNR_SF_RELP=1
#CNR_SF_VTCD=52
CNR_SF_CONO=001

## Credit Note Receipt Line Fields
CeeditNoteReceiptFields=IVQA,PUUN,PUNO,PNLI,ITNO,POPN,SUDO,NEPR,GRPR,PPUN,NLAM,GLAM,TCHG,CDC1
CNRF_IVQA = TF_quantity
CNRF_PUUN = TF_unit
CNRF_PUNO = TF_purchase_order
CNRF_PNLI = TF_line_number
CNRF_ITNO = TF_item_number
CNRF_POPN = TF_item_number
CNRF_SUDO = TF_packing_slip
#CNRF_NEPR = TF_net_unit_price
CNRF_GRPR = TF_gross_unit_price
CNRF_PPUN = TF_unit_code_price
#CNRF_NLAM = TF_net_amount
#CNRF_GLAM = TF_gross_amount
CNRF_TCHG = TF_charges
CNRF_CDC1 = TF_discount
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.docbits.com/infor-integration-and-configuration/exporting-to-infor/m3/example-export-m3.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
