[OFBiz] Users - Sales Tax / VAT
Michael Kuefner
ofbiz at herr-minni.de
Tue May 10 05:32:10 EDT 2005
Hi Mike,
On Mon, May 09, 2005 at 05:26:00PM +0200, Mike Metcalfe wrote:
> I am intersted in using your code, especially if you've been
> using it for 2 years.
have a look at the attachment for the following files:
(you can do a diff to your current version and see what
has changed)
- entitymodel_order.xml
* added "includedInPrice" field to SimpleSalesTaxLookup
==> you have to set this field to "Y" for each TaxLookup
that is a included tax!
- OrderReadHelper.java
* added Method "getOrderTaxIncludedTotal",
* added Method "getAllOrderItemsTaxIncludedTotal"
* changed Method "filterOrderAdjustments"
* extended Method "calcOrderAdjustments"
- OrderServices.java
* in Method "simpleTaxCalc" splitting tax lookup in
"SALES_TAX" and "TAX_INCLUDED_IN_PRICE"
* renamed and changed Method "getTaxAmount" into
"getSalesTaxAmount"
* added Method "getTaxIncludedInPriceAmount"
- in checkoutreview.bsh add
context.put(
"orderTaxIncluded",
OrderReadHelper.getOrderTaxIncludedTotal(orderItems, orderAdjustments)
);
in the orderitems.ftl you can access the taxIncludedInPrice value
with this variable.
Hope this helps.
In the current svn-version some things have changed, but i think
we also could adapt it.
Yours,
Michael
> -----Original Message-----
> From: users-bounces at lists.ofbiz.org
> [mailto:users-bounces at lists.ofbiz.org]On Behalf Of Michael Kuefner
> Sent: 09 May 2005 10:18
> To: OFBiz Users / Usage Discussion
> Subject: Re: [OFBiz] Users - Sales Tax / VAT
>
>
> Hi,
>
> On Mon, May 09, 2005 at 12:58:19PM +1000, David Garrett wrote:
>
> > Sorry, I don't quite understand the purpose of includedTaxRate
> > ... Could you clarify.
>
> As Ray mentioned in his first eMail, some states (like germany)
> have item prices that allready include the taxes.
>
>
> For our customers project "shirtalarm.de" we added some
> functionality 2 years ago:
>
> - a boolean field in the "SimpleSalesTaxLookup" Entity defines
> if the tax is a sales tax or a included tax
>
> - all product prices are prices that include the german
> default tax.
>
> - in the "simpleTaxCalc" service we distinguish what kind of
> tax it is and add either an "INCLUDED_TAX" or "SALES_TAX"
> adjustment.
>
> - to show the included tax e.g in the orderreview you have to
> get the sum for these adjustments to show.
>
> We did this by extending the OrderReadHelper class.
>
>
>
> If there is some interest on this changes, i can try to add
> them to the current svn version of this classes/files.
>
>
>
> Yours,
> Michael
>
> --
> Michael Küfner Meisterbohne eLösungen
> Söflinger Strasse 100
> Tel: +49-(0)731-399 499 0 D-89077 Ulm
> http://www.meisterbohne.de
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
>
--
Michael Küfner Meisterbohne eLösungen
Söflinger Strasse 100
Tel: +49-(0)731-399 499 0 D-89077 Ulm
http://www.meisterbohne.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ofbiz-taxIncludedInPrice.tgz
Type: application/x-gtar
Size: 27296 bytes
Desc: not available
Url : http://lists.ofbiz.org/pipermail/users/attachments/20050510/71a5ae2b/ofbiz-taxIncludedInPrice-0001.gtar
More information about the Users
mailing list