Jump to content

error pdf vat (tax) calculation


Recommended Posts

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!!!

28823_9AQBeaQdaRRFL6Ockp8p_t

28824_ocryiTaDhtSxhBRjedl0_t

28825_bXaPt0w0PSVfU5lbhsXV_t

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
  • 2 months later...

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

  • 1 month later...
  • 1 month later...
  • 1 month later...

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

  • 1 month later...
  • 1 month later...
  • 3 months later...
×
×
  • Create New...