IDEMPIERE-3486 peer review / better defaults when calling BP Info from dashboard

This commit is contained in:
Carlos Ruiz 2017-11-08 10:19:00 +01:00
parent 0543f00cf5
commit 6a76072a43
3 changed files with 7 additions and 9 deletions

View File

@ -3,11 +3,11 @@ SET DEFINE OFF
-- IDEMPIERE-3486 add default logic for customize and vendor parameter -- IDEMPIERE-3486 add default logic for customize and vendor parameter
-- Sep 13, 2017 9:25:06 PM ICT -- Sep 13, 2017 9:25:06 PM ICT
UPDATE AD_InfoColumn SET DefaultValue='@SQL=SELECT ''@IsSOTrx:Y@'' AS DefaultValue FROM DUAL',Updated=TO_DATE('2017-09-13 21:25:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200036 UPDATE AD_InfoColumn SET DefaultValue='@IsSOTrx@',Updated=TO_DATE('2017-09-13 21:25:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200036
; ;
-- Sep 13, 2017 9:25:14 PM ICT -- Sep 13, 2017 9:25:14 PM ICT
UPDATE AD_InfoColumn SET DefaultValue='@SQL=SELECT CASE ''@IsSOTrx:N@'' WHEN ''N'' THEN ''Y'' ELSE ''N'' END AS DefaultValue FROM DUAL',Updated=TO_DATE('2017-09-13 21:25:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200037 UPDATE AD_InfoColumn SET DefaultValue='@SQL=SELECT CASE ''@IsSOTrx@'' WHEN '''' THEN '''' WHEN ''N'' THEN ''Y'' ELSE ''N'' END AS DefaultValue FROM DUAL',Updated=TO_DATE('2017-09-13 21:25:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200037
; ;
SELECT register_migration_script('201709131604_IDEMPIERE-3486.sql') FROM dual SELECT register_migration_script('201709131604_IDEMPIERE-3486.sql') FROM dual

View File

@ -1,10 +1,10 @@
-- IDEMPIERE-3486 add default logic for customize and vendor parameter -- IDEMPIERE-3486 add default logic for customize and vendor parameter
-- Sep 13, 2017 9:25:06 PM ICT -- Sep 13, 2017 9:25:06 PM ICT
UPDATE AD_InfoColumn SET DefaultValue='@SQL=SELECT ''@IsSOTrx:Y@'' AS DefaultValue FROM DUAL',Updated=TO_TIMESTAMP('2017-09-13 21:25:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200036 UPDATE AD_InfoColumn SET DefaultValue='@IsSOTrx@',Updated=TO_TIMESTAMP('2017-09-13 21:25:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200036
; ;
-- Sep 13, 2017 9:25:14 PM ICT -- Sep 13, 2017 9:25:14 PM ICT
UPDATE AD_InfoColumn SET DefaultValue='@SQL=SELECT CASE ''@IsSOTrx:N@'' WHEN ''N'' THEN ''Y'' ELSE ''N'' END AS DefaultValue FROM DUAL',Updated=TO_TIMESTAMP('2017-09-13 21:25:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200037 UPDATE AD_InfoColumn SET DefaultValue='@SQL=SELECT CASE ''@IsSOTrx@'' WHEN '''' THEN '''' WHEN ''N'' THEN ''Y'' ELSE ''N'' END AS DefaultValue FROM DUAL',Updated=TO_TIMESTAMP('2017-09-13 21:25:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200037
; ;
SELECT register_migration_script('201709131604_IDEMPIERE-3486.sql') FROM dual SELECT register_migration_script('201709131604_IDEMPIERE-3486.sql') FROM dual

View File

@ -3,10 +3,8 @@
*/ */
package org.adempiere.webui.info; package org.adempiere.webui.info;
import org.adempiere.webui.editor.WEditor;
import org.adempiere.webui.panel.InvoiceHistory; import org.adempiere.webui.panel.InvoiceHistory;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.Util;
/** /**
* @author hengsin * @author hengsin
@ -16,7 +14,7 @@ public class InfoBPartnerWindow extends InfoWindow {
/** /**
* *
*/ */
private static final long serialVersionUID = -5291476382115985651L; private static final long serialVersionUID = 240758053410996182L;
/** /**
* @param WindowNo * @param WindowNo