C# · Track 5 · Tutorial 2 of 4
Lines an invoice or bill already explains
A sale is both an invoice and a posting. Link the two, so a figure traced to its postings leads to the document behind it.
1Why link lines to documents
Invoice INV-1001 and journal J-0902 describe the same sale: one as a document, one as a posting. Linking them says so - so the posting can be traced to the invoice, and the same 10,000 is never read as two separate amounts.
2Name the document on the line
In Journals.cs, J-0902's lines carry the invoice's identity, and J-0904's the bill's:
['J-0902', '2026-09-08', 'Invoice INV-1001', [['1200', 'debit', 10000.00, 'INV-1001'], ['4000', 'credit', 10000.00, 'INV-1001']]],which Journals.cs sends as document_external_id. If your system knows the document line too, send document_line_id.
document_external_id.3Read what the answer says
Journals.cs printed Lines an invoice or bill explains: 4. That's the answer's suppressed: how many of this source's lines for the month name a document.
suppressed counts this source's lines for the month that name an invoice or bill.4What it doesn't change
Linking changes no figure. The trial balance carries each amount once, whether or not the lines and documents behind it are linked; and every line is still stored and read back, with the document it names.
Want more detail? See the documentation