ibs_ia Posted August 25, 2010 Share Posted August 25, 2010 Hello everyone,My pdf invoice has some problem calculating the vat (tax) when the order includes a voucher.I attach the images of 3 different invoices created for the same product. The product final price is 2,76€ (vat included 8%), so it should be 2,55€ plus 8% vat 0,204€ = 2,754€.However, when applying a voucher this calculation changes to:2,58 + 0,18 = 2,76 (with a voucher of 8% discount)2,63 + 0,13 = 2,76 (with a voucher 1€ discount)what can I do to get the same calculation in all the invoices???thank you for your help!!!___________________________Hola a todos,Tengo problemas con mis facturas de pdf al calcular el iva cuando el pedido incluye un vale de descuento.Adjunto las imágenes de 3 facturas generadas para el mismo producto.El precio final del producto es 2,76€ (iva incluido), así que la base imponible debería ser 2,55€ + 8% iva 0,204 = 2,755€.Sin embargo, al aplicar un vale de descuento en la orden estos cálculos cambian:2,58 + 0,18 = 2,76 (con un vale del 8% de descuento)2,63 + 0,13 = 2,76 (con un vale de 1€ de descuento)¿Qué puedo hacer para que el cálculo sea el mismo en todas las facturas?Muchas gracias por su ayuda!!! Link to comment Share on other sites More sharing options...
Bruno Leveque Posted August 25, 2010 Share Posted August 25, 2010 Hi,Which version of PS are you using?Did you already add an entry regarding this issue in the bug tracker?Regards, Link to comment Share on other sites More sharing options...
ibs_ia Posted August 25, 2010 Author Share Posted August 25, 2010 Hi,I am using 1.3.1 versionI haven't reported this as a bug... should I? Link to comment Share on other sites More sharing options...
Bruno Leveque Posted August 25, 2010 Share Posted August 25, 2010 Hi,Yes you should always report all the bugs you find in the bug tracker.Therefore, they could be fixed more quickly.Can you also try to reproduce this issue on the v1.4 ?Regards, Link to comment Share on other sites More sharing options...
ibs_ia Posted August 25, 2010 Author Share Posted August 25, 2010 bug reported!I will try to reproduce it in the new version as soon as posible... Link to comment Share on other sites More sharing options...
Bruno Leveque Posted August 25, 2010 Share Posted August 25, 2010 Thanks, someone confirmed 30min ago that the bug is still present in the v1.4.We'll work hard to fix it as soon as possible! Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 25, 2010 Share Posted August 25, 2010 Thanks, someone confirmed 30min ago that the bug is still present in the v1.4.We'll work hard to fix it as soon as possible! Bruno, can you take a look at this post, too:http://www.prestashop.com/forums/viewthread/64408/general_discussion/pdf_invoice_total_tax_excl_dot__incorrectMay be able to shed some light on the problem. Link to comment Share on other sites More sharing options...
Daan Tol Posted August 30, 2010 Share Posted August 30, 2010 I hope it will be fixed soon...not very handy for my client... Link to comment Share on other sites More sharing options...
Franck Brignoli Posted September 2, 2010 Share Posted September 2, 2010 Hello,This problem has been fixed in SVN 1.3.x.The patch will be available in Prestashop 1.3.2. Link to comment Share on other sites More sharing options...
ibs_ia Posted September 2, 2010 Author Share Posted September 2, 2010 GREAT!!!!Thanks a lot!How can I get the fix with the SVN??? which files were modified?I'm sorry but I'm not an expert as you can see...merci beaucoup! Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 2, 2010 Share Posted September 2, 2010 It is not advisable to get source from SVN, especially for production environments.Remember, some thing may be works in progress and not entirely complete. Link to comment Share on other sites More sharing options...
bambi Posted September 3, 2010 Share Posted September 3, 2010 Hope 1.3.2 will be out soooooooooooooooooon with all the bug fixes.Thank you Presta Team Link to comment Share on other sites More sharing options...
heuvele Posted October 31, 2010 Share Posted October 31, 2010 Could someone give an indication where to solve this specific problem without the need of a full migration from 1.3.1 to 1.3.2?Thanks! Link to comment Share on other sites More sharing options...
Daan Tol Posted November 18, 2010 Share Posted November 18, 2010 Anyone? I'm still having the same problem as well....don't have the need for a full migration...rather wait for 1.4....greetings! Link to comment Share on other sites More sharing options...
Arieswe Posted February 2, 2011 Share Posted February 2, 2011 Is this problem solved???I have the same problems.No tax (companies)Extra price 5%Currency not equal to default shop currency.I have added some changes to the class PDF.PHP (around line 530) for this moment. Do you think that this temp. solution is ok?????(Group 2 is the company group without tax within my shop).$customer = new Customer($order->id_customer )$company = $customer->isMemberOfGroup(2); if ($company) $priceBreakDown['totalWithoutTax'] = $priceBreakDown['totalWithTax']; Link to comment Share on other sites More sharing options...
inveostore.com Posted February 2, 2011 Share Posted February 2, 2011 It is not solved yet.Discount of coupons is still not excluded from Tax.Tax needs to be recalculated when discount coupons is applied.We have reviewed PS sources and I have to say that fixing this problem will not be easy. It requires huge recoding of several methods. Link to comment Share on other sites More sharing options...
istox Posted March 24, 2011 Share Posted March 24, 2011 It is solved or not? Link to comment Share on other sites More sharing options...
inveostore.com Posted March 26, 2011 Share Posted March 26, 2011 It is not solved.We made a fix. Will be included in our updated unofficial PS 1.3.x release. Link to comment Share on other sites More sharing options...
inveostore.com Posted May 1, 2011 Share Posted May 1, 2011 We have just released an unofficial PS 1.3 version with fix included. Please see PrestaShop 1.3.7.0 SP1 (UNOFFICIAL UPDATE) Link to comment Share on other sites More sharing options...
Grégoire Véron Posted June 17, 2011 Share Posted June 17, 2011 Hi,Thanks for your remark which is perfectly correct.We have fixed the tax calculation in case of use of a voucher in percent (no fix needed for vouchers with constant amount). This is available in the 1.4.3 version of PrestaShop that you can download here : http://www.prestashop.com/fr/downloads/I attached an example with a 10% voucher.Thanks and regards! facture_conforme.pdf Link to comment Share on other sites More sharing options...
Kilobaid Posted August 5, 2011 Share Posted August 5, 2011 Hello I'm using a 1.3.5.0 version of prestashop with a high-customized pdf invoice. Is there any method to apply this fix in my actual version without losing my invoice structure? Link to comment Share on other sites More sharing options...
officegopher Posted September 27, 2011 Share Posted September 27, 2011 Does anyone know if this has been fixed in 1.4.x I am using version 1.4.0.17 and I am experiencing this issue Thanks Kevin Link to comment Share on other sites More sharing options...
frederic42 Posted January 9, 2012 Share Posted January 9, 2012 Fix here : http://scm.prestashop.com/changelog/PrestaShop_v.1.4.x?cs=7072#classesZ002fPDF.php Link to comment Share on other sites More sharing options...
Recommended Posts