update default account for tracking inter branch transfers

This commit is contained in:
Vishwas Babu A J
2014-06-16 13:08:37 -07:00
parent 80439d6e6d
commit 5ef940627c
@@ -2,4 +2,15 @@ update m_permission set entity_name="FINANCIALACTIVITYACCOUNT" where entity_name
update m_permission set code="READ_FINANCIALACTIVITYACCOUNT" where code="READ_OFFICEGLACCOUNT";
update m_permission set code="CREATE_FINANCIALACTIVITYACCOUNT" where code="CREATE_OFFICEGLACCOUNT";
update m_permission set code="DELETE_FINANCIALACTIVITYACCOUNT" where code="DELETE_OFFICEGLACCOUNT";
update m_permission set code="UPDATE_FINANCIALACTIVITYACCOUNT" where code="UPDATE_OFFICEGLACCOUNT";
update m_permission set code="UPDATE_FINANCIALACTIVITYACCOUNT" where code="UPDATE_OFFICEGLACCOUNT";
/*Default Account for tracking account transfer*/
INSERT INTO `acc_gl_account` (`name`, `hierarchy`, `gl_code`,`account_usage`, `classification_enum`,`description`)
select 'Liability Transfer (Temp)', '.', '220004-Temp', 1, 2,'Temporary Liability account to track Account Transfers'
FROM m_product_loan WHERE accounting_type != 1
limit 1;
INSERT INTO `acc_gl_financial_activity_account` (`gl_account_id`,`financial_activity_type`)
select (select max(id) from acc_gl_account where classification_enum=2 and account_usage=1 LIMIT 1), 200
FROM m_product_loan WHERE accounting_type != 1
limit 1;