From 1013a61ff308f086aa4b44d02c1fd959dbd4cf8c Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 16 May 2013 04:01:13 +0530 Subject: [PATCH] -- fixed status msg for CRM-12492 ---------------------------------------- * CRM-12492: Prevent deletion of last AR financial account, and of A/R relationship for Financial Type http://issues.civicrm.org/jira/browse/CRM-12492 --- CRM/Financial/Form/FinancialAccount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Financial/Form/FinancialAccount.php b/CRM/Financial/Form/FinancialAccount.php index acfb9334eb..7baee20876 100644 --- a/CRM/Financial/Form/FinancialAccount.php +++ b/CRM/Financial/Form/FinancialAccount.php @@ -68,7 +68,7 @@ class CRM_Financial_Form_FinancialAccount extends CRM_Contribute_Form { && !CRM_Financial_BAO_FinancialAccount::getARAccounts($this->_id, array_search('Asset', $financialAccountType))) { $this->_isARFlag = TRUE; if ($this->_action & CRM_Core_Action::DELETE) { - CRM_Core_Session::setStatus(ts("Financial account with 'AR' account cannot be deleted."), + CRM_Core_Session::setStatus(ts("The selected financial account cannot be deleted because least one Accounts Receivable type account is required (to ensure that accounting transactions are in balance)."), '', 'error'); CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/financial/financialAccount', "reset=1&action=browse")); -- 2.25.1