BIY

Only synthetic (non-real) data is used in this environment. Do not enter real customer data.

Invoices and matching

Invoice upload (Excel, e-invoice), the matching queue, reasons, confirmation, manual matching, clearing.

Invoice upload and matching
  1. Open invoicesExcel/CSV, e-invoice (UBL-TR) or API
  2. Bank transactioncollection or payment
  3. Matching enginein the order of the clearing rules
  4. Proposalreasons and a confidence score
  5. Confirmationmanual or automatic per rule
  6. Clearingto the ERP by API or file

Uploading invoices

  1. Invoices › Upload invoices: choose the open-invoice list from your ERP (xlsx, xls, csv) or e-invoice XML files (a single XML or a ZIP with up to 500 XML files). Choose the type (receivable/payable); if the file has a type column the row value is used.
  2. When Excel/CSV headers are recognised the preview opens straight away; otherwise map invoice number, invoice date, due date and amount (required) on the column mapping screen, plus optionally ERP code, tax ID, IBAN, open amount, currency, ERP document number and order/delivery/contract/project numbers. Give the mapping a name and files with the same headers open directly next time.
  3. The preview shows the rows to import and the rejected rows (with the reason); click Import invoices. Uploading the same invoice again updates it; a missing open amount keeps the previous value.
  4. For e-invoices, the invoice is a receivable when your tax ID is the supplier and a payable when it is the customer; the IADE type is a credit note. Enter a default term (days) for e-invoices without a payment date.
Uploading invoices: file, type and default term
Uploading invoices: file, type and default term
Invoices: open amount, overdue, not linked to a counterparty
Invoices: open amount, overdue, not linked to a counterparty

The invoice's counterparty is found by ERP code, tax ID or IBAN. An invoice without a match shows 'no counterparty' and is linked automatically once the counterparty is added. Reference matching also considers invoices without a counterparty.

How is the open amount calculated?

Open amount = the ERP-reported open amount − confirmed clearings the ERP has not posted yet (the In clearing column). When the ERP posts the clearing and acknowledges it, BIY reduces the ERP open amount; if the clearing is reversed the amount comes back. Proposals reserve nothing; the open amount is checked again on confirmation.

The matching queue

  • Proposals: the engine's proposal for each transaction: invoices, applied amounts, method and confidence. Select and use Confirm selected to confirm in bulk.
  • Unmatched: collections and payments without a proposal; use Match manually from here.
  • Review: clearings rejected or partly posted by the ERP, or with the remaining amount left for review.
  • Clearings, Rejected, Reversed. A rejected proposal is not produced again with the same data.
  • Matching runs in the background on new transactions, new invoices, counterparty or category changes and rule publication; Run matching now starts it too.
Matching queue: proposals, method and confidence
Matching queue: proposals, method and confidence

Why this proposal?

The proposal detail shows which invoices are cleared with which amounts, the reasons (e.g. "Found invoice no. in the description") and the steps tried in the rule set (e.g. "exact amount: not decided because 2 options were equally good"). Once confirmed, a clearing entry is created and the clearing is ready for the ERP.

Proposal detail: cleared invoices, reasons and steps tried
Proposal detail: cleared invoices, reasons and steps tried

Clearing methods

The BIY default order: reference (invoice no., ERP document no., payment reference, order, delivery, contract or project no. in the description) › exact amount (equal to one invoice) › combination (a sum of several invoices, when there is a unique solution) › oldest due first. Auto-confirmation is off by default.

Rule sets for the company, a counterparty group or a single counterparty can also use newest due first, due date nearest to payment, overdue first, smallest/largest amount first, proportional split, document type priority (credit notes and late fees first), same currency first, manual and no clearing (advance). Priority: counterparty › counterparty group › company-wide › BIY default.

Designing clearing rules

Rules are built without code or formulas on Matching › Clearing rules. Because clearing affects accounting, the flow is the same as for classification and account mapping rules: draft › simulation › dual approval › version.

  1. Create a draft from the published rules. The list shows each set with its name, scope, method order, status (changed in draft, published, inactive), version and who last changed it. A draft does not affect live matching.
  2. Add a rule set: name, a ready template (Default, Reference and amount only, Oldest due date first, Proportional allocation) and scope (company-wide, counterparty group code or a single counterparty; direction; currency). Two active sets that cover the same transactions at the same level cannot be saved; the system does not pick one and asks you to narrow one set or make it inactive.
  3. Design: add or remove methods; drag rows and press Save order, or use the ↑/↓ buttons. Use Edit for a step's settings: tolerance amount and percentage, deduction reason, partial clearing, remaining amount (advance, next invoice, review), document date window, candidate document types, auto-confirm and confidence threshold; and, depending on the method, reference fields, combination limits, document type order, continuing with invoices not yet due, or continuing with other currencies.
  4. Run the simulation: the period's transactions (at most 2 years) are computed with today's open invoices, once with the published rules and once with the draft. The report shows how many transactions change proposal, rates by method and by set, the changed amount per currency and sample rows. Precision is also compared on synthetic scenarios with a known correct result. The simulation writes no matches, clearings or journal entries; confirmed clearings are left out.
  5. Submit for approval: if the draft changed after the simulation, simulate again first. An approver other than the preparer approves on Pending approvals; the new version is published and matching runs again in the background. Proposed records are refreshed with the new version, confirmed clearings do not change, and every match records the version that produced it.
  6. Versions: each version shows its differences from the previously published version, its approvals and its change history (who, when, which set and field). Return to this version opens the old version as a new draft, simulates it and submits it; once approved, new runs give the same result as the old version.
Clearing rules: rule sets, draft and simulation report
Clearing rules: rule sets, draft and simulation report
Rule set design: method order and step settings
Rule set design: method order and step settings

Permissions: viewing the rules needs transaction view; designing and submitting needs rule management. Auto-confirm works only in a published company set and for proposals that do not go to review.

Tolerance, deductions and differences

  • A tolerance is set in the rule as an amount or a percentage of the transaction (the larger one when both are given).
  • A short payment within tolerance is written off on the last invoice as a deduction (tolerance, bank fee, discount, rounding); an overpayment within tolerance becomes the clearing's difference.
  • Any amount outside tolerance stays as an advance, for the next invoice or under review, per the rule.
  • The accounts for deductions and differences are entered under Journal › Account mapping › Clearing difference accounts. BIY suggests no defaults; without an account, the clearing entry that needs it waits as a blocked draft.

The effect of a tolerance can be measured: python -m app.matching.accuracy --hard --tolerance 30 shows the precision per method on synthetic scenarios. These rates measure synthetic data and do not show the rate on real data.

Manual matching and reversal

  1. Match manually: enter the amount to clear against open invoices in the transaction's currency (in the transaction's currency, positive also for credit notes) and a deduction with its reason if needed; the remainder becomes an advance or goes to review. Manual matches are confirmed immediately.
  2. Reverse: reverse a confirmed clearing with a reason; the invoices' open amounts come back and the transaction is matched again. If the ERP has received the clearing, reverse it in the ERP first and tick the box confirming it.
  3. The category and counterparty of a transaction with a confirmed clearing are locked; reverse the clearing first to change them.

Clearings to the ERP

The ERP pulls confirmed clearings with GET /api/v1/clearings and, after posting, reports with POST /clearings/{id}/ack (ERP document number, per-invoice result) or /reject. File route: ERP › Exports › Invoice clearings (CSV, Excel, JSON; for SAP FLB2 once the lockbox template has been verified with an RFEBLBT2 sample). The aging report (treasury and reports) is built from open invoices.

In the test environment, which runs on synthetic data, clearings do not go to a real ERP. On the SAP side the ZBIY_CLEARING_POST program must be installed and tested in the customer system.