Helper function for searching indexed submit POST vars
[fa-stable.git] / purchasing / supplier_credit_grns.php
index ab14148be3c95bd03d0f342d08696ae11f76d813..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)
@@ -166,7 +166,7 @@ if (isset($_POST['grn_item_id']) && $_POST['grn_item_id'] != "")
        label_cell($_POST['grn_item_id']);
     label_cell($myrow['item_code'] . " " . $myrow['description']);
     qty_cell($myrow["quantity_inv"]);
-    amount_cells(null, 'This_QuantityCredited', qty_format(max($myrow['quantity_inv'],0)));
+    qty_cells(null, 'This_QuantityCredited', qty_format(max($myrow['quantity_inv'],0)));
     amount_cell($myrow['unit_price']);
     amount_cells(null, 'ChgPrice', price_format($myrow['unit_price']));
     end_row();