Systems and records
Payment term approval dataset: rebuild authority, not just the term
By SourceX Editorial · Reviewed by Noah Loul ·
9 sections
Short answer
A payment term approval dataset is usable when each row keeps five things: the standard term in force that day, the departure requested, who held authority to allow it, the condition attached to any yes, and when the customer actually paid. Most exports keep only the final term. In three open-source ERPs we read, the term is copied from the customer record, edited in place and has no approval step of its own.
Provenance trail
Payment term approval
Key takeaways
- A longer payment term changes cash timing and credit exposure, so its cost appears in receivables months after the approval.
- GitLab's public handbook names Net 30 as standard and routes every departure through a quote, a comment, an approval history and a booking check.
- In Tryton, Dolibarr and iDempiere the term starts as a copy of the customer default; Dolibarr overwrites it with no event, and iDempiere logs the old value only when logging is switched on.
- Separate one-off departures from standing ones, as federal rules do with individual and class deviations, or a model will overcount approvals.
- Keep authority as a role and limit band and joins as keyed tokens; drop bank, card, tax and remittance identifiers entirely.
What does a payment term approval dataset have to capture?
A payment term approval dataset has to capture a decision, not a field: the standard term in force on the day of the request, the departure the customer asked for, who held authority to allow it, the condition attached to any yes, and what the customer actually paid and when. Without all five, a model sees the final term on an invoice and has to guess whether anyone chose it.
A nonstandard payment term is any departure from the seller's own default for when and how a customer pays: more days (Net 60 or Net 90 against a Net 30 standard), end-of-month counting, installments or milestones, a waived deposit, or payment on a schedule the customer's procurement team imposes. It differs from a discount in one important way. A discount changes the price on the day it is signed; a longer term changes the timing of cash and the size of the credit exposure, and its cost appears months later in the receivables ledger.
That delay shapes what the dataset can teach. Useful tasks include routing a request to the person who can decide it, recommending approve, decline or approve-with-condition, spotting an order form, purchase order or invoice whose term differs from what was approved, and checking whether a proposed condition matches the risk on file. Each task needs the decision context frozen at the time of the request, which is exactly what most systems overwrite.
How a public sales handbook routes a term longer than Net 30
GitLab's public handbook, read at commit b46e928 on 2026-10-27, shows a complete routing in plain text. Its deal desk page says "Non-standard payment terms (Net 30 = standard) should be reflected on the quote object, and will require approval per the approval matrix." The standard is named, the departure lives on a specific record, and a separate document decides who approves.
The order processing page adds the evidence trail. A quote that needs approval carries a Submitter Comments field that "must be populated on any quote that requires approval", with a prompt for the deal summary, the rationale and what the company gets in return. Approvals are tracked in an Approval History list on the quote, and "If any changes are made to the quote after approval, you will need to resubmit it for approval before generating a new PDF." The customer's purchase order is then checked at booking: its payment terms must match the order form or be shorter, and a shorter term on the purchase order is booked as written.
Three layers of authority appear here, and a dataset needs all three. Someone owns the rule (the matrix itself, which the handbook links but does not publish), someone approves the deal under that rule, and someone checks at booking that the signed paperwork matches the approval. A record that keeps only the middle layer cannot tell whether an approver acted inside the limits of the matrix version in force that quarter.
What three open-source ERPs keep when someone edits the term
In the three open-source ERPs we read, the payment term is a field on the sales document that starts as a copy of the customer's default and is replaced in place when someone edits it; none of the code paths we read adds an approval step specific to the term. The table summarizes what each code base does, with the file that shows it.
Counting rule, as the script applies it: a system keeps the prior value only if the code that saves a new term writes the old value somewhere other than a debug log with no configuration change; logging that configuration must switch on is reported as conditional. For Tryton the script checks whether the sale model declares a history table, and it does not; Tryton's core log (trytond model/modelstorage.py and workflow.py) records who edited the payment term and when, and logs each state change, but keeps no old value. For Dolibarr it checks whether the payment term setter calls a trigger; it issues a direct SQL update and calls none, so no agenda event is created. For iDempiere it reads the condition for writing an old-and-new value row to the change log: the table must be flagged for logging or the user's role must have change logging switched on. We did not inspect the shipped seed data to see whether the order table is flagged.
The practical reading: an ERP export will show the term that was billed, sometimes the person who confirmed the order and, in Tryton, a credit-limit check at confirmation. The request, the reason, the approver's authority and the condition usually live in a quoting tool, an email thread or a policy document, and the dataset has to join them back. The script that prints these checks is described at the end of this page.
| Question | Tryton (de1b136) | Dolibarr (4d8bc26) | iDempiere (fd7121e) |
|---|---|---|---|
| Where the term sits | payment_term on the sale | fk_cond_reglement on the order, with a deposit percentage | C_PaymentTerm_ID on the order |
| Default | Copied from the party's customer payment term | Copied from the third party when none is posted | Copied from the business partner's term |
| When it can be edited | Only in draft; returning to draft clears quoted by and confirmed by | Any status except cancelled, by any user allowed to create orders | No restriction in the model code we read; a change revalidates the pay schedule |
| Is the replaced term kept? | No old value: no history table; the core log records who edited the term and when | No: direct update, no trigger, no agenda event | Only if table or role change logging is on |
| Person or check recorded | Quoted by, confirmed by; core edit log; credit-limit check at confirmation when shipment method is on order | None for the term; open bills shown against the outstanding limit | Implicit approval at completion; credit check at prepare |
One deal or every deal? The federal rule for departures
Federal acquisition rules draw the distinction a commercial dataset needs between a one-off departure and a standing one. Under FAR 1.403, an individual deviation from the Federal Acquisition Regulation affects only one contract action, may be authorized by the agency head, and the contracting officer "must document the justification and agency approval in the contract file." Under FAR 1.404, a class deviation affects more than one contract action and follows a separate authorization path.
The commercial translation is direct. A Net 60 term granted for one renewal is an individual departure and should carry its own request, approver and condition. A Net 60 term written into a customer's master agreement, or a policy that moves a whole segment to Net 45, is a standing departure: later orders inherit it, so labeling each of them as a fresh approval would teach a model that approvers grant long terms far more often than they do.
The federal text also shows what a good authority record looks like: the approval, who gave it, and a written justification stored with the transaction itself. Few commercial systems keep the limit itself, so a dataset should carry the version of the approval matrix that applied on the request date, not a single current copy.
Seven outcomes of a term request, from standing permission to silent drift
Seven labels cover the cases we would expect in a seller's records, and they separate who decided from what was decided. They are an editorial taxonomy, not a published standard; the table gives the evidence each label needs before it can be assigned.
| Label | When it applies | Evidence that must exist | Common misread |
|---|---|---|---|
| P0 Standard | Order carries the default in force | Standard term and its effective date | Treating the default as a decision |
| P1 Standing permission | Term inherited from a master agreement or segment policy | The agreement or policy and its date | Counting each order as a new approval |
| P2 Approved as asked | Approver granted the requested term | Request, approver role, matrix version | Missing the approver's limit |
| P3 Approved with condition | Yes tied to a deposit, credit cap, shorter split or price change | Condition text and whether it was met | Dropping the condition |
| P4 Countered | A different term was offered | Both terms and who proposed each | Coding the counter as a denial |
| P5 Declined | Request refused; standard kept or deal lost | Refusal and the deal's next state | Deleting refused requests from the export |
| P6 Silent drift | Signed, PO or invoiced term differs from the approved one | Approved term beside the booked term | Trusting the invoice as the decision |
The evidence map: keep the authority, strip the account numbers
Keep everything that explains the decision and remove everything that identifies money movement. Authority can be preserved as a role and a limit band, the condition as structured text, and the credit position as a ratio band on the request date; bank details, card numbers, tax identifiers and remittance references have no training value for this task and should never leave the supplier.
Invoice, order and purchase order numbers are the joins that link a request to its cash outcome, so they should be replaced with keyed tokens before export rather than dropped. Dates can be kept as offsets in days from the invoice date, which preserves the payment behavior without exposing calendar detail that could single out a customer. Approver and requester names can become stable role codes; the label set needs to know that a regional finance manager approved, not who that person is.
| Evidence | Where it usually lives | Keep as | Remove or transform |
|---|---|---|---|
| Request and reason | Quoting tool, submitter comments, email | Requested term, reason text | Customer and contact names |
| Standard and authority in force | Policy document, approval matrix | Version and effective date, role limit band | Individual approver names |
| Decision and condition | Approval history, approval comment | Label, condition, decision date | Free-text personal remarks |
| Credit position at request | ERP customer record, credit file | Open balance to limit ratio band | Bureau reports and scores |
| Booked and billed term | Order form, purchase order, invoice | Term code at each step | Order, PO and invoice numbers (tokenize) |
| Cash outcome | Receivables ledger | Days from due date to payment, dispute flag | Bank details, remittance references |
Did the longer term cost anything? Joining the approval to receivables
A term decision is judged by what happened to the cash, measured against the term that was approved, inside a fixed window. Record whether each invoice was paid by its due date, how many days late if not, whether it was disputed, and whether any amount was written off; leave invoices still open at the window's end as censored rather than paid or unpaid.
Accounting adds one condition worth storing. IFRS 15 paragraph 63 says that "As a practical expedient, an entity need not adjust the promised amount of consideration for the effects of a significant financing component" when, at contract inception, the entity expects the gap between delivery and payment to be one year or less. A term longer than a year therefore invites a financing assessment by finance, and a dataset should record whether that review happened rather than assume it did.
The strongest objection to outcome labels is that they reward luck. A customer with a strong balance sheet pays on time whatever the approver decided, and a deal can close on a long term because the buyer's budget cycle arrived, not because the term won it. Two guards help: compare each approved departure with standard-term invoices from customers in the same credit band and period, and grade the decision on the evidence available on the request date, keeping the outcome as a second, separate field.
Writing the request: acceptance tests for payment term records
Through SourceX, datasets are sourced on request from U.S. businesses rather than held in stock, so a buyer describes the records it needs and the tests they must pass. The supplying company approves the scope and terms and signs before anything is delivered, and de-identification is done by SourceX directly or through its processing partner.
A useful request for payment term records names the task, the period and the acceptance tests in advance. The list below gives tests we would set; the thresholds are editorial suggestions to adapt, not observed rates.
- Every departure row carries the standard term and the approval matrix version in force on its request date.
- Refused and countered requests are present, with their share of all requests reported by year.
- At least nine in ten approved departures join to a billed invoice through a keyed token, and the unjoined share is reported.
- Standing permissions from master agreements are marked, so inherited terms are not counted as new approvals.
- Outcome fields use a stated window, with open invoices marked censored.
- No bank, card, tax or remittance identifiers appear in any field, verified by a pattern scan the supplier runs before delivery.
Where this method stops, and the evidence still missing
This analysis read code, not live systems. The audit covers three open-source ERPs at the commits named, the code paths that set and save a sales order's term, and nothing about installed add-ons, configuration or customization; a company running any of these systems may keep a fuller trail. GitLab's handbook describes one company's documented process, and its approval matrix thresholds are not public.
The next evidence needed is measured, not read: in a sample of real approval logs, how often the term billed differs from the term approved, how often refusals are missing from exports, and how much of the late-payment gap between approved departures and standard terms survives a credit-band comparison. SourceX has not published results on any of these questions.
Methods: the audit script, bin/payment_term_code_audit.py in the writer's scratch folder, opens the source files as text, runs no repository code and tests each statement in the table with a quoted pattern; it uses no randomness. Clones were shallow and sparse, made on 2026-10-27.
Frequently asked questions
What counts as a nonstandard payment term?
Any departure from the seller's own default for when or how a customer pays: more days, end-of-month counting, installments, milestones, a waived deposit, or a schedule set by the customer's procurement team. The default itself should be recorded with its effective date, because a term that was nonstandard in one year can become standard in the next.
Is a payment term exception the same as a discount?
No. A discount changes the price on the signing date, while a longer term changes when cash arrives and how much credit the seller extends. The cost of a term exception shows up later, in days past due, disputes or write-offs, so its dataset needs a receivables outcome that a discount dataset can do without.
Should a payment term dataset include the customer's credit score?
It should include the credit position the approver saw, preserved as a band such as open balance to credit limit on the request date. Bureau reports and raw scores add identification risk and are usually unnecessary for learning the approval decision.
Can a model learn approval policy from approved deals alone?
Not reliably. Without refused and countered requests, a model only sees terms that passed, so it learns where the limits sat rather than how approvers weighed a request. Ask for refusals explicitly, because many exports drop them.
How long should the outcome window run after the due date?
Long enough for disputes and collection steps to resolve, and the same for every row; whatever window is chosen should be stated with the data. Invoices still open when the window closes should be marked censored rather than counted as paid or unpaid.
Sources
- GitLab's deal desk handbook page treats Net 30 as the standard term and requires non-standard payment terms to be entered on the quote and approved under the approval matrix. Source
- GitLab's order processing page requires Submitter Comments on quotes needing approval, tracks approvals in an Approval History list and requires resubmission after any change. Source
- GitLab's purchase order acceptance policy requires PO payment terms to match or be shorter than the order form and books shorter PO terms as written. Source
- Tryton's sale model copies the party's customer payment term, allows editing only in draft, clears quoted-by and confirmed-by on return to draft and declares no history table. Source
- Tryton's credit limit check raises an error for users outside the credit-limit group and a warning for members. Source
- Dolibarr's order card defaults the payment term from the third party, enables editing for users allowed to create orders and displays open bills against an outstanding limit. Source
- Dolibarr's setPaymentTerms runs a direct SQL update for any status except cancelled and calls no trigger. Source
- iDempiere's order model copies the partner's payment term, revalidates the pay schedule when it changes, approves implicitly at completion and runs a credit check at prepare. Source
- iDempiere writes a change log row only when the table is logged or the user's role has change logging enabled. Source
- FAR 1.403: an individual deviation affects one contract action, may be authorized by the agency head and must have its justification and approval documented in the contract file. Source
- FAR 1.404: class deviations affect more than one contract action and follow a separate authorization path. Source
- IFRS 15 paragraph 63 lets an entity skip the financing-component adjustment when it expects one year or less between transfer and payment. Source
Tell us what data you need
Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.