Sales Delivery, Direct Invoice and Sales Credit: added exchange rate edition/storage...
[fa-stable.git] / sales / includes / db / sales_credit_db.inc
index 2efb8d87a6c0d6cf44fb3c27c77ee0e4f9ae7240..e7b97e55d789648f2c763bbc48aa54f3eb292397 100644 (file)
@@ -41,6 +41,8 @@ function write_credit_note(&$credit_note, $write_off_acc)
        $company_data = get_company_prefs();
        $branch_data = get_branch_accounts($credit_note->Branch);
 
+       add_new_exchange_rate(get_customer_currency($credit_note->customer_id), $credit_date, $credit_note->ex_rate);
+
        $credit_note_total = $credit_note->get_items_total_dispatch();
        $freight_tax = $credit_note->get_shipping_tax();