[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [ubl-dev] PricingCurrencyCode vs. LineExtensionAmount.currencyID
At 2011-12-05 12:24 +0100, ericdes wrote:
(This question could also apply to other document level specifications of currencies vs. individual monetary amounts where the currency codes are specified.)HelloI took this example from the document Invoice: each amount specifies a currency ID, which raises a few questions: How does the document level PricingCurrencyCode relates to those amounts? How do you handle possible discrepencies? Why specifying a currency ID at each monetary amount line if they're all the same as PricingCurrencyCode?
That is a business rule decision, as CCTS core component type supplementary components are all optional. There is no obligation in the document model to specifying currencyID= attributes. So a user community could accept that their absence implies the document-level currency code. The user community then has to decide what to do about the absence of *both* a document-level currency code and an value-level currency code.
Certainly a generic rule could be that a specified attribute takes precedence over a specified document-level value, which itself takes precedence over an assumed currency.
Turning that around, a community could claim there is an assumed currency for all transactions, which can be overridden at the document level, which itself can be overridden at the value level.
I'm getting confused at these document level indications I hadn't noticed before...
They are available to be used, but they are not obliged to be used.All users of UBL are expected to determine subsets of interest and to layer business rules on top of document structures, and conventions for currency expression can be included in that. The UBL TC provides standardized structures to be exploited by user communities, rather than burdening users with inventing their own structures. But the UBL TC does not tell communities how to use those structures.
I hope this addresses the nature of your question. . . . . . . . . . . . Ken -- Contact us for world-wide XML consulting and instructor-led training Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/t37DVX Crane Softwrights Ltd. http://www.CraneSoftwrights.com/u/ G. Ken Holman mailto:gkholman@CraneSoftwrights.com Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal