예제 #1
0
            $_POST[$line->line_no] = qty_format(0);
        }
        if (!isset($_POST['DefaultReceivedDate']) || $_POST['DefaultReceivedDate'] == "") {
            $_POST['DefaultReceivedDate'] = Today();
        }
        $_SESSION['PO']->line_items[$line->line_no]->receive_qty = input_num($line->line_no);
        if (isset($_POST[$line->stock_id . "Desc"]) && strlen($_POST[$line->stock_id . "Desc"]) > 0) {
            $_SESSION['PO']->line_items[$line->line_no]->item_description = $_POST[$line->stock_id . "Desc"];
        }
    }
}
//--------------------------------------------------------------------------------------------------
if (isset($_POST['ProcessGoodsReceived'])) {
    process_receive_po();
}
//--------------------------------------------------------------------------------------------------
start_form(false, true);
display_grn_summary($_SESSION['PO'], true);
display_heading(tr("Items to Receive"));
display_po_receive_items();
echo "<br><center>";
submit('Update', tr("Update"));
echo "&nbsp";
submit('ProcessGoodsReceived', tr("Process Receive Items"));
echo "</center>";
end_form();
//--------------------------------------------------------------------------------------------------
end_page();
?>

예제 #2
0
<?php

$page_security = 2;
$path_to_root = "../..";
include $path_to_root . "/purchasing/includes/po_class.inc";
include $path_to_root . "/includes/session.inc";
page(tr("View Purchase Order Delivery"), true);
include $path_to_root . "/purchasing/includes/purchasing_ui.inc";
if (!isset($_GET['trans_no'])) {
    die("<BR>" . tr("This page must be called with a Purchase Order Delivery number to review."));
}
$purchase_order = new purch_order();
read_grn($_GET["trans_no"], $purchase_order);
display_heading(tr("Purchase Order Delivery") . " #" . $_GET['trans_no']);
echo "<BR>";
display_grn_summary($purchase_order);
display_heading2(tr("Line Details"));
start_table("colspan=9 {$table_style} width=90%");
$th = array(tr("Item Code"), tr("Item Description"), tr("Delivery Date"), tr("Quantity"), tr("Unit"), tr("Price"), tr("Line Total"), tr("Quantity Invoiced"));
table_header($th);
$total = 0;
$k = 0;
//row colour counter
foreach ($purchase_order->line_items as $stock_item) {
    $line_total = $stock_item->qty_received * $stock_item->price;
    alt_table_row_color($k);
    label_cell($stock_item->stock_id);
    label_cell($stock_item->item_description);
    label_cell($stock_item->req_del_date, "nowrap align=right");
    qty_cell($stock_item->qty_received);
    label_cell($stock_item->units);