projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor fixes in the former files
[fa-stable.git]
/
purchasing
/
po_receive_items.php
diff --git
a/purchasing/po_receive_items.php
b/purchasing/po_receive_items.php
index 59791f468dbb3edbc22753cf148aeb47c842e5b8..e0a584280be3dcf3860b7f63fec817754b997776 100644
(file)
--- a/
purchasing/po_receive_items.php
+++ b/
purchasing/po_receive_items.php
@@
-85,9
+85,9
@@
function display_po_receive_items()
qty_cell($qty_outstanding);
if ($qty_outstanding > 0)
qty_cell($qty_outstanding);
if ($qty_outstanding > 0)
-
amount
_cells(null, $ln_itm->line_no, qty_format($ln_itm->receive_qty), "align=right");
+
qty
_cells(null, $ln_itm->line_no, qty_format($ln_itm->receive_qty), "align=right");
else
else
-
amount
_cells(null, $ln_itm->line_no, qty_format($ln_itm->receive_qty), "align=right",
+
qty
_cells(null, $ln_itm->line_no, qty_format($ln_itm->receive_qty), "align=right",
"disabled");
amount_cell($ln_itm->price);
"disabled");
amount_cell($ln_itm->price);
@@
-154,18
+154,21
@@
function can_process()
if (!is_date($_POST['DefaultReceivedDate']))
{
display_error(_("The entered date is invalid."));
if (!is_date($_POST['DefaultReceivedDate']))
{
display_error(_("The entered date is invalid."));
+ set_focus('DefaultReceivedDate');
return false;
}
if (!references::is_valid($_POST['ref']))
{
display_error(_("You must enter a reference."));
return false;
}
if (!references::is_valid($_POST['ref']))
{
display_error(_("You must enter a reference."));
+ set_focus('ref');
return false;
}
if (!is_new_reference($_POST['ref'], 25))
{
display_error(_("The entered reference is already in use."));
return false;
}
if (!is_new_reference($_POST['ref'], 25))
{
display_error(_("The entered reference is already in use."));
+ set_focus('ref');
return false;
}
return false;
}