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: Sv: [ubl-dev] Amount value precision


On Wednesday, 3 February 2021 14:06:57 GMT you wrote:

> David Goodenough schreef op 03-02-2021 14:03:

> > Martin,

> > Thank you.  Very useful.  It would appear that given that PEPPOL does

> > not like PriceExtensions, the only Amount allowed to be more than 2

> > digits (odd that, given that there are or were currencies that allowed

> > more than two digits if I remember rightly, maybe they are just all

> > historical oddities) is the Price/PriceAmount.

> > As a matter of interest, other than PEPPOL do you know of any other

> > such tailorings of UBL?

> > David

> >

> > On Wednesday, 3 February 2021 12:30:14 GMT you wrote:

> >> Hi David,

> >>

> >>

> >>

> >> Take a look at the Peppol BIS Billing 3 specification. It is a usage

> >>

> >>

> >> specification on the European standard on eInvoicing and inherits

> >

> > the

> >

> >> precision and rounding rules.

> >>

> >>

> >>

> >> Particularly:

> >>

> >> https://docs.peppol.eu/poacc/billing/3.0/bis/#_rounding

> >>

> >> and

> >>

> >> https://docs.peppol.eu/poacc/billing/3.0/bis/#_semantic_data_types

> >>

> >>

> >>

> >> Best regards

> >>

> >> Martin Forsberg

> >>

> >>

> >>

> >> Från: David Goodenough <david.goodenough@broadwellmanor.co.uk>

> >>

> >> Skickat: den 3 februari 2021 13:19

> >>

> >> Till: ubl-dev@lists.oasis-open.org

> >>

> >> Ämne: [ubl-dev] Amount value precision

> >>

> >>

> >>

> >>

> >>

> >> Currencies have natural precisions, so in the UK I can not instruct

> >

> > a bank

> >

> >> to make a payment with more than two decimal places (i.e. pence).

> >

> > Banking

> >

> >> transactions are not the purview of UBL, but rather ISO-20022,

> >

> > however

> >

> >> documents such as UBL Invoice and RemittanceAdvice document so

> >

> > include

> >

> >> amounts that will have been transferred by some banking interaction.

> >>

> >>

> >>

> >>

> >>

> >>

> >> Prices however can be set to more decimal places than a banking

> >

> > amount would

> >

> >> allow, and it then rounded once the amount is calculated.  For

> >

> > instance

> >

> >> last month we sent 81,400 litres of milk for which we were paid

> >

> > 30.672

> >

> >> pence per litre, or 0.30672 GBP per litre.

> >>

> >>

> >>

> >>

> >>

> >> Are there any other objects other than the PriceAmount in a Price

> >

> > and the

>

> And how about currency or raw material (gold/silver) rates? These go

> well beyond two decimals and are still considered prices.

>

> Cheers,

> Roland

These are prices (and thus allowed more than the currency's number of decimal places, not payable amounts which are so limited because otherwise they could not be paid.


David

>

> >> Amount in a PriceExtension which should not be constrained by

> >

> > bankable

> >

> >> precision?

> >>

> >>

> >>

> >>

> >>

> >> Has anyone (PEPPOL for example) come up with a set of rules as to

> >

> > which UBL

> >

> >> Amount fields should be rounded to the relevant currency precision,

> >

> > and

> >

> >> which can have more decimal places?  Does anyone know of a good

> >

> > reference

> >

> >> for such decisions?

> >>

> >>

> >>

> >>

> >>

> >> This is obviously not a UBL design problem (although it would have

> >

> > been nice

> >

> >> if there were two different Amount objects, one for a bankable

> >

> > amount and

> >

> >> one for a calculable one, but it is too late for that now) but an

> >>

> >> implementation question.

> >>

> >>

> >>

> >>

> >>

> >> Thanks in advance





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