// Otherwise if you try to fullfill item quantities separately will give error.
$sql = "SELECT item_code, quantity_ordered, quantity_received, qty_invoiced
FROM ".TB_PREF."purch_order_details
// Otherwise if you try to fullfill item quantities separately will give error.
$sql = "SELECT item_code, quantity_ordered, quantity_received, qty_invoiced
FROM ".TB_PREF."purch_order_details
." ORDER BY po_detail_item";
$result = db_query($sql, "could not query purch order details");
." ORDER BY po_detail_item";
$result = db_query($sql, "could not query purch order details");