Customer Payments, Payments to Supplier: improved readbility and multiply cleanups...
[fa-stable.git] / sales / includes / db / sales_invoice_db.inc
index a1f6dd5cc62697364448f6b99d288d95d627a4d4..cd80b2cf939830a4d441f1cbb3711ddabf89d62d 100644 (file)
@@ -32,6 +32,8 @@ function write_sales_invoice(&$invoice)
 
        $customer = get_customer($invoice->customer_id);
 
+       add_new_exchange_rate($customer['curr_code'], $date_, $invoice->ex_rate);
+
        // offer price values without freight costs
        $items_total = $invoice->get_items_total_dispatch();
        $freight_tax = $invoice->get_shipping_tax();