Fixed reference display in credit note edition.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 30 Oct 2010 13:32:00 +0000 (13:32 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 30 Oct 2010 13:32:00 +0000 (13:32 +0000)
sales/includes/ui/sales_credit_ui.inc

index a246d50d33fa189b4fcc103ea6d10fe680e64a02..ac9c932f851a87f8cad127a22615bba9c5b4f71c 100644 (file)
@@ -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))