[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [ubl-dev] DocumentCurrencyCode in Invoice, CreditNote, SelfBilledInvoice and SelfBilledCreditNote
But all Amount objects must have a current id, so which has precedence? If a simple accounting system that can only cope with a single currency receives a document with multiple currencies and uses the document code ignoring the Amount codes then chaos will follow - or at least wrong numbers. So perhaps the meaning of the DocumentCurrencyCode should be changed to mean that this is the only currency code present in the document. That would then mean that it could safely be used by single currency accounting systems without further checks, although of course the DocumentCurrenctCode would have to specify the currency that the accounting system was set up to use. I am not convinced it really helps. But changing the meaning of a field (or come to that its name as the existing name could not imply this meaning) is definitely not backward compatible. On Saturday, 26 August 2023 13:08:45 BST Stephen D Green wrote: > Greetings > > Just as a heads up from a first generation UBL design point of view, note > that the document level currency code is something put in to meet > requirements of software accounting systems at the time. A typical system > could only support one currency per document. The possibility existed of a > document in UBL having a different currency for each line, etcetera. It > made sense for a document to declare its main default currency at document > level. This would allow accounting systems and add-ons to support UBL, > generally even without reliance on only supporting specific implementation > subsets. I suspect this is a general requirement still today. Something to > bear in mind. It might mean that any document involving currencies can be > kept simple enough, out of the box, irrespective of community user guide or > subset, for typical software systems to support UBL without the need to > cater for multiple currencies in the same document. > > Kind regards, > Stephen D Green > > On Thu, 24 Aug 2023 at 16:05, Kees Duvekot <kees@sipico.com> wrote: > > David, > > > > That sounds like a reasonable request .. I will record it as a ticket and > > see when we can incorporate it ... > > > > Kees D. > > > > On Thu, Aug 24, 2023, 17:02 David Goodenough < > > > > david.goodenough@broadwellmanor.co.uk> wrote: > >> I recently noticed that in Invoice, CreditNote and SelfBilledIinvoice, > >> DocumentCurrencyCode is optional, but in SelfBilledCreditNote it is > >> required. > >> > >> This seems inconsistent. > >> > >> I realise that backward compatibility is necessary, so I suppose the only > >> thing that can be done is to make SelfBilledCreditNote have it as > >> optional as > >> well. > >> > >> As all currency amounts are recorded in Amount objects which include a > >> currencyId (a mandatory attribute) actually this field is probably > >> redundant. > >> > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: ubl-dev-unsubscribe@lists.oasis-open.org > >> For additional commands, e-mail: ubl-dev-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]