OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Updated Calculation Rules: "UBL 2 Example Calculation Model Expressed in TAML v0.6"


Updated "UBL 2 Example Calculation Model Expressed in TAML v0.6"

http://www.oasis-open.org/committees/document.php?document_id=34247

The interpretations (prose versions) of the calculation rules needed correcting.
(XPaths expressions for rules are as before - see above draft document).


Revised Summary of Main Rules

			Test Assertion ID: invoice-total-001.INVTOT001
			Rule: given that there is only one currency used in the invoice and
that there is at least one invoice line with a line extension amount,
			the 'LineExtensionAmount' in the invoice 'LegalMonetaryTotal' is
equal to the sum of the 'LineExtensionAmount's in all of the invoice
lines
			
			Test Assertion ID: invoice-total-001.INVTOT002
			Rule: given that there is only one currency used in the invoice and
that there is at least one invoice line with a line extension amount,
			the 'TaxExclusiveAmount' in the invoice 'LegalMonetaryTotal' is
equal to the sum of the 'LineExtensionAmount's in all of the invoice
			lines plus the sum of the invoice 'AllowanceCharge' charges minus
the sum of the invoice 'AllowanceCharge' allowances
			
			Test Assertion ID: invoice-total-001.INVTOT003
			Rule: given that there is only one currency used in the invoice and
that there is at least one invoice line with a line extension amount,
			the 'AllowanceTotalAmount' in the invoice 'LegalMonetaryTotal' is
equal to the the sum of the invoice 'AllowanceCharge' allowances
			minus the sum of the invoice 'AllowanceCharge' charges
			
			Test Assertion ID: invoice-total-001.INVTOT004
			Rule: given that there is only one currency used in the invoice and
that there is at least one invoice line with a line extension amount,
			in the invoice 'LegalMonetaryTotal' the 'LineExtensionAmount' is
equal to the 'TaxExclusiveAmount' plus the 'AllowanceTotalAmount'
			
			Test Assertion ID: invoice-total-002.INVTOT005
			Rule: [given that all test assertions in the test assertion set
'invoice-total-001' are passed],
			the 'PayableAmount' in the invoice 'LegalMonetaryTotal' is equal to
the TaxExclusiveAmount (in the invoice 'LegalMonetaryTotal')
			plus the sum of the invoice total tax amounts (at invoice document level)
			


---
Stephen D Green


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]