function add_to_order(&$order, $new_item, $new_item_qty, $standard_cost)
{
if ($order->find_cart_item($new_item))
function add_to_order(&$order, $new_item, $new_item_qty, $standard_cost)
{
if ($order->find_cart_item($new_item))
else
$order->add_to_cart (count($order->line_items), $new_item, $new_item_qty, $standard_cost);
}
else
$order->add_to_cart (count($order->line_items), $new_item, $new_item_qty, $standard_cost);
}
table_section(1);
locations_list_row(_("From Location:"), 'FromStockLocation', null);
locations_list_row(_("To Location:"), 'ToStockLocation', null);
table_section(1);
locations_list_row(_("From Location:"), 'FromStockLocation', null);
locations_list_row(_("To Location:"), 'ToStockLocation', null);
- table_section(2, "33%");
-
- ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_LOCTRANSFER));
+ table_section(2, "50%");
date_row(_("Date:"), 'AdjDate', '', true);
date_row(_("Date:"), 'AdjDate', '', true);
- table_section(3, "33%");
-
- movement_types_list_row(_("Transfer Type:"), 'type', null);
+ ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_LOCTRANSFER));
$th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"), '');
if ( count($order->line_items)) $th[] = '';
table_header($th);
$subtotal = 0;
$k = 0; //row colour counter
$th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"), '');
if ( count($order->line_items)) $th[] = '';
table_header($th);
$subtotal = 0;
$k = 0; //row colour counter
- alt_table_row_color($k);
+ if (in_array($stock_item->stock_id, $low_stock))
+ start_row("class='stockmankobg'"); // notice low stock status
+ else
+ alt_table_row_color($k);