X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fui%2Fsales_credit_ui.inc;h=063af1b1f64818607a1927a2499d58de76aa2607;hb=7561718ee5113232ce917f63085d272884b0929c;hp=ac9c932f851a87f8cad127a22615bba9c5b4f71c;hpb=2564ebd44babe2058bc1bb0e46a84c835aac7c44;p=fa-stable.git diff --git a/sales/includes/ui/sales_credit_ui.inc b/sales/includes/ui/sales_credit_ui.inc index ac9c932f..063af1b1 100644 --- a/sales/includes/ui/sales_credit_ui.inc +++ b/sales/includes/ui/sales_credit_ui.inc @@ -92,7 +92,7 @@ function display_credit_header(&$order) 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); @@ -176,7 +176,7 @@ function display_credit_items($title, &$order) $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()); @@ -344,4 +344,3 @@ function credit_options_controls($credit) //--------------------------------------------------------------------------------- -?> \ No newline at end of file