X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fdb%2Fsales_credit_db.inc;h=cdf86abfdccaa4ebaed845476777f990c618cb0f;hb=d92fb975635e81ed5bc61e0d27318511d36bf0be;hp=0fb76057b1d9e059dbfe548be44132032e73545f;hpb=90b3d069d96b99671af51726e2953352738abb75;p=fa-stable.git diff --git a/sales/includes/db/sales_credit_db.inc b/sales/includes/db/sales_credit_db.inc index 0fb76057..cdf86abf 100644 --- a/sales/includes/db/sales_credit_db.inc +++ b/sales/includes/db/sales_credit_db.inc @@ -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(); @@ -285,4 +287,3 @@ function add_gl_trans_credit_costs($order, $order_line, $credit_no, $date_, return $total; } -?> \ No newline at end of file