AllowanceCharge on InvoiceLine

Hi,

I have case where an AllowanceCharge is calculated on InvoiceLine level. As I found in the UBL documentation, the LineExtensionAmount must include any discounts or surcharges.

So, in my case, LineExtensionAmount = PriceAmount - AllowanceCharge discount + AllowanceCharge surcharge.

However, when I try to validate the generated XML file on OIOUBL's website, I get an error stating the PriceAmount should be the same as the LineExtensionAmount.

I'm not sure what's wrong here. Here is an extract of the XML-file:

 

<cac:InvoiceLine><cbc:ID>1</cbc:ID><cbc:InvoicedQuantity unitCode="EA">1</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID="EUR">136.00</cbc:LineExtensionAmount><cac:AllowanceCharge><cbc:ChargeIndicator>false</cbc:ChargeIndicator> <cbc:SequenceNumeric>1</cbc:SequenceNumeric> <cbc:Amount currencyID="EUR">34.00</cbc:Amount> <cac:TaxCategory><cbc:ID schemeAgencyID="320"schemeID="urn:oioubl:id:taxcategoryid-1.1">StandardRated</cbc:ID><cbc:Percent>21.0000</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="320"schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID><cbc:Name>Moms</cbc:Name></cac:TaxScheme></cac:TaxCategory> </cac:AllowanceCharge><cac:TaxTotal><cbc:TaxAmount currencyID="EUR">28.56</cbc:TaxAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID="EUR">136.00</cbc:TaxableAmount><cbc:TaxAmount currencyID="EUR">28.56</cbc:TaxAmount><cac:TaxCategory><cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxcategoryid-1.1">StandardRated</cbc:ID><cbc:Percent>21.0000</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID><cbc:Name>Moms</cbc:Name></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:TaxTotal><cac:Item><cbc:Description>01/06/2013_za_O60_09:31:30_20s</cbc:Description><cbc:Name>01/06/2013_za_O60_09:31:30_20s</cbc:Name></cac:Item><cac:Price><cbc:PriceAmount currencyID="EUR">170.00</cbc:PriceAmount><cbc:BaseQuantity>1</cbc:BaseQuantity></cac:Price></cac:InvoiceLine>

ny

The companion mail list to this http://ubl.xml.org site is "UBL Dev".

Using that mail list to ask questions is easier than doing so using this web site.  The formatting is easier, and there are many more monitoring that mail list.

Archive and subscription information is found here:

http://lists.oasis-open.org/archives/ubl-dev/
http://www.oasis-open.org/mlmanage/

See you there!

. . . . . . . Ken

XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I