Update Accounting Rule

Format Selected Options for UI

Add required database fields for Accounting rule

Cleanup Accounting Rule Update

Format outcoming json for accounting rule
This commit is contained in:
mifoscontributer
2013-06-06 18:42:00 +05:30
parent 06f2da8443
commit 5bff72fe87
20 changed files with 744 additions and 483 deletions
@@ -0,0 +1,6 @@
ALTER TABLE `acc_accounting_rule`
ADD COLUMN `allow_multiple_debits` TINYINT(1) NOT NULL DEFAULT '0' AFTER `debit_account_id`,
ADD COLUMN `allow_multiple_credits` TINYINT(1) NOT NULL DEFAULT '0' AFTER `credit_account_id`;
ALTER TABLE acc_rule_tags
ADD UNIQUE KEY `UNIQUE_ACCOUNT_RULE_TAGS` (`acc_rule_id`,`tag_id`,`acc_type_enum`);