[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
Steve,
This new BBIE, would that also hold the Tax Details excluding the taxable allowances and/or charges?
If not, then you would require the TaxTotals also under the Price component.
So a structure could be:
<OrderLine>
<LineItem>
<LineExtensionAmount> Amount of the LineItem exclusing Taxes (TaxTotals on LineItem Level would give you the Taxes for this amount.
<TaxTotals>
Tax details for the total Line Item, so including all the tax details for the AllowanceCharges under the LineItem level (or move this one level higher, under OrderLine?)
</TaxTotals>
<AllowanceCharge>
<Amount>
Amount of the AllowanceCharge,
</Amount>
<TaxTotals>
Tax details for this AllowanceCharge (related to the Amount)
</TaxTotals>
</AllowanceCharge>
<Item>
</Item>
<Price>
<PriceAmount>
Price excluding Tax for a Single Item (are any AllowanceCharge amounts already included in this PriceAmount?)
<PriceAmount>
<TaxTotals>
Tax details for this Price, related to PriceAmount. (but that would mean the Tax for a single Item AFTER applying the AllowanceCharge)
</TaxTotals>
<AllowanceCharge>
<Amount>
Amount of the AllowanceCharge, usually an Allowance (Discount) on the Price (but what price?)
</Amount>
<TaxTotals>
Tax details for this AllowanceCharge, but does that make sense to place here?
</TaxTotals>
</AllowanceCharge>
</Price>
</LineItem>
</OrderLine>
So what I am saying is that for each amount that is mentioned, there could be a relation to some Tax Details.
Kees
Van: stephengreenubl@gmail.com [mailto:stephengreenubl@gmail.com] Namens Stephen D Green
Verzonden: vrijdag 16 december 2011 21:14
Aan: Duvekot, Kees
CC: UBL-Dev
Onderwerp: Re: [ubl-dev] UBL 2.0 Order document with discounts and VAT calculations
So, Kees, I suggest a comment to the ubl-comment list
during the next public review, or perhaps before. I think
a way to do what you want is for a TaxTotal to be added
to LineItem, since I agree you lack a way to have both
a total tax amount for a line and a tax amount for goods
as distinct from taxable allowances or charges (allowance
charge includes TaxTotal and can be used in an Order
Line/LineItem/Price but there is no TaxTotal for the line
item itself and all there is is TotalTaxAmount which doesn't
distinguish different items of tax (no subtotals and no way
to state exactly what is being taxed).
I'd also like to comment on the missing 'total before any
allowances, charges and taxes' at line and at document
level. LineExtension clearly doesn't cover this (even if
maybe it might have been intended for this originally,
hence the near overlap with TaxExclusiveAmount)
because of its definition so another pair of BBIEs seems
to be needed, one inside appropriate line ABIEs and the
other inside the various document level total ABIEs.
Best regards
Steve
---
Stephen D GreenOn 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 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>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]