Re: Bank Account Payment Entry / gl/gl_bank.php?NewPayment=Yes
4. gl/includes/db/gl_db_banking.inc
function write_bank_transaction($trans_type, $trans_no, $from_account, $items, $date_,
$person_type_id, $person_id, $person_detail_id, $ref, $check_no, $source_ref ,$memo_, $use_transaction=true, $settled_amount=null)
{
global $Refs, $SysPrefs;// we can only handle type 1 (payment)and type 2 (deposit)
if ($trans_type != ST_BANKPAYMENT && $trans_type != ST_BANKDEPOSIT)
display_db_error("Invalid type ($trans_type) sent to add_bank_transaction");$do_exchange_variance = false;
$exchanged = false;
if ($use_transaction)
begin_transaction();$args = func_get_args(); if (count($args) < 11) $args[] = true;
$args = (object)array_combine(array('trans_type', 'trans_no', 'from_account', 'items', 'date_',
'person_type_id', 'person_id', 'person_detail_id', 'ref','check_no','source_ref', 'memo_', 'use_transaction', 'settled_amount'),
$args);