Jump to content

Faktura - spatna celkova cena bez DPH (OPRAVENO)


Pat

Recommended Posts

Zdravim,

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)

Link to comment
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...