X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fincludes%2Fdb%2Fgl_db_banking.inc;h=a2cf9f78db893d7426ac7769d9b4a0e5f83d507f;hb=2917915beba9540193b520f1de59de9e6a33be56;hp=a7ad5576093a7f8501f923cf71f59e015d5029d0;hpb=3178545262f658085cb8a250a2195246e05c8213;p=fa-stable.git diff --git a/gl/includes/db/gl_db_banking.inc b/gl/includes/db/gl_db_banking.inc index a7ad5576..a2cf9f78 100644 --- a/gl/includes/db/gl_db_banking.inc +++ b/gl/includes/db/gl_db_banking.inc @@ -237,8 +237,7 @@ function add_bank_transfer($from_account, $to_account, $date_, add_bank_trans($trans_type, $trans_no, $from_account, $ref, $date_, -($amount + $charge), - PT_MISC, $person_id, $currency, - "Cannot insert a source bank transaction"); + PT_MISC, $person_id, $currency); if ($SysPrefs->auto_currency_revaluation()) { $trans_no1 = get_next_trans_no(ST_JOURNAL); @@ -270,8 +269,7 @@ function add_bank_transfer($from_account, $to_account, $date_, 0, 0, _("Exchange Variance"), -$total); add_bank_trans($trans_type, $trans_no, $to_account, $ref, - $date_, $to_amount, PT_MISC, $person_id, - $to_currency, "Cannot insert a destination bank transaction"); + $date_, $to_amount, PT_MISC, $person_id); if ($SysPrefs->auto_currency_revaluation()) { @@ -467,8 +465,7 @@ function write_bank_transaction($trans_type, $trans_no, $from_account, $items, $ add_bank_trans($trans_type, $trans_no, $from_account, $ref, $date_, -$total_amount, $person_type_id, $person_id, - $currency, - "Cannot insert a source bank transaction"); + $currency); $total = 0; foreach ($items->gl_items as $gl_item) { @@ -489,8 +486,7 @@ function write_bank_transaction($trans_type, $trans_no, $from_account, $items, $ { add_bank_trans($trans_type, $trans_no, $is_bank_to, $ref, $date_, $gl_item->amount, - $person_type_id, $person_id, $currency, - "Cannot insert a destination bank transaction"); + $person_type_id, $person_id, $currency); if ($do_exchange_variance) { add_exchange_variation($trans_no1, $date_, $is_bank_to, $gl_item->code_id,