X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fincludes%2Fui%2Finvoice_ui.inc;h=ef4b812846d63dc7e4cf756ca729ac444a4c38f9;hb=72998423b6010dfd9a07025f836eef56736a7037;hp=e21c1adf02f1b03cd1f2954f6e10a06db5acd38d;hpb=45aa0f7f7e8a8683305bbdbc58fdb3b791d2115e;p=fa-stable.git diff --git a/purchasing/includes/ui/invoice_ui.inc b/purchasing/includes/ui/invoice_ui.inc index e21c1adf..ef4b8128 100644 --- a/purchasing/includes/ui/invoice_ui.inc +++ b/purchasing/includes/ui/invoice_ui.inc @@ -146,14 +146,12 @@ function invoice_header(&$supp_trans) set_global_supplier($_POST['supplier_id']); - $supplier_currency = get_supplier_currency($supp_trans->supplier_id); - $company_currency = get_company_currency(); - if ($supplier_currency != $company_currency) + if ($supp_trans->currency != $company_currency) { - label_row(_("Supplier's Currency:"), "" . $supplier_currency . ""); - exchange_rate_display($company_currency, $supplier_currency, $_POST['tran_date']); + label_row(_("Supplier's Currency:"), "" . $supp_trans->currency . ""); + exchange_rate_display($company_currency, $supp_trans->currency, $_POST['tran_date']); } label_row(_("Tax Group:"), $supp_trans->tax_description);