Merged bugfixes since 2.0.6
[fa-stable.git] / sales / includes / db / sales_credit_db.inc
index 4f7e1a5a7f01bce70d43208da3ed875d839e014c..877bb9d7a61244112c09a056c8fd71c58e58cfbb 100644 (file)
@@ -40,7 +40,8 @@ function write_credit_note($credit_note, $write_off_acc)
 
        $tax_total = 0;
        foreach ($taxes as $taxitem) {
-               $tax_total +=  $taxitem['Value'];
+               $taxitem['Value'] =  round2($taxitem['Value'], user_price_dec());
+               $tax_total += $taxitem['Value'];
        }
 
        if ($credit_note->tax_included == 0) {