Missing 'Set Global Supplier' in invoice_ui.inc invoice_header
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 6 Mar 2010 14:57:24 +0000 (14:57 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 6 Mar 2010 14:57:24 +0000 (14:57 +0000)
CHANGELOG.txt
purchasing/includes/ui/invoice_ui.inc

index 770789f857fb5d184a33e70fb2ed462881490f8d..dd78f84ff8098d9dcd95081c055c50fe04a83714 100644 (file)
@@ -22,6 +22,8 @@ $ -> Affected files
 06-Mar-2010 Joe Hunt
 # Bug in Text(Col)WrapLines. Doesn't break on space.
 $ /reporting/includes/pdf_report.inc
+# Missing 'Set Global Supplier' in invoice_ui.inc
+$ /purchasing/includes/ui/invoice_ui.inc
 
 ------------------------------- Release 2.2.7 ----------------------------------
 05-Mar-2010 Joe Hunt
index bc03ee82100b9a932e2775fd6fa2a01b7eedac25..94f4d916ee4bd705954f870adb4df34db5ecb2b7 100644 (file)
@@ -118,6 +118,8 @@ function invoice_header(&$supp_trans)
 
        table_section(3, "33%");
 
+       set_global_supplier($_POST['supplier_id']);
+
        $supplier_currency = get_supplier_currency($supp_trans->supplier_id);
 
        $company_currency = get_company_currency();