$inv = get_customer_trans($_GET['SInvoice'], ST_SALESINVOICE);
$dflt_act = get_default_bank_account($inv['curr_code']);
$_POST['bank_account'] = $dflt_act['id'];
$inv = get_customer_trans($_GET['SInvoice'], ST_SALESINVOICE);
$dflt_act = get_default_bank_account($inv['curr_code']);
$_POST['bank_account'] = $dflt_act['id'];