X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fui%2Fsales_credit_ui.inc;h=0bbd100e01fb795785315d729245126e48b29d44;hb=e39803c300ad0071a20d0c1977b5db6d79aa91c4;hp=a246d50d33fa189b4fcc103ea6d10fe680e64a02;hpb=ded579b7b80fd9eb3bd81cd9c5ff05f0b9229cf6;p=fa-stable.git diff --git a/sales/includes/ui/sales_credit_ui.inc b/sales/includes/ui/sales_credit_ui.inc index a246d50d..0bbd100e 100644 --- a/sales/includes/ui/sales_credit_ui.inc +++ b/sales/includes/ui/sales_credit_ui.inc @@ -17,7 +17,7 @@ function display_credit_header(&$order) { global $Ajax, $Refs; - start_outer_table(TABLESTYLE, "width=80%"); + start_outer_table(TABLESTYLE, "width='80%'"); table_section(1); $customer_error = ""; @@ -80,11 +80,11 @@ function display_credit_header(&$order) 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)) @@ -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); @@ -163,7 +163,7 @@ function display_credit_items($title, &$order) display_heading($title); div_start('items_table'); - start_table(TABLESTYLE, "width=90%"); + start_table(TABLESTYLE, "width='90%'"); $th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"), _("Price"), _("Discount %"), _("Total"),''); @@ -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