# PEPPOL-EN16931-R120-SG

Source: https://xmlvalid.com/rules/PEPPOL-EN16931-R120-SG

> 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

- Level: error
- Rule sets: PINT SG rules (Singapore) 1.4.1
- Context: `cac:InvoiceLine | cac:CreditNoteLine`
- Test: `u:slack($lineExtensionAmount, ($quantity * ($priceAmount div $baseQuantity)) + $chargesTotal - $allowancesTotal, 0.02)`

Validate a document against these rules: https://xmlvalid.com/validate
