$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")));
// 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)
{