madlax Posted October 31, 2007 Posted October 31, 2007 Hi there! I have a small problem that has been troubling my mind for several days now.. I would like to add a couple new lines to my shop's invoice page: VAT 17% and VAT 22% total. Currently the part of my invoice I would like to edit looks like this: Products VAT: Price(ex.vat) Price(incl.vat) Total (ex.vat) Total (incl.vat) 10 x PRDUCT1 22% 2.01EUR 2.45EUR 20.08EUR 24.50EUR 1 x PRODUCT2 17% 2.95EUR 3.45EUR 2.95EUR 3.45EUR 1 x PRODUCT3 22% 8.69EUR 10.60EUR 8.69EUR 10.60EUR Subtotal: 38.55EUR Delivery: 8.90EUR VAT 22 %: 7.93EUR VAT 17%: 0.50EUR Total: 47.45EUR But I want the end part to look like this: Subtotal: 38.55EUR Delivery: 8.90EUR VAT 22% total: 35,10EUR VAT 17% total: 3,45EUR VAT 22 %: 7.93EUR VAT 17%: 0.50EUR Total: 47.45EUR How can I get oscommerce to print these 2 new lines into the invoice page? Basically, all it has to do is count the total price of all VAT 22% products (including tax) and VAT 17% products (including tax) and print them to their own lines. I really hope you know what I mean as this is a little bit hard (at least for me) to explain :lol:
Nullachtfuffzehn Posted October 31, 2007 Posted October 31, 2007 Since the output you are referring to is generated by the order_total modules, it won't be that easy to accomplish what you want. If you can live with a display like VAT 22% total: .... VAT 22%:.... VAT 17% total:... VAT 17%:.... it would be easier. Then you just got to change the code of the tax module to display the total amount, since it goes through a loop.
madlax Posted November 1, 2007 Author Posted November 1, 2007 Since the output you are referring to is generated by the order_total modules, it won't be that easy to accomplish what you want. If you can live with a display like VAT 22% total: .... VAT 22%:.... VAT 17% total:... VAT 17%:.... it would be easier. Then you just got to change the code of the tax module to display the total amount, since it goes through a loop. Thank you for you answer! I think I can live with that display. It doesn't matter that much how the new lines are arranged. In fact, your suggestion for the display is much more logical :thumbsup: Now, if you could tell me, what do I need to edit in tax module? (are you referring to ot_tax?) I've checked its source but I simply can't figure it out :'(
Recommended Posts
Archived
This topic is now archived and is closed to further replies.