Invoice line net amount MUST equal (Invoiced quantity * (Item net price/item price base quantity) + Sum of invoice line charge amount - sum of invoice line allowance amount
The invoice line net amount does not match the checked calculation: invoiced quantity multiplied by net price divided by the price base quantity, plus the line charges and minus the line allowances. The rule takes the tolerance value supplied to u:slack into account.
The net amount of an invoice line represents the amount for the invoiced quantity, adjusted for line-level charges and allowances. These values must agree so that the line amount is arithmetically consistent.
An invoice line net amount does not match the calculation using quantity, price base quantity, net price, charges, and allowances. Review the amounts in that calculation so they agree with the line net amount.
- Check the invoiced quantity and net price for the invoice line.
- Account for the price base quantity and the invoice line’s charges and allowances.
- Compare the result with the invoice line net amount.
- Generate the invoice again and validate it.
Technical details
The check compares the net amount with the formula using quantity, net price, price base quantity, total charges, and total allowances. u:slack applies the supplied tolerance to the comparison.
The rule applies to each ram:IncludedSupplyChainTradeLineItem and checks the invoice line net amount against the quantity, net price, price base quantity, and the line’s charges and allowances.
rule/@context)assert/@test)