[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [ubl-dev] UBL 2.0 Order document with discounts and VAT calculations
So, Kees, I suggest a comment to the ubl-comment listduring the next public review, or perhaps before. I thinka way to do what you want is for a TaxTotal to be addedto LineItem, since I agree you lack a way to have botha total tax amount for a line and a tax amount for goodsas distinct from taxable allowances or charges (allowancecharge includes TaxTotal and can be used in an OrderLine/LineItem/Price but there is no TaxTotal for the lineitem itself and all there is is TotalTaxAmount which doesn'tdistinguish different items of tax (no subtotals and no wayto state exactly what is being taxed).I'd also like to comment on the missing 'total before anyallowances, charges and taxes' at line and at documentlevel. LineExtension clearly doesn't cover this (even ifmaybe it might have been intended for this originally,hence the near overlap with TaxExclusiveAmount)because of its definition so another pair of BBIEs seemsto be needed, one inside appropriate line ABIEs and theother inside the various document level total ABIEs.
Best regards
Steve
---
Stephen D Green
On 16 December 2011 16:54, Stephen D Green <stephen.green@documentengineeringservices.com> wrote:
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 chargesstructures should allow what Kees needs together with the tax structures. He itis (forgive any errors) with the taxable charge separated out into a second orderline.Best regardsSteve<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><cac:OrderLine>
<cbc:Percent>20</cbc:Percent>
<cac:TaxScheme>
<cbc:TaxTypeCode>Dom-H</cbc:TaxTypeCode>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
</cac:LineItem>
</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>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]