Attributes of a line item
This table describes the attributes of a line item:
Attribute | Description | Required |
---|---|---|
number | The line number. The first line must be 0. Line numbers must be unique and contiguous. | Yes |
account | The account of the journal-line. | Yes |
company | The company of the journal-line. | Yes |
intercompany | This attribute is required if the account requires an intercompany. | No |
detail | This attribute is required if the account requires a detail. | No |
segment1 | This attribute is required if the account requires a primary segment. | No |
segment2 | This attribute is required if the account requires a secondary segment. | No |
segment3 | This attribute is required if the account requires a tertiary segment. | No |
partner-segment1 | This attribute is required if the account requires a primary segment and intercompany. | No |
partner-segment2 | This attribute is required if the account requires a secondary segment and intercompany. | No |
partner-segment3 | This attribute is required if the account requires a tertiary segment and intercompany. | No |
debit | The line value if it represents a debit. The value must be in the currency provided for the journal. If debit is filled, credit must be empty. | Yes. One of debit or credit must be filled properly. |
credit | The line value if it represents a credit. The value must be in the currency provided for the journal. If credit is filled, debit must be empty. | Yes. One of debit or credit must be filled properly. |
comment | An optional comment text for the line. | No |
A group journal import file can hold one or more group journal items. Such a file has this structure:
<?xml version="1.0" encoding="utf-16"?> <group-journals> <group-journal…></group-journal> <group-journal…></group-journal> … </group-journals>