X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fbank_transfer.php;h=0308eb7562e201187c598945f10118237d4de9a5;hb=e5f8f3bdf32148d36f3406728bbd5612f4217f67;hp=1f7cbe3efec1c028b345f3254ebced02e8fda0b7;hpb=2d23368483326fc5229a37e715de0769dcee883a;p=fa-stable.git diff --git a/gl/bank_transfer.php b/gl/bank_transfer.php index 1f7cbe3e..0308eb75 100644 --- a/gl/bank_transfer.php +++ b/gl/bank_transfer.php @@ -71,6 +71,10 @@ function gl_payment_controls() date_row(_("Transfer Date:"), 'DatePaid', '', null, 0, 0, 0, null, true); + ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_BANKTRANSFER)); + + table_section(2); + $from_currency = get_bank_account_currency($_POST['FromBankAccount']); $to_currency = get_bank_account_currency($_POST['ToBankAccount']); if ($from_currency != "" && $to_currency != "" && $from_currency != $to_currency) @@ -86,10 +90,6 @@ function gl_payment_controls() amount_row(_("Bank Charge:"), 'charge'); } - table_section(2); - - ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_BANKTRANSFER)); - textarea_row(_("Memo:"), 'memo_', null, 40,4); end_outer_table(1); // outer table @@ -134,7 +134,7 @@ function check_valid_entries() $amnt_tr = input_num('charge') + input_num('amount'); - if ($limit != null && ($limit < $amnt_tr))) + if ($limit != null && ($limit < $amnt_tr)) { display_error(sprintf(_("The total bank amount exceeds allowed limit (%s) for source account."), price_format($limit))); set_focus('amount');