[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: UBL Wiki page update Re: [ubl-dev] Draft 5 of UBL 2 InvoiceCalculation Model Rules
I've also updated the wiki http://wiki.oasis-open.org/ubl/Example_Calculation_Models with this calculation model . (Section titled: "UBL 2 Invoice Calculation Model Draft 5 Submitted to UBL-Comment List by Stephen D Green") Of course, the wiki version might not always be in synch with the posted version as UBL TC members are free to edit it. A request to anyone who edits it - please also edit the title so it reflects the fact it is no longer the exact same set of rules as the "Draft 5" I submitted to UBL-Comment, plus some initials to show who has made which edit(s). Ta. >>> Stephen Green <stephengreenubl@gmail.com> 08/10/09 21:20 >>> Draft 5 of UBL 2 Invoice Calculation Model Rules The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119. http://www.ietf.org/rfc/rfc2119.txt ------- U2ICMDraft5Rule1: "To be a conforming UBL 2 invoice the document MUST be valid according to a standard UBL 2 Invoice schema." [A prerequisite to the following rules is that all amounts concerned are expressed in the same currency.] U2ICMDraft5Rule2: "The 'LineExtensionAmount' in the invoice 'LegalMonetaryTotal' SHOULD equal the sum of all 'LineExtensionAmount's in all of the invoice lines." U2ICMDraft5Rule3: "The 'TaxExclusiveAmount' in the invoice 'LegalMonetaryTotal' SHOULD equal 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 (with the exception of there being no 'TaxExclusiveAmount' in the invoice 'LegalMonetaryTotal')." U2ICMDraft5Rule4: "The 'AllowanceTotalAmount' in the invoice 'LegalMonetaryTotal' SHOULD equal the sum of any invoice 'AllowanceCharge' allowances." U2ICMDraft5Rule5: "The 'ChargeTotalAmount' in the invoice 'LegalMonetaryTotal' SHOULD equal the sum of any invoice 'AllowanceCharge' charges." U2ICMDraft5Rule6: "If there are no taxes amounts in the invoice then the 'TaxExclusiveAmount' in the invoice 'LegalMonetaryTotal' SHOULD equal the 'LineExtensionAmount' minus any 'AllowanceTotalAmount' plus any 'ChargeTotalAmount' minus any 'PrepaidAmount' (in the invoice 'LegalMonetaryTotal'), (with the exception of there being no 'TaxExclusiveAmount' in the invoice 'LegalMonetaryTotal'). If there are taxes amounts in the invoice but no PrepaidAmount then the 'TaxExclusiveAmount' in the invoice 'LegalMonetaryTotal' SHOULD equal the 'LineExtensionAmount' minus any 'AllowanceTotalAmount' plus any 'ChargeTotalAmount' (in the invoice 'LegalMonetaryTotal'), (with the exception of there being no 'TaxExclusiveAmount' in the invoice 'LegalMonetaryTotal')." U2ICMDraft5Rule7: "Any 'TaxInclusiveAmount' in the invoice 'LegalMonetaryTotal' SHOULD be equal to the 'TaxExclusiveAmount' (in the invoice 'LegalMonetaryTotal') plus the sum of any invoice total tax amounts (at invoice document level) (with the exception of there being tax amounts in currencies other than the currency of the invoice totals or there being is no 'TaxExclusiveAmount' in the invoice 'LegalMonetaryTotal')." U2ICMDraft5Rule8: "The 'PayableAmount' in the invoice 'LegalMonetaryTotal' SHOULD be equal to any 'TaxInclusiveAmount' (in the invoice 'LegalMonetaryTotal') minus any 'PrepaidAmount' (in the invoice 'LegalMonetaryTotal') unless there is no 'TaxInclusiveAmount' and there are no tax amounts in which case the 'PayableAmount' SHOULD equal the 'TaxExclusiveAmount' minus any 'PrepaidAmount' (in the invoice 'LegalMonetaryTotal') (with the exception of there being no 'TaxExclusiveAmount' in the invoice 'LegalMonetaryTotal')." U2ICMDraft5Rule9: "The sum of any invoice document level tax total amounts SHOULD equal the sum of any document level subtotal tax amounts (with the exception of the number of different currencies for taxes in the invoice being greater than one)." U2ICMDraft5Rule10: "Any implementation of the UBL 2 invoice which overrides any of these rules SHOULD make this explicit and explicitly state the overriding calculation rules." ------ --- Stephen D Green --------------------------------------------------------------------- To unsubscribe, e-mail: ubl-dev-unsubscribe@lists.oasis-open.org For additional commands, e-mail: ubl-dev-help@lists.oasis-open.org ______________________________________________________________________ 'Do it online' with our growing range of online services - http://www.bristol.gov.uk/services Sign-up for our email bulletin giving news, have-your-say and event information at: http://www.bristol.gov.uk/newsdirect View webcasts of Council meetings at http://www.bristol.gov.uk/webcast
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]