IDEMPIERE-362 Hide things that don't work on iDempiere / Fix problem reported by Michael Hüttemann

http://red1.org/adempiere/viewtopic.php?f=31&t=1693&p=8084#p8084
This commit is contained in:
Carlos Ruiz 2012-10-02 14:52:05 -05:00
parent c7d1ef47e0
commit 1d5a201e7f
2 changed files with 150 additions and 0 deletions

View File

@ -0,0 +1,75 @@
-- IDEMPIERE-362 Hide things that don't work on iDempiere
ALTER TABLE c_acctschema_default MODIFY ( b_expense_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( b_revaluationgain_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( b_revaluationloss_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( b_settlementgain_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( b_settlementloss_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( b_unidentified_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( e_expense_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( e_prepayment_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( notinvoicedreceivables_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( notinvoicedrevenue_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( t_liability_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( t_receivables_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( w_invactualadjust_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( w_inventory_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( w_revaluation_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_default MODIFY ( withholding_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_gl MODIFY ( incomesummary_acct NUMBER(10) NULL );
ALTER TABLE c_acctschema_gl MODIFY ( retainedearning_acct NUMBER(10) NULL );
ALTER TABLE c_bankaccount_acct MODIFY ( b_expense_acct NUMBER(10) NULL );
ALTER TABLE c_bankaccount_acct MODIFY ( b_revaluationgain_acct NUMBER(10) NULL );
ALTER TABLE c_bankaccount_acct MODIFY ( b_revaluationloss_acct NUMBER(10) NULL );
ALTER TABLE c_bankaccount_acct MODIFY ( b_settlementgain_acct NUMBER(10) NULL );
ALTER TABLE c_bankaccount_acct MODIFY ( b_settlementloss_acct NUMBER(10) NULL );
ALTER TABLE c_bankaccount_acct MODIFY ( b_unidentified_acct NUMBER(10) NULL );
ALTER TABLE c_bp_group_acct MODIFY ( notinvoicedreceivables_acct NUMBER(10) NULL );
ALTER TABLE c_bp_group_acct MODIFY ( notinvoicedrevenue_acct NUMBER(10) NULL );
ALTER TABLE c_currency_acct MODIFY ( realizedgain_acct NUMBER(10) NULL );
ALTER TABLE c_currency_acct MODIFY ( realizedloss_acct NUMBER(10) NULL );
ALTER TABLE c_currency_acct MODIFY ( unrealizedgain_acct NUMBER(10) NULL );
ALTER TABLE c_currency_acct MODIFY ( unrealizedloss_acct NUMBER(10) NULL );
ALTER TABLE c_tax_acct MODIFY ( t_liability_acct NUMBER(10) NULL );
ALTER TABLE c_tax_acct MODIFY ( t_receivables_acct NUMBER(10) NULL );
ALTER TABLE m_warehouse_acct MODIFY ( w_invactualadjust_acct NUMBER(10) NULL );
ALTER TABLE m_warehouse_acct MODIFY ( w_inventory_acct NUMBER(10) NULL );
ALTER TABLE m_warehouse_acct MODIFY ( w_revaluation_acct NUMBER(10) NULL );
SELECT register_migration_script('922_IDEMPIERE-362.sql') FROM dual
;

View File

@ -0,0 +1,75 @@
-- IDEMPIERE-362 Hide things that don't work on iDempiere
ALTER TABLE c_acctschema_default ALTER b_expense_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER b_revaluationgain_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER b_revaluationloss_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER b_settlementgain_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER b_settlementloss_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER b_unidentified_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER e_expense_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER e_prepayment_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER notinvoicedreceivables_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER notinvoicedrevenue_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER t_liability_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER t_receivables_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER w_invactualadjust_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER w_inventory_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER w_revaluation_acct DROP NOT NULL;
ALTER TABLE c_acctschema_default ALTER withholding_acct DROP NOT NULL;
ALTER TABLE c_acctschema_gl ALTER incomesummary_acct DROP NOT NULL;
ALTER TABLE c_acctschema_gl ALTER retainedearning_acct DROP NOT NULL;
ALTER TABLE c_bankaccount_acct ALTER b_expense_acct DROP NOT NULL;
ALTER TABLE c_bankaccount_acct ALTER b_revaluationgain_acct DROP NOT NULL;
ALTER TABLE c_bankaccount_acct ALTER b_revaluationloss_acct DROP NOT NULL;
ALTER TABLE c_bankaccount_acct ALTER b_settlementgain_acct DROP NOT NULL;
ALTER TABLE c_bankaccount_acct ALTER b_settlementloss_acct DROP NOT NULL;
ALTER TABLE c_bankaccount_acct ALTER b_unidentified_acct DROP NOT NULL;
ALTER TABLE c_bp_group_acct ALTER notinvoicedreceivables_acct DROP NOT NULL;
ALTER TABLE c_bp_group_acct ALTER notinvoicedrevenue_acct DROP NOT NULL;
ALTER TABLE c_currency_acct ALTER realizedgain_acct DROP NOT NULL;
ALTER TABLE c_currency_acct ALTER realizedloss_acct DROP NOT NULL;
ALTER TABLE c_currency_acct ALTER unrealizedgain_acct DROP NOT NULL;
ALTER TABLE c_currency_acct ALTER unrealizedloss_acct DROP NOT NULL;
ALTER TABLE c_tax_acct ALTER t_liability_acct DROP NOT NULL;
ALTER TABLE c_tax_acct ALTER t_receivables_acct DROP NOT NULL;
ALTER TABLE m_warehouse_acct ALTER w_invactualadjust_acct DROP NOT NULL;
ALTER TABLE m_warehouse_acct ALTER w_inventory_acct DROP NOT NULL;
ALTER TABLE m_warehouse_acct ALTER w_revaluation_acct DROP NOT NULL;
SELECT register_migration_script('922_IDEMPIERE-362.sql') FROM dual
;