The tables of the database structure for e-invoices are structured as follows in i-effect. Based on the header information of an invoice document, the following structures can be found at the respective levels.
|
Main level |
Subordinate level 1 |
Subordinate level 2 |
Description |
|---|---|---|---|
|
|
|
Header data of the invoice |
|
|
|
|
Texts for the document header (TXREF = 0) |
|
|
|
|
Identifications of the partners involved (IDREF = 0) |
|
|
|
|
Previous documents of the invoice (PDKEY = ZF23INVHT.HTKEY and PDTYPE = 0 and PDREF = 0) |
|
|
|
|
Details on the partners involved (DPREF = 0) |
|
|
|
|
Addresses of participating partners (AIREF = 0) |
|
|
|
|
Surcharges and discounts to the document header (ACREF =0) |
|
|
|
|
Document references at header level (DRREF = 0) |
|
|
|
|
Tax identifications (IDTREF = 0) |
|
|
|
|
Header-level booking reference (BRREF = 0) |
|
|
|
|
Advance payments (APKEY = ZF23INVHT.HTKEY, sorted by APREF) |
|
|
|
|
Invoice of the advance payment (PDKEY = ZF23INVHT.HTKEY and PDTYPE = 1 and PDREF = sequence number of the advance payment: 1, 2, 3 … in the order of APREF) |
|
|
|
|
Taxes of the advance payment (TIKEY = ZF23INVHT.HTKEY and TITYPE = 3 and TIREF = sequence number of the advance payment) |
|
|
|
|
Shipping methods |
|
|
|
|
Previous invoices (PIRREF = 0) |
|
|
|
|
Payment methods |
|
|
|
|
Service charges |
|
|
|
|
Terms of payment |
|
|
|
|
Third party charges, from ZUGFeRD 2.5 (TPCKEY = ZF23INVHT.HTKEY) |
|
|
|
|
Payments |
|
|
|
|
Order references at header level (UDRREF = 0) |
|
|
|
|
Position data |
|
|
|
|
Texts for document item (TXKEY = ZF23INVHT.HTKEY and TXREF = ZF23INVPI.PILFD) |
|
|
|
|
Product Characteristics (PPKEY = ZF23INVHT.HTKEY and PPREF = ZF23INVPI.PILFD) |
|
|
|
|
Product Classification (PCKEY = ZF23INVHT.HTKEY and PCREF = ZF23INVPI.PILFD) |
|
|
|
|
Surcharges and discounts for document items (ACKEY = ZF23INVHT.HTKEY and ACREF = ZF23INVPI.PILFD and ACTYPE = 2) |
|
|
|
|
Surcharges and discounts for document items (ACKEY = ZF23INVHT.HTKEY and ACREF = ZF23INVPI.PILFD and ACTYPE = 1) |
|
|
|
|
Taxes on document item (TIKEY = ZF23INVHT.HTKEY and TIREF = ZF23INVPI.PILFD) |
|
|
|
|
Document references at item level (DRKEY = ZF23INVHT.HTKEY and DRREF = ZF23INVPI.PILFD and DRTYPE = 2) |
|
|
|
|
Booking reference at item level (BRKEY = ZF23INVHT.HTKEY and BRREF = ZF23INVPI.PILFD) |
|
|
|
|
Products included (IPKEY = ZF23INVHT.HTKEY and IPREF = ZF23INVPI.PILFD) |
|
|
|
|
Order references at item level (UDRKEY = ZF23INVHT.HTKEY and UDRREF = ZF23INVPI.PILFD) |
|
|
|
|
Product instances: batch ID and serial number, from i-effect 3.1.19 (PNKEY = ZF23INVHT.HTKEY and PNREF = ZF23INVPI.PILFD) |