Cleanups
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Sun, 15 Apr 2012 11:43:04 +0000 (13:43 +0200)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Sun, 15 Apr 2012 11:43:04 +0000 (13:43 +0200)
gl/gl_bank.php
gl/includes/db/gl_db_accounts.inc

index 58479d5bee8bed7f6ccd39efda69f8227fa64251..3c8897c4299ddb11fae598939d679cead4f6651c 100644 (file)
@@ -119,7 +119,7 @@ if (isset($_GET['UpdatedDep']))
        $trans_no = $_GET['UpdatedDep'];
        $trans_type = ST_BANKDEPOSIT;
 
-       display_notification_centered(_("Deposit $trans_no has been modified"));
+       display_notification_centered(sprintf(_("Deposit %d has been modified"), $trans_no));
 
        display_note(get_gl_view_str($trans_type, $trans_no, _("&View the GL Postings for this Deposit")));
 
index 6a41188c225c7847860a56cb97cc21b70ef77f62..3cddd5e9a1227728e4208c31815c573d1e42cb00 100644 (file)
@@ -195,15 +195,15 @@ function gl_account_in_quick_entry_lines($acc)
 //     Returns n>0 when account is AR, n<0 when account is AP
 //  (priority for AR accounts)
 //
- function is_subledger_account($account)
- {
+function is_subledger_account($account)
+{
        $sql = "SELECT 1 FROM ".TB_PREF."cust_branch WHERE receivables_account=".db_escape($account)
        ." UNION SELECT -1 FROM ".TB_PREF."suppliers WHERE payable_account=".db_escape($account);
 
-       $result = db_query($sql,"Couldn't test AR/AP account");
-       $myrow = db_fetch_row($result);
-       return $myrow[0];
- }
+       $result = db_query($sql,"Couldn't test AR/AP account");
+       $myrow = db_fetch_row($result);
+       return $myrow[0];
+}
 
 function get_subaccount_name($code_id, $person_id)
 {