Supplier transactions now show supplier reference for PO Deliveries.
[fa-stable.git] / purchasing / includes / db / invoice_db.inc
index 1d729ea53a117b5c31d95cf788e74bc7fef01363..83e9f7f83a4dfa6c1453f8d2b4aa6f8f251187f5 100644 (file)
@@ -124,6 +124,8 @@ function add_supp_invoice($supp_trans, $invoice_no=0) // do not receive as ref b
 
        $supplier = get_supplier($supp_trans->supplier_id);
 
+       add_new_exchange_rate($supplier['curr_code'], $supp_trans->tran_date, $supp_trans->ex_rate);
+
     foreach ($taxes as $n => $taxitem)
     {
                $taxes[$n]['Value'] =  round2($taxitem['Value'], user_price_dec());