X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fview%2Fview_transfer.php;h=cb27e24f1f66de575723427adb63222c8e496433;hb=f01da91c553b7d256b053475c0f5dc026c47c10d;hp=ecdc9610803b5a708b76c8d9137f7c569daa9798;hpb=17b390efcf904072b02ec866b2a427490471a260;p=fa-stable.git diff --git a/inventory/view/view_transfer.php b/inventory/view/view_transfer.php index ecdc9610..cb27e24f 100644 --- a/inventory/view/view_transfer.php +++ b/inventory/view/view_transfer.php @@ -25,10 +25,7 @@ if (isset($_GET["trans_no"])) $trans_no = $_GET["trans_no"]; } -$transfer_items = get_stock_transfer($trans_no); - -$from_trans = $transfer_items[0]; -$to_trans = $transfer_items[1]; +$trans = get_stock_transfer($trans_no); display_heading($systypes_array[ST_LOCTRANSFER] . " #$trans_no"); @@ -36,15 +33,12 @@ echo "
"; start_table(TABLESTYLE2, "width='90%'"); start_row(); -label_cells(_("Item"), $from_trans['stock_id'] . " - " . $from_trans['description'], "class='tableheader2'"); -label_cells(_("From Location"), $from_trans['location_name'], "class='tableheader2'"); -label_cells(_("To Location"), $to_trans['location_name'], "class='tableheader2'"); +label_cells(_("Reference"), $trans['reference'], "class='tableheader2'"); +label_cells(_("Date"), sql2date($trans['tran_date']), "class='tableheader2'"); end_row(); start_row(); -label_cells(_("Reference"), $from_trans['reference'], "class='tableheader2'"); -$adjustment_type = get_movement_type($from_trans['person_id']) ; -label_cells(_("Adjustment Type"), $adjustment_type['name'], "class='tableheader2'"); -label_cells(_("Date"), sql2date($from_trans['tran_date']), "class='tableheader2'"); +label_cells(_("From Location"), $trans['from_name'], "class='tableheader2'"); +label_cells(_("To Location"), $trans['to_name'], "class='tableheader2'"); end_row(); comments_display_row(ST_LOCTRANSFER, $trans_no); @@ -53,13 +47,13 @@ end_table(2); start_table(TABLESTYLE, "width='90%'"); -$th = array(_("Item"), _("Description"), _("Quantity"), _("Units")); +$th = array(_("Item Code"), _("Description"), _("Quantity"), _("Units")); table_header($th); $transfer_items = get_stock_moves(ST_LOCTRANSFER, $trans_no); $k = 0; while ($item = db_fetch($transfer_items)) { - if ($item['loc_code'] == $to_trans['loc_code']) + if ($item['loc_code'] == $trans['to_loc']) { alt_table_row_color($k);