X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fview%2Fview_transfer.php;h=f9c77816e9f0acfd9dbef5c0a0f9e46514372da2;hb=7226477a2624571ba8460f773092f6e38bbc46f3;hp=195f91bcc2522ca0d4c0a5561076b7052b6b8fb4;hpb=ebc600101ceab69c06eac4b1bd4d1782af45de05;p=fa-stable.git
diff --git a/inventory/view/view_transfer.php b/inventory/view/view_transfer.php
index 195f91bc..f9c77816 100644
--- a/inventory/view/view_transfer.php
+++ b/inventory/view/view_transfer.php
@@ -25,42 +25,35 @@ 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");
echo "
";
-start_table("$table_style2 width=90%");
+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);
-end_table(1);
+end_table(2);
-echo "
";
-start_table("$table_style width=90%");
+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);
@@ -68,7 +61,7 @@ while ($item = db_fetch($transfer_items))
label_cell($item['description']);
qty_cell($item['qty'], false, get_qty_dec($item['stock_id']));
label_cell($item['units']);
- end_row();;
+ end_row();
}
}
@@ -76,5 +69,4 @@ end_table(1);
is_voided_display(ST_LOCTRANSFER, $trans_no, _("This transfer has been voided."));
-end_page(true);
-?>
\ No newline at end of file
+end_page(true, false, false, ST_LOCTRANSFER, $trans_no);