IDEMPIERE-1770 Fix view / register migration script
This commit is contained in:
parent
53d403bf97
commit
a15506d5df
|
@ -22,7 +22,6 @@ UPDATE AD_Field SET IsReadOnly='N',Updated=TO_DATE('2014-04-14 18:15:24','YYYY-M
|
|||
UPDATE AD_Field SET IsReadOnly='N',Updated=TO_DATE('2014-04-14 18:15:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12196
|
||||
;
|
||||
|
||||
|
||||
-- Apr 14, 2014 7:48:10 PM IST
|
||||
-- IDEMPIERE-1770 Making Attribute tab Manually editable
|
||||
UPDATE AD_Column SET DefaultValue='@AD_Org_ID@',Updated=TO_DATE('2014-04-14 19:48:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=13325
|
||||
|
@ -36,7 +35,6 @@ UPDATE AD_Column SET IsParent='N',Updated=TO_DATE('2014-04-14 19:54:02','YYYY-MM
|
|||
UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_DATE('2014-04-14 19:56:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208342
|
||||
;
|
||||
|
||||
|
||||
-- Apr 15, 2014 4:26:24 PM IST
|
||||
-- IDEMPIERE-1770 Making Attribute tab Manually editable
|
||||
INSERT INTO AD_Tab (ImportFields,Processing,IsSingleRow,SeqNo,IsTranslationTab,IsSortTab,HasTree,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,Description,AD_Tab_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Table_ID,AD_Client_ID,AD_Window_ID,TreeDisplayedOn) VALUES ('N','N','Y',40,'N','N','N','N','N','Y','N',2,'d771d2e8-42a0-426e-ba58-c4f459bbbc1e','D','Attributes','Product Instance Attribute Material Allocation',200137,0,TO_DATE('2014-04-15 16:26:23','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-04-15 16:26:23','YYYY-MM-DD HH24:MI:SS'),100,'Y',762,0,184,'B')
|
||||
|
@ -133,7 +131,6 @@ UPDATE AD_Field SET XPosition=4,Updated=TO_DATE('2014-04-15 16:53:49','YYYY-MM-D
|
|||
UPDATE AD_Field SET XPosition=4,Updated=TO_DATE('2014-04-15 16:54:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202861
|
||||
;
|
||||
|
||||
|
||||
-- Apr 16, 2014 6:24:54 PM IST
|
||||
-- IDEMPIERE-1770 Making Attribute tab Manually editable
|
||||
INSERT INTO AD_Tab (ImportFields,Processing,IsSingleRow,SeqNo,IsTranslationTab,IsSortTab,HasTree,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,Description,AD_Tab_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Table_ID,AD_Client_ID,AD_Window_ID,TreeDisplayedOn) VALUES ('N','N','Y',40,'N','N','N','N','N','Y','N',2,'8cf5abeb-4146-4581-b353-24ee510bcaff','D','Attributes','Product Instance Attribute Material Allocation',200138,0,TO_DATE('2014-04-16 18:24:52','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-04-16 18:24:52','YYYY-MM-DD HH24:MI:SS'),100,'Y',762,0,53097,'B')
|
||||
|
@ -222,7 +219,6 @@ UPDATE AD_Tab SET SeqNo=40,Updated=TO_DATE('2014-04-16 18:30:27','YYYY-MM-DD HH2
|
|||
UPDATE AD_Tab SET SeqNo=60,Updated=TO_DATE('2014-04-16 18:30:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53275
|
||||
;
|
||||
|
||||
|
||||
-- Apr 16, 2014 7:52:20 PM IST
|
||||
-- IDEMPIERE-1770 Making Attribute tab Manually editable
|
||||
UPDATE AD_Tab SET IsReadOnly='N', IsInsertRecord='Y',Updated=TO_DATE('2014-04-16 19:52:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53279
|
||||
|
@ -256,32 +252,5 @@ UPDATE AD_Field SET XPosition=4,Updated=TO_DATE('2014-04-16 20:16:21','YYYY-MM-D
|
|||
UPDATE AD_Field SET XPosition=1,Updated=TO_DATE('2014-04-16 20:17:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57943
|
||||
;
|
||||
|
||||
|
||||
create view M_InoutLineMA_Returned as
|
||||
SELECT sma.m_inoutline_id,
|
||||
sma.m_attributesetinstance_id,
|
||||
sma.ad_client_id,
|
||||
sma.ad_org_id,
|
||||
sma.isactive,
|
||||
sma.created,
|
||||
sma.createdby,
|
||||
sma.updated,
|
||||
sma.updatedby,
|
||||
sma.movementqty,
|
||||
sma.m_inoutlinema_uu,
|
||||
sma.datematerialpolicy,
|
||||
sma.isautogenerated,
|
||||
sum (crma.movementqty) returnedQty
|
||||
FROM M_InoutLineMA sma inner join M_InoutLine sl on (sma.M_InoutLine_ID =sl.M_InoutLine_ID)
|
||||
inner join M_InOut sio on (sio.M_InOut_ID=sl.M_InOut_ID) left join M_RMALine rl on (rl.M_InOutLine_ID = sl.M_InOutLine_ID )
|
||||
left join M_InoutLine crl on (rl.M_RMALine_ID =crl.M_RMALine_ID)
|
||||
left join M_inout cr on (cr.M_Inout_ID = crl.M_Inout_ID and not cr.docstatus in ('CO','RE'))
|
||||
left join M_InoutLineMA crma on (crma.M_InoutLine_Id = crl.M_InoutLine_ID and sma.M_AttributeSetInstance_ID=crma.M_AttributeSetInstance_ID)
|
||||
group by sma.M_AttributeSetInstance_ID,sma.m_inoutline_id,sma.ad_client_id,sma.ad_org_id,sma.isactive,sma.created,sma.createdby,sma.updated
|
||||
,sma.updatedby,sma.movementqty,sma.m_inoutlinema_uu,sma.datematerialpolicy;
|
||||
|
||||
|
||||
SELECT register_migration_script('201404170743_IDEMPIERE-1770.sql') FROM dual
|
||||
SELECT register_migration_script('201407010830_IDEMPIERE-1770.sql') FROM dual
|
||||
;
|
||||
|
||||
|
||||
|
|
|
@ -80,5 +80,5 @@ UPDATE AD_Field SET XPosition=4,Updated=TO_DATE('2014-04-20 12:46:49','YYYY-MM-D
|
|||
UPDATE AD_Field SET XPosition=1,Updated=TO_DATE('2014-04-20 12:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=55366
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201404200408_IDEMPIERE-1770.sql') FROM dual
|
||||
SELECT register_migration_script('201407010831_IDEMPIERE-1770.sql') FROM dual
|
||||
;
|
||||
|
|
|
@ -84,8 +84,28 @@ UPDATE AD_Column SET DefaultValue='1',Updated=TO_DATE('2014-05-29 23:06:10','YYY
|
|||
ALTER TABLE M_MovementLineMA MODIFY MovementQty NUMBER DEFAULT 1
|
||||
;
|
||||
|
||||
create view M_InoutLineMA_Returned as
|
||||
SELECT sma.m_inoutline_id,
|
||||
sma.m_attributesetinstance_id,
|
||||
sma.ad_client_id,
|
||||
sma.ad_org_id,
|
||||
sma.isactive,
|
||||
sma.created,
|
||||
sma.createdby,
|
||||
sma.updated,
|
||||
sma.updatedby,
|
||||
sma.movementqty,
|
||||
sma.m_inoutlinema_uu,
|
||||
sma.datematerialpolicy,
|
||||
sma.isautogenerated,
|
||||
sum (crma.movementqty) returnedQty
|
||||
FROM M_InoutLineMA sma inner join M_InoutLine sl on (sma.M_InoutLine_ID =sl.M_InoutLine_ID)
|
||||
inner join M_InOut sio on (sio.M_InOut_ID=sl.M_InOut_ID) left join M_RMALine rl on (rl.M_InOutLine_ID = sl.M_InOutLine_ID )
|
||||
left join M_InoutLine crl on (rl.M_RMALine_ID =crl.M_RMALine_ID)
|
||||
left join M_inout cr on (cr.M_Inout_ID = crl.M_Inout_ID and not cr.docstatus in ('CO','RE'))
|
||||
left join M_InoutLineMA crma on (crma.M_InoutLine_Id = crl.M_InoutLine_ID and sma.M_AttributeSetInstance_ID=crma.M_AttributeSetInstance_ID)
|
||||
group by sma.M_AttributeSetInstance_ID,sma.m_inoutline_id,sma.ad_client_id,sma.ad_org_id,sma.isactive,sma.created,sma.createdby,sma.updated
|
||||
,sma.updatedby,sma.movementqty,sma.m_inoutlinema_uu,sma.datematerialpolicy,sma.isautogenerated;
|
||||
|
||||
|
||||
|
||||
SELECT register_migration_script('201405310538_IDEMPIERE-1770.sql') FROM dual
|
||||
;
|
||||
SELECT register_migration_script('201407010832_IDEMPIERE-1770.sql') FROM dual
|
||||
;
|
||||
|
|
|
@ -249,29 +249,5 @@ UPDATE AD_Field SET XPosition=4,Updated=TO_TIMESTAMP('2014-04-16 20:16:21','YYYY
|
|||
UPDATE AD_Field SET XPosition=1,Updated=TO_TIMESTAMP('2014-04-16 20:17:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57943
|
||||
;
|
||||
|
||||
create view M_InoutLineMA_Returned as
|
||||
SELECT sma.m_inoutline_id,
|
||||
sma.m_attributesetinstance_id,
|
||||
sma.ad_client_id,
|
||||
sma.ad_org_id,
|
||||
sma.isactive,
|
||||
sma.created,
|
||||
sma.createdby,
|
||||
sma.updated,
|
||||
sma.updatedby,
|
||||
sma.movementqty,
|
||||
sma.m_inoutlinema_uu,
|
||||
sma.datematerialpolicy,
|
||||
sma.isautogenerated,
|
||||
sum (crma.movementqty) returnedQty
|
||||
FROM M_InoutLineMA sma inner join M_InoutLine sl on (sma.M_InoutLine_ID =sl.M_InoutLine_ID)
|
||||
inner join M_InOut sio on (sio.M_InOut_ID=sl.M_InOut_ID) left join M_RMALine rl on (rl.M_InOutLine_ID = sl.M_InOutLine_ID )
|
||||
left join M_InoutLine crl on (rl.M_RMALine_ID =crl.M_RMALine_ID)
|
||||
left join M_inout cr on (cr.M_Inout_ID = crl.M_Inout_ID and not cr.docstatus in ('CO','RE'))
|
||||
left join M_InoutLineMA crma on (crma.M_InoutLine_Id = crl.M_InoutLine_ID and sma.M_AttributeSetInstance_ID=crma.M_AttributeSetInstance_ID)
|
||||
group by sma.M_AttributeSetInstance_ID,sma.m_inoutline_id,sma.ad_client_id,sma.ad_org_id,sma.isactive,sma.created,sma.createdby,sma.updated
|
||||
,sma.updatedby,sma.movementqty,sma.m_inoutlinema_uu,sma.datematerialpolicy;
|
||||
|
||||
SELECT register_migration_script('201404170743_IDEMPIERE-1770.sql') FROM dual
|
||||
SELECT register_migration_script('201407010830_IDEMPIERE-1770.sql') FROM dual
|
||||
;
|
||||
|
||||
|
|
|
@ -76,5 +76,5 @@ UPDATE AD_Field SET XPosition=4,Updated=TO_TIMESTAMP('2014-04-20 12:46:49','YYYY
|
|||
UPDATE AD_Field SET XPosition=1,Updated=TO_TIMESTAMP('2014-04-20 12:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=55366
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201404200408_IDEMPIERE-1770.sql') FROM dual
|
||||
SELECT register_migration_script('201407010831_IDEMPIERE-1770.sql') FROM dual
|
||||
;
|
||||
|
|
|
@ -80,6 +80,28 @@ UPDATE AD_Column SET DefaultValue='1',Updated=TO_TIMESTAMP('2014-05-29 23:06:10'
|
|||
INSERT INTO t_alter_column values('m_movementlinema','MovementQty','NUMERIC',null,'1')
|
||||
;
|
||||
|
||||
create view M_InoutLineMA_Returned as
|
||||
SELECT sma.m_inoutline_id,
|
||||
sma.m_attributesetinstance_id,
|
||||
sma.ad_client_id,
|
||||
sma.ad_org_id,
|
||||
sma.isactive,
|
||||
sma.created,
|
||||
sma.createdby,
|
||||
sma.updated,
|
||||
sma.updatedby,
|
||||
sma.movementqty,
|
||||
sma.m_inoutlinema_uu,
|
||||
sma.datematerialpolicy,
|
||||
sma.isautogenerated,
|
||||
sum (crma.movementqty) returnedQty
|
||||
FROM M_InoutLineMA sma inner join M_InoutLine sl on (sma.M_InoutLine_ID =sl.M_InoutLine_ID)
|
||||
inner join M_InOut sio on (sio.M_InOut_ID=sl.M_InOut_ID) left join M_RMALine rl on (rl.M_InOutLine_ID = sl.M_InOutLine_ID )
|
||||
left join M_InoutLine crl on (rl.M_RMALine_ID =crl.M_RMALine_ID)
|
||||
left join M_inout cr on (cr.M_Inout_ID = crl.M_Inout_ID and not cr.docstatus in ('CO','RE'))
|
||||
left join M_InoutLineMA crma on (crma.M_InoutLine_Id = crl.M_InoutLine_ID and sma.M_AttributeSetInstance_ID=crma.M_AttributeSetInstance_ID)
|
||||
group by sma.M_AttributeSetInstance_ID,sma.m_inoutline_id,sma.ad_client_id,sma.ad_org_id,sma.isactive,sma.created,sma.createdby,sma.updated
|
||||
,sma.updatedby,sma.movementqty,sma.m_inoutlinema_uu,sma.datematerialpolicy,sma.isautogenerated;
|
||||
|
||||
SELECT register_migration_script('201405310538_IDEMPIERE-1770.sql') FROM dual
|
||||
;
|
||||
SELECT register_migration_script('201407010832_IDEMPIERE-1770.sql') FROM dual
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue