X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fpo_receive_items.php;h=e0a584280be3dcf3860b7f63fec817754b997776;hb=41069728f318cd75cfecce474a7ac464e2894615;hp=59791f468dbb3edbc22753cf148aeb47c842e5b8;hpb=0ad7b92c6cf2e4e65ca0fa94ba31f30f7b292ba8;p=fa-stable.git diff --git a/purchasing/po_receive_items.php b/purchasing/po_receive_items.php index 59791f46..e0a58428 100644 --- 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) - 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 - 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); @@ -154,18 +154,21 @@ function can_process() 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.")); + set_focus('ref'); return false; } if (!is_new_reference($_POST['ref'], 25)) { display_error(_("The entered reference is already in use.")); + set_focus('ref'); return false; }