projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug in /includes/ui/ui_lists.inc:914. Sql clause was cut.
[fa-stable.git]
/
purchasing
/
supplier_credit_grns.php
diff --git
a/purchasing/supplier_credit_grns.php
b/purchasing/supplier_credit_grns.php
index 15ea083045bad55fd36608e2bfdfdc5e4efa0d57..373e7676762d3dab7572de075662a01cb71ace8d 100644
(file)
--- a/
purchasing/supplier_credit_grns.php
+++ b/
purchasing/supplier_credit_grns.php
@@
-32,12
+32,14
@@
function check_data()
if (!check_num('This_QuantityCredited', 0))
{
display_error(_("The quantity to credit must be numeric and greater than zero."));
if (!check_num('This_QuantityCredited', 0))
{
display_error(_("The quantity to credit must be numeric and greater than zero."));
+ set_focus('This_QuantityCredited');
return false;
}
if (!check_num('ChgPrice', 0))
{
display_error(_("The price is either not numeric or negative."));
return false;
}
if (!check_num('ChgPrice', 0))
{
display_error(_("The price is either not numeric or negative."));
+ set_focus('ChgPrice');
return false;
}
return false;
}
@@
-135,7
+137,7
@@
while ($myrow = db_fetch($result))
qty_cell($myrow["quantity_inv"]);
qty_cell($myrow["qty_recd"] - $myrow["quantity_inv"]);
amount_cell($myrow["unit_price"]);
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)
end_row();
$i++;
if ($i > 15)