BF [ 2153188 ] M_Product.LowLevel should be set to 0 for new products

This commit is contained in:
teo_sarca 2008-10-08 13:18:49 +00:00
parent 2ef0681203
commit cf9d2cd6cf
3 changed files with 41 additions and 0 deletions

View File

@ -134,6 +134,7 @@ public class MProduct extends X_M_Product
setIsSelfService(true);
setIsExcludeAutoDelivery(false);
setProcessing (false); // N
setLowLevel(0);
}
} // MProduct

View File

@ -0,0 +1,20 @@
-- 08.10.2008 16:13:52 EEST
--
UPDATE AD_Column SET DefaultValue='0', IsMandatory='Y',Updated=TO_DATE('2008-10-08 16:13:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53408
;
-- 08.10.2008 16:13:55 EEST
--
ALTER TABLE M_Product MODIFY LowLevel NUMBER(10) DEFAULT 0
;
-- 08.10.2008 16:13:56 EEST
--
UPDATE M_Product SET LowLevel=0 WHERE LowLevel IS NULL
;
-- 08.10.2008 16:13:56 EEST
--
ALTER TABLE M_Product MODIFY LowLevel NOT NULL
;

View File

@ -0,0 +1,20 @@
-- 08.10.2008 16:13:52 EEST
--
UPDATE AD_Column SET DefaultValue='0', IsMandatory='Y',Updated=TO_TIMESTAMP('2008-10-08 16:13:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53408
;
-- 08.10.2008 16:13:55 EEST
--
insert into t_alter_column values('m_product','LowLevel','NUMERIC(10)',null,'0')
;
-- 08.10.2008 16:13:56 EEST
--
UPDATE M_Product SET LowLevel=0 WHERE LowLevel IS NULL
;
-- 08.10.2008 16:13:56 EEST
--
insert into t_alter_column values('m_product','LowLevel',null,'NOT NULL',null)
;