107 lines
3.7 KiB
SQL
107 lines
3.7 KiB
SQL
-- IDEMPIERE-5474 Fixed Assets don't allow depreciation on 18 months
|
|
SELECT register_migration_script('202211112236_IDEMPIERE-5474.sql') FROM dual;
|
|
|
|
SET SQLBLANKLINES ON
|
|
SET DEFINE OFF
|
|
|
|
-- Nov 11, 2022, 10:36:25 PM CET
|
|
UPDATE AD_Column SET AD_Reference_ID=22,Updated=TO_TIMESTAMP('2022-11-11 22:36:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56032
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:36:27 PM CET
|
|
ALTER TABLE I_Asset MODIFY UseLifeYears NUMBER DEFAULT NULL
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:36:35 PM CET
|
|
UPDATE AD_Column SET AD_Reference_ID=22,Updated=TO_TIMESTAMP('2022-11-11 22:36:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55863
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:36:36 PM CET
|
|
ALTER TABLE A_Asset_Change MODIFY UseLifeYears NUMBER DEFAULT NULL
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:36:42 PM CET
|
|
UPDATE AD_Column SET AD_Reference_ID=22,Updated=TO_TIMESTAMP('2022-11-11 22:36:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55772
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:36:43 PM CET
|
|
ALTER TABLE A_Asset_Group_Acct MODIFY UseLifeYears NUMBER DEFAULT NULL
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:36:49 PM CET
|
|
UPDATE AD_Column SET AD_Reference_ID=22, IsToolbarButton='N',Updated=TO_TIMESTAMP('2022-11-11 22:36:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59281
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:36:50 PM CET
|
|
ALTER TABLE A_Depreciation_Workfile MODIFY UseLifeYears NUMBER DEFAULT 0
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:36:50 PM CET
|
|
UPDATE A_Depreciation_Workfile SET UseLifeYears=0 WHERE UseLifeYears IS NULL
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:37:01 PM CET
|
|
UPDATE AD_Column SET AD_Reference_ID=22,Updated=TO_TIMESTAMP('2022-11-11 22:37:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=8046
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:37:02 PM CET
|
|
ALTER TABLE A_Asset MODIFY UseLifeYears NUMBER DEFAULT NULL
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:42:59 PM CET
|
|
UPDATE AD_Column SET AD_Reference_ID=22, IsToolbarButton='N',Updated=TO_TIMESTAMP('2022-11-11 22:42:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59408
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:43:01 PM CET
|
|
ALTER TABLE A_Asset_Group_Acct MODIFY UseLifeYears_F NUMBER DEFAULT 0
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:43:01 PM CET
|
|
UPDATE A_Asset_Group_Acct SET UseLifeYears_F=0 WHERE UseLifeYears_F IS NULL
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:43:08 PM CET
|
|
UPDATE AD_Column SET AD_Reference_ID=22, IsToolbarButton='N',Updated=TO_TIMESTAMP('2022-11-11 22:43:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59283
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:43:09 PM CET
|
|
ALTER TABLE A_Depreciation_Workfile MODIFY UseLifeYears_F NUMBER DEFAULT 0
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:43:09 PM CET
|
|
UPDATE A_Depreciation_Workfile SET UseLifeYears_F=0 WHERE UseLifeYears_F IS NULL
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:44:51 PM CET
|
|
UPDATE AD_Column SET AD_Reference_ID=22, IsToolbarButton='N',Updated=TO_TIMESTAMP('2022-11-11 22:44:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59279
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:44:52 PM CET
|
|
ALTER TABLE A_Depreciation_Workfile MODIFY A_Asset_Life_Years_F NUMBER DEFAULT 0
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:44:52 PM CET
|
|
UPDATE A_Depreciation_Workfile SET A_Asset_Life_Years_F=0 WHERE A_Asset_Life_Years_F IS NULL
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:44:59 PM CET
|
|
UPDATE AD_Column SET AD_Reference_ID=22,Updated=TO_TIMESTAMP('2022-11-11 22:44:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55997
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:45:01 PM CET
|
|
ALTER TABLE I_Asset MODIFY A_Asset_Life_Years NUMBER DEFAULT NULL
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:45:06 PM CET
|
|
UPDATE AD_Column SET AD_Reference_ID=22,Updated=TO_TIMESTAMP('2022-11-11 22:45:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55418
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:45:08 PM CET
|
|
ALTER TABLE A_Depreciation_Workfile MODIFY A_Asset_Life_Years NUMBER DEFAULT 0
|
|
;
|
|
|
|
-- Nov 11, 2022, 10:45:08 PM CET
|
|
UPDATE A_Depreciation_Workfile SET A_Asset_Life_Years=0 WHERE A_Asset_Life_Years IS NULL
|
|
;
|
|
|