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

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-dev message

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


Subject: Re: [ubl-dev] Is there a consistency expression for MonetaryTotal objects


Here is a great example to give a rough idea of a calculation model

http://docs.peppol.eu/poacc/billing/3.0/bis/Â

http://docs.peppol.eu/poacc/billing/3.0/bis/#_calculation

Regards
Steve

On Friday, 17 August 2018, Stephen D Green <stephengreenubl@gmail.com> wrote:
Hi David

If you think about it, the monetary total calculation has to include every possible (even optional) relevant amount that might be included in the document. When a subset like EN16931 or a CIUS or Peppol is specified then a calculation model can be determined practically. If no subset is specified then every possible BIE affecting the total has to be included in the calculation model. If UBL extensions or customisations were included in a document the calculation model must change accordingly. Also there is an issue of how to express a calculation model and over time this will change. Currently besides prose, XPath expressions tend to be used (typically with Schematron) but an XPath 1.0 _expression_ can return a different result to an XPath 2.0 _expression_ so if 1.0 general use ever gets replaced by 2.0 the calculation model may all need replacing too.

So it is a changeable problem needing proper consideration and maintenance depending on context of use.

Regards
Stephen D Green


On Friday, 17 August 2018, David Goodenough <david.goodenough@broadwellmanor.co.uk> wrote:

Presumably there exists a rule that can be used to validate arithmetically a MonetaryTotal object. Then for an Invoice/Order/RemittanceAdvice rules like the sum of the line items should equal the totals. And I am sure there are other testable consistency rules.

Â

Are they documented anywhere? If not has anyone come up with any rules of their own that are useful?

Â

David



--
----
Stephen D Green



--
----
Stephen D Green



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