Merged last changes from stable.
[fa-stable.git] / sales / includes / db / sales_credit_db.inc
index 0fb76057b1d9e059dbfe548be44132032e73545f..0330efce8a9c7b39d6959369d232ff4afbc7d93a 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();