Global variabel, $def_print_destination, config.php can be set to 0 or 1
[fa-stable.git] / purchasing / includes / ui / invoice_ui.inc
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();