Added rounding when needed to avoid document inconsistency
[fa-stable.git] / purchasing / supplier_credit_grns.php
index 15ea083045bad55fd36608e2bfdfdc5e4efa0d57..3d18c98ae93c451f8e0d1f01a33277297b8b783f 100644 (file)
@@ -135,7 +135,7 @@ while ($myrow = db_fetch($result))
         qty_cell($myrow["quantity_inv"]);
         qty_cell($myrow["qty_recd"] - $myrow["quantity_inv"]);
                amount_cell($myrow["unit_price"]);
-               amount_cell($myrow["unit_price"] * $myrow["quantity_inv"]);
+               amount_cell(round($myrow["unit_price"] * $myrow["quantity_inv"],  user_price_dec()));
                end_row();
                $i++;
                if ($i > 15)