set_global_customer($_POST['customer_id']);
if (!isset($_POST['ref']))
- $_POST['ref'] = $Refs->get_next(11);
+ $_POST['ref'] = $Refs->get_next(ST_CUSTCREDIT);
if ($order->trans_no==0)
ref_row(_("Reference").':', 'ref');
else
- label_row(_("Reference").':', $_POST['ref'] );
+ label_row(_("Reference").':', $order->reference);
if (!is_company_currency($order->customer_currency))
table_section(2);
label_row(_("Customer Currency:"), $order->customer_currency);
- exchange_rate_display($order->customer_currency, get_company_currency(),
+ exchange_rate_display(get_company_currency(), $order->customer_currency,
$_POST['OrderDate']);
}
table_section(3);
$id = find_submit('Edit');
- foreach ($order->line_items as $line_no=>$line)
+ foreach ($order->get_items() as $line_no=>$line)
{
$line_total = round($line->qty_dispatched * $line->price * (1 - $line->discount_percent),
user_price_dec());
//---------------------------------------------------------------------------------
-?>
\ No newline at end of file