silencl Posted August 7, 2011 Share Posted August 7, 2011 I have problem with Credit Slips for the goods return. It's only for orders, where only some of the items are returned. For example 2 items from 3 are returned - I generate Credit Slip, but I get a wrong calculation for the price without tax on the credit slip pdf. It calculates price without tax from the goods, that have not been returned. The total price with tax is correct. On the contrary, when the whole order is returned a credit slip generated, then it's all correct. Where can I mend it and how??? It seems to be escaping me. I had a look to pdf.php, tools.php .... but didn't find it Thanks for any ideas Link to comment Share on other sites More sharing options...
silencl Posted September 9, 2011 Author Share Posted September 9, 2011 Ok, it's solved. Sometimes it's good to sit down with a skillful programmer and have t things done Link to comment Share on other sites More sharing options...
Mike Kranzler Posted September 9, 2011 Share Posted September 9, 2011 Hi silencl, Can you please post your solution here? This way, the next person who may run into this can search for this post and find out how to fix it for themselves. -Mike Link to comment Share on other sites More sharing options...
atanikov Posted December 3, 2014 Share Posted December 3, 2014 The reason of wrong price without tax is that in DB in table ps_order_slip_detail field mount_tax_excl has 2 digits after the decimal point and calculated value is rounded to only 2 digits after decimal point. In case of small source values (price tax including) this leads us to relatively big error in price without taxes rounding.y can edit field in DB to have for example 10 digits after decimal point and it solves problem. But I don't know if this method is safe. Link to comment Share on other sites More sharing options...
Recommended Posts