Rules / IBR-012
An Invoice must have the Sum of Invoice line net amount
An Invoice must have the Sum of Invoice line net amount (ibt-106).
Fails
<cac:LegalMonetaryTotal>
<!-- no cbc:LineExtensionAmount -->
</cac:LegalMonetaryTotal>
Fix
Add cbc:LineExtensionAmount to cac:LegalMonetaryTotal.
Schematron
- Context
cac:LegalMonetaryTotal- Test
exists(cbc:LineExtensionAmount)
Official text: An Invoice MUST have the Sum of Invoice line net amount (ibt-106).