Jump to content

Faktura - spatna celkova cena bez DPH (OPRAVENO)


Recommended Posts


nevim jestli to uz nekdo opravoval nebo nejak resil, ale prisel jsem na jednu chybicku, ze celkova "Cena bez DPH" se pocita spatne a to z vysledne ceny. Tady vkladam opravu souboru classes/PDF.php

misto tohoto radku

$vat = $priceWithTaxAndReduction * (floatval($product['tax_rate']) / 100);

ma byt tento

$vat = $priceWithTaxAndReduction * (floatval($product['tax_rate']) / (100 + floatval($product['tax_rate'])));

Snad to nekomu pomuze :o)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More