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 Example of UBL 2.0 Calculation Model (TAML in-progress draft 0.6)


To improve the test assertions for the UBL Calculation Model
an 'interpretation' element is added to each test assertion.
There it states the assertion roughly in prose. The updated test
assertions together with updated schema is found in the attached
zipped file (as before, these are using a draft, as yet unapproved
version of the OASIS TAG TC test assertion markup language).


The main calculation test assertions, roughly stated in prose are:



        given that there is only one currency used in the invoice the
sum of the tax amounts at invoice document level is equal to the sum
of the subtotal tax amounts

        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 line extension amount in the invoice legal monetary total amount
is equal to the sum of the invoice line, line extension amounts

        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 tax exclusive amount in the invoice legal monetary total amount is
equal to the sum of the invoice line, line extension amounts plus the
sum of the invoice AllowanceCharge charges minus the sum of the
invoice AllowanceCharge allowances

        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 allowance total amount in the invoice legal monetary total amount
is equal to the invoice AllowanceCharge allowances minus the sum of
the invoice AllowanceCharge charges

        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 total line extension amount in the invoice legal monetary total
amount is equal to the invoice legal monetary total tax exclusive
amount plus the sum of the invoice legal monetary total allowance
total amount

        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
and that the total line extension amount in the invoice legal monetary
total amount is equal to the invoice legal monetary total tax
exclusive amount plus the sum of the invoice legal monetary total
allowance total amount, the total payable amount in the invoice legal
monetary total amount is equal to the sum of the invoice total line
extension amount plus the sum of the invoice total tax amounts (at
invoice document level)

Best regards


---
Stephen D Green




2009/9/11 Stephen Green <stephen.green@documentengineeringservices.com>:
> Please find attached an update on the example of UBL 2.0 Calculation Model
> using TAG TC Test Assertion Markup Language (TAML in-progress draft 0.5).
>
> Please note that this uses an in-progress draft of the Test Assertion Markup
> Language being specified by OASIS TAG TC (this is draft 0.5)
>
> http://www.oasis-open.org/committees/download.php/34131/testAssertionMarkupLanguageV05.odt
>
> Draft schema (v0.5):
>
> http://www.oasis-open.org/committees/download.php/34129/testAssertionMarkupLanguage-0-5.xsd
>
> Links to latest drafts of the markup are maintained here:
> http://wiki.oasis-open.org/tag/TestAssertionMarkupLanguage
>
>
>  **   The model on which this markup is based is near the end of its
> first public       **
>  **   review so comments on the TAG TC Test Assertions Guidelines are
> welcome. **
>
>  **   see http://lists.oasis-open.org/archives/tag/200907/msg00004.html
>                **
>
>
> Many thanks for UBL TC's considering at the last face to face the suggestions
> regarding use of these Test Assertions for expressing a UBL Calculation Model.
>
>
> Compliments and best regards
>
> ---
> Stephen D Green
> Document Engineering Services
>
> (Editor Test Assertion Markup Language)
>

ubl-2-taml-draft-0-6.zip



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