Supplier transactions now show supplier reference for PO Deliveries.
[fa-stable.git] / purchasing / includes / ui / invoice_ui.inc
index 3421d1fb6b014f5bb5baf009cb17497a70b08891..ff9c84680d428b9ffdd25f1281022cec57d87265 100644 (file)
@@ -82,7 +82,7 @@ function invoice_header(&$supp_trans)
        {
                $trans = get_supp_trans($_POST['invoice_no'], ST_SUPPINVOICE);
                $_POST['supplier_id'] = $trans['supplier_id'];
-               $supp = $trans['supplier_name'] . " - " . $trans['SupplierCurrCode'];
+               $supp = $trans['supplier_name'] . " - " . $trans['curr_code'];
                label_row(_("Supplier:"), $supp.hidden('supplier_id', $_POST['supplier_id'], false));
        }       
        else
@@ -137,7 +137,7 @@ function invoice_header(&$supp_trans)
        if ($supplier_currency != $company_currency)
        {
         label_row(_("Supplier's Currency:"), "<b>" . $supplier_currency . "</b>");
-               exchange_rate_display($supplier_currency, $company_currency, $_POST['tran_date']);
+               exchange_rate_display($company_currency, $supplier_currency, $_POST['tran_date']);
        }
 
        label_row(_("Tax Group:"), $supp_trans->tax_description);