# ibr-147-ae

Source: https://xmlvalid.com/rules/ibr-147-ae

> Invoice line net amount (IBT-131) MUST equal (Invoiced quantity (IBT-129) * (Item net price (IBT-146)/item price base quantity (IBT-149)) + Sum of invoice line charge amount (IBT-141) - sum of invoice line allowance amount (IBT-136).

- Level: error
- Rule sets: PINT AE rules (United Arab Emirates) 1.0.4
- Context: `cac:InvoiceLine | cac:CreditNoteLine`
- Test: `round(cbc:LineExtensionAmount * 100) div 100 = round((((cbc:InvoicedQuantity | cbc:CreditedQuantity) * (cac:Price/cbc:PriceAmount div cac:Price/cbc:BaseQuantity)) + sum(cac:AllowanceCharge[cbc:ChargeIndicator="true"]/cbc:Amount) - sum(cac:AllowanceCharge[cbc:ChargeIndicator="false"]/cbc:Amount)) * 100) div 100`

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