Order match on totals (book the order)
Order match on totals with order booking is a fallback method that matches an incoming supplier invoice to a purchase order by comparing totals, when line-level order match can't be used. The amount still to be invoiced on the purchase order is compared with the net total of the invoice. If the two amounts are equal, the order is considered matched.
Line-level order match requires every invoice line to be mapped to an order line. The fallback is used when this fails for a structural reason:
- The invoice contains totals only, with no line details.
- The invoice has more lines than the purchase order.
- One or more products on the invoice can't be mapped.
The method is called order booking because the purchase order drives the accounting. When the invoice is received, the order is booked using the product accounting rules on the order lines. The invoice is marked as order-booked and is never booked line by line.
The matching is performed at purchase order header level and supports credit notes, foreign currency, preliminary booking and automatic invoice receipt. Existing line-level order match and order match on totals are not affected.
Prerequisites
The general order match prerequisites are required:
- Visma.net AutoInvoice service enabled in Visma.net Admin for the company
- AutoInvoice company UUID added in the Company information table
- AutoInvoice User API key added on the signed-in user in the AutoInvoice user API key field in the User table or in the AutoInvoice default user API key field in the Company information table
- Order match can be performed only on supplier invoices in the PEPPOL BIS 3.0 format.
In addition, the following settings are required:
- Company setting: The Order match on totals with order booking option must be selected in the Order processing settings, in the Special processing – Common group on company level.
- Supplier setting: The Order match on totals- book the invoice option under Supplier options - Order match in the Associate table must not be selected for the supplier. When it is selected, the supplier's invoices use the existing invoice-booked method, where the invoice books the accounting, and order booking is bypassed.
If the company setting isn't enabled, the totals check never runs and invoices are processed as before.
Optional settings
| Setting | Result |
|---|---|
| Order match automatic invoice receive | When selected, an equal totals match books the order automatically once goods are received (status 17). When not selected, the user receives the invoice manually (status 16). There is no supplier-level setting for this. |
| Pre-registration incoming documents | A preliminary accounting entry is posted when the match is engaged (debit the preliminary or cost account, credit the supplier). It is reversed when the invoice is received. |
| Reverse the pre-registration for order match when rejecting invoice | The preliminary posting is also reversed when the match is rejected. |
| No partial invoice receival for order match | The preliminary posting is also reversed when the match is rejected. |
How it works
- A supplier invoice is received from AutoInvoice and order match runs.
- Line-level order match runs first. If it succeeds, the totals check isn't used.
- If line-level matching doesn't succeed for a structural reason (totals-only invoice, more invoice lines than order lines, or products that can't be mapped), the totals check runs, provided that the company setting is enabled.
- The standard validations are applied. The order must be a valid purchase order, the currency must match, the supplier and invoice number must not be a duplicate, and no other match can be in progress for the order. If any of these fail, the invoice is rejected or set to 8 - Pending as before, and the totals check isn't performed.
- The totals are compared on net amounts. The order side is the amount still to be invoiced across all lines, and the invoice side is the net invoice total. Foreign-currency orders are converted to company currency, and both amounts are rounded to the currency's decimals so that small rounding differences are not treated as a mismatch.
Order match statuses
The following new values can appear in the Order match status column of the incoming document:
| Stauts | Description |
|---|---|
| 15 - Order match on totals with order booking | The invoice matched the order on totals and the match is engaged. The order is flagged as order match in progress. Nothing is booked yet, and the document is ready for goods receipt and invoice receipt. |
| 16 - Order match on totals with order booking completed manually | The user received the invoice manually. The order is booked and the match is completed. |
| 17 - Order match on totals with order booking completed automatically | The automatic invoice receipt booked the order. The match is completed. |
Existing statuses that can also appear are 6 - Rejected, 7 - Mandatory value missing, 8 - Pending, 9 - Incomplete product mapping, 10 - Currency mismatch and 11 - Freight/fee product not defined. 8 - Pending is set, for example, when a second invoice is received while a match is already engaged on the order, or when a validation fails.
When the totals match
The Order match status is set to 15 - Order match on totals with order booking and the order is flagged as order match in progress. If Pre-registration incoming documents is selected, a preliminary posting is created at this point.
The order is then booked at invoice receipt:
- If Order match automatic invoice receive is selected and goods have been received, the invoice is received automatically. The order is booked from its product accounting rules (batch and voucher) and the status is set to 17 - Order match on totals with order booking completed automatically.
- If goods haven't been received yet, the automatic invoice receipt waits and runs when the order is finished.
- If Order match automatic invoice receive isn't selected, run the Update values and receive invoice processing on the order. The status is set to 16 - Order match on totals with order booking completed manually.
At invoice receipt, the preliminary posting is reversed automatically. If the preliminary posting can't be found, for example because the voucher series setup is incomplete, the invoice receipt is refused with the message Cannot find Visma ID in General Ledger transaction. Nothing is written and the order isn't marked as invoice received. The message is being changed to Invoice @ cannot be received because its order match pre-registration has not been posted. Correct and update the batch with origin Order match pre-registration, then receive the invoice again.
Since the totals are equal, no deviation posting is created.
When the totals don't match
The match isn't completed and no new status is set. The document keeps the status from the line-level validation, the order isn't flagged as matched, and nothing is booked. An invoice with a different total is never booked automatically.
To resolve it, adjust the order or the invoice data so that the totals match and book the order, or reject the invoice.
While a match is engaged
When the status is 15 - Order match on totals with order booking, the following restrictions apply:
- Only one invoice can be matched per order. A second invoice for the same order is set to 8 - Pending.
- Order lines can't be processed individually. Running the Update invoice values, Update values and receive invoice or Received invoice processings on order lines is refused with the message Order match on totals with order booking is in progress: order lines cannot be processed individually. Run the processing on the order instead.
- Entered receive values can't be saved directly, to prevent unverified amounts from being realised. The entered values are kept, and you are asked to run Update values and receive invoice on the order.
The linked invoice image can still be viewed from the document panel of the order, even if the validation is unsuccessful.
Rejecting an engaged match
An invoice on an engaged match can be rejected. The following happens when you reject it:
- The match is cleared completely and the order returns to its pre-match state. The order match in progress flags are cleared on the order and all order lines, and the proposed invoice totals are cleared.
- Pending invoice quantities entered on the order lines are cleared, so nothing is realised or booked by the rejection.
- The whole order match is rejected, even if you reject from the order lines and only some lines are selected, because the match is engaged at order level.
- The document status is set to 6 - Rejected.
-
If pre-registration was used and Reverse the pre-registration for order match when rejecting invoice is selected, the preliminary posting is reversed.
After the rejection, the order can be matched with a different invoice. Documents with the status 16 - Order match on totals with order booking completed manually or 17 - Order match on totals with order booking completed automatically can't be rejected.
Good to know
- Credit note purchase orders are supported, and negative totals are compared correctly.
- Foreign-currency orders are converted to company currency before the totals are compared.
- An engaged match creates no accounting on its own. Accounting is created only at invoice receipt, in addition to the optional preliminary posting when the match is engaged.
- Pre-registration requires a complete voucher series setup, including the interim account on the voucher type. If the setup is incomplete, the match can be engaged, but invoice receipt is refused until the setup is corrected.
- A zero-value invoice matched on line level can be refused when Voucher must have amount is selected and Account 0 invoices isn't selected for the company. To continue, reject the match and receive the invoice without order match.