IDEMPIERE-2296 Value Preference should have precedence over Default Value of field / implement fix suggested by Tomas Svikruha
This commit is contained in:
parent
aa98a2becc
commit
2d77cc7d28
|
@ -0,0 +1,11 @@
|
||||||
|
SET SQLBLANKLINES ON
|
||||||
|
SET DEFINE OFF
|
||||||
|
|
||||||
|
-- IDEMPIERE-2296 Value Preference should have precedence over Default Value of field
|
||||||
|
-- Oct 25, 2015 12:10:37 PM COT
|
||||||
|
UPDATE AD_SysConfig SET Value='623',Updated=TO_DATE('2015-10-25 12:10:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=200065
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201510251210_IDEMPIERE-2296.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
-- IDEMPIERE-2296 Value Preference should have precedence over Default Value of field
|
||||||
|
-- Oct 25, 2015 12:10:37 PM COT
|
||||||
|
UPDATE AD_SysConfig SET Value='623',Updated=TO_TIMESTAMP('2015-10-25 12:10:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=200065
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201510251210_IDEMPIERE-2296.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -579,7 +579,7 @@ public class GridField
|
||||||
*/
|
*/
|
||||||
public Object getDefaultForPanel (){
|
public Object getDefaultForPanel (){
|
||||||
//default is preference for field > special case > default logic > sql default > data-type default
|
//default is preference for field > special case > default logic > sql default > data-type default
|
||||||
String defaultSeq = "63";
|
String defaultSeq = "623";
|
||||||
return getDefault (MSysConfig.getValue(MSysConfig.ZK_SEQ_DEFAULT_VALUE_PANEL, defaultSeq, Env.getAD_Client_ID(m_vo.ctx)));
|
return getDefault (MSysConfig.getValue(MSysConfig.ZK_SEQ_DEFAULT_VALUE_PANEL, defaultSeq, Env.getAD_Client_ID(m_vo.ctx)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -212,4 +212,9 @@ public class ParseSeq implements Iterable<Character> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "OrderConfiguration=" + orderConfiguration;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue