Re: [ubl-dev] UBL 2.0 Order document with discounts and VAT calculations

From
Stephen D Green <>
Date
2011-12-16T16:54:51+00:00
ID
Thread
Re: [ubl-dev] UBL 2.0 Order document with discounts and VAT calculations
If I do use two lines - a separate line for the disposal charge, it kind of works OK,

though I do think you shouldn't have to do this - the allowances and charges

structures should allow what Kees needs together with the tax structures. He it

is (forgive any errors) with the taxable charge separated out into a second order

line.

 

Best regards

 

Steve

 

<Order
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Order-2 UBL-2.1-PRD2-20110521/xsdrt/maindoc/UBL-Order-2.1.xsd"

xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Order-2"

xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">

<cbc:ID>xyz</cbc:ID>
<cbc:IssueDate>2012-01-01</cbc:IssueDate>
<cac:BuyerCustomerParty></cac:BuyerCustomerParty>

<cac:SellerSupplierParty></cac:SellerSupplierParty>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="EUR">10.00</cbc:TaxAmount>

<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="EUR">50.00</cbc:TaxableAmount>

<cbc:TaxAmount currencyID="EUR">10.00</cbc:TaxAmount>

<cac:TaxCategory>
<cbc:Percent>20</cbc:Percent>
<cac:TaxScheme>
<cbc:TaxTypeCode>Dom-H</cbc:TaxTypeCode>

</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>

<cac:AnticipatedMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">50.00</cbc:LineExtensionAmount>

<cbc:TaxExclusiveAmount currencyID="EUR">50.00</cbc:TaxExclusiveAmount>

<cbc:TaxInclusiveAmount currencyID="EUR">60.00</cbc:TaxInclusiveAmount>

<cbc:AllowanceTotalAmount currencyID="EUR">60.00</cbc:AllowanceTotalAmount>

<cbc:ChargeTotalAmount currencyID="EUR">10.00</cbc:ChargeTotalAmount>

<cbc:PayableAmount currencyID="GBP">60.00</cbc:PayableAmount>

</cac:AnticipatedMonetaryTotal>
<cac:OrderLine>
<cbc:Note>goods</cbc:Note>

<cac:LineItem>
<cbc:ID>1</cbc:ID>
<cbc:SalesOrderID>A</cbc:SalesOrderID>

<cbc:LineStatusCode>NoStatus</cbc:LineStatusCode>
<cbc:LineExtensionAmount currencyID="EUR">40.00</cbc:LineExtensionAmount>

<cbc:TotalTaxAmount currencyID="EUR">8.00</cbc:TotalTaxAmount>

<cac:Price>
<cbc:PriceAmount currencyID="EUR">100.00</cbc:PriceAmount>

<cac:AllowanceCharge>
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
<cbc:Amount currencyID="EUR">60.00</cbc:Amount>

</cac:AllowanceCharge>
</cac:Price>
<cac:Item>
<cbc:Description>Item A</cbc:Description>

<cac:ClassifiedTaxCategory>
<cbc:Percent>20</cbc:Percent>
<cac:TaxScheme>

<cbc:TaxTypeCode>Dom-H</cbc:TaxTypeCode>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>

</cac:Item>
</cac:LineItem>
</cac:OrderLine>
<cac:OrderLine>
<cbc:Note>disposal</cbc:Note>

<cac:LineItem>
<cbc:ID>2</cbc:ID>
<cbc:SalesOrderID>B</cbc:SalesOrderID>

<cbc:LineStatusCode>NoStatus</cbc:LineStatusCode>
<cbc:LineExtensionAmount currencyID="EUR">10.00</cbc:LineExtensionAmount>

<cbc:TotalTaxAmount currencyID="EUR">2.00</cbc:TotalTaxAmount>

<cac:Price>
<cbc:PriceAmount currencyID="EUR">10.00</cbc:PriceAmount>

</cac:Price>
<cac:Item>
<cbc:Description>Item A</cbc:Description>
<cac:ClassifiedTaxCategory>

<cbc:Percent>20</cbc:Percent>
<cac:TaxScheme>
<cbc:TaxTypeCode>Dom-H</cbc:TaxTypeCode>

</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
</cac:LineItem>

</cac:OrderLine>
</Order>