SQL Retrievals for Hierarchical ChartofAccounts

Fixing Naming Convention for COA options

Tag ID for GLAccounts
This commit is contained in:
goutham-M
2013-05-08 20:15:06 +05:30
parent 0d18ddc034
commit 8b4de075a2
13 changed files with 216 additions and 25 deletions
@@ -0,0 +1 @@
ALTER TABLE `acc_gl_account` ADD COLUMN `hierarchy` varchar(50) AFTER `parent_id`;
@@ -0,0 +1,5 @@
ALTER TABLE `acc_gl_account`
ADD COLUMN `tag_id` INT(11) NULL DEFAULT NULL AFTER `classification_enum`,
ADD INDEX `FKGLACC000000002` (`tag_id`),
ADD CONSTRAINT `FKGLACC000000002` FOREIGN KEY (`tag_id`) REFERENCES `m_code_value` (`id`);
INSERT into m_code(`code_name`,`is_system_defined`) values ('AssetAccountTags',1),('LiabilityAccountTags',1),('EquityAccountTags',1),('IncomeAccountTags',1),('ExpenseAccountTags',1);