IDEMPIERE-3874 Process Recalculate Cube not loading GL journal facts due to c_calendar_id
This commit is contained in:
parent
f0c50daee0
commit
0a9d7335de
|
@ -0,0 +1,15 @@
|
||||||
|
SET SQLBLANKLINES ON
|
||||||
|
SET DEFINE OFF
|
||||||
|
|
||||||
|
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||||
|
-- Apr 18, 2019, 2:24:04 PM CEST
|
||||||
|
UPDATE AD_Column SET Callout='org.compiere.model.CalloutGLJournal.period',Updated=TO_DATE('2019-04-18 14:24:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1619
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Apr 18, 2019, 2:24:15 PM CEST
|
||||||
|
UPDATE AD_Column SET Callout='org.compiere.model.CalloutGLJournal.period',Updated=TO_DATE('2019-04-18 14:24:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1643
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201904181424_IDEMPIERE-3874.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||||
|
-- Apr 18, 2019, 2:24:04 PM CEST
|
||||||
|
UPDATE AD_Column SET Callout='org.compiere.model.CalloutGLJournal.period',Updated=TO_TIMESTAMP('2019-04-18 14:24:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1619
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Apr 18, 2019, 2:24:15 PM CEST
|
||||||
|
UPDATE AD_Column SET Callout='org.compiere.model.CalloutGLJournal.period',Updated=TO_TIMESTAMP('2019-04-18 14:24:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1643
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201904181424_IDEMPIERE-3874.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -53,7 +53,6 @@ public class CalloutGLJournal extends CalloutEngine
|
||||||
if (value == null)
|
if (value == null)
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
int AD_Client_ID = Env.getContextAsInt(ctx, WindowNo, "AD_Client_ID");
|
|
||||||
Timestamp DateAcct = null;
|
Timestamp DateAcct = null;
|
||||||
if (colName.equals("DateAcct"))
|
if (colName.equals("DateAcct"))
|
||||||
DateAcct = (Timestamp)value;
|
DateAcct = (Timestamp)value;
|
||||||
|
@ -69,8 +68,8 @@ public class CalloutGLJournal extends CalloutEngine
|
||||||
mTab.setValue("DateAcct", value);
|
mTab.setValue("DateAcct", value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// When DateAcct is changed, set C_Period_ID
|
// When DateAcct/Org is changed, set C_Period_ID
|
||||||
else if (colName.equals("DateAcct"))
|
else if (colName.equals("DateAcct") || colName.equals("AD_Org_ID"))
|
||||||
{
|
{
|
||||||
String sql = "SELECT C_Period_ID "
|
String sql = "SELECT C_Period_ID "
|
||||||
+ "FROM C_Period "
|
+ "FROM C_Period "
|
||||||
|
|
|
@ -54,7 +54,7 @@ public class MJournalBatch extends X_GL_JournalBatch implements DocAction
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 3424249393848608297L;
|
private static final long serialVersionUID = 5920767495976301905L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create new Journal Batch by copying
|
* Create new Journal Batch by copying
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class CLogger extends Logger implements Serializable
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 6492376264463028357L;
|
private static final long serialVersionUID = -4015949992093043663L;
|
||||||
private static final String LAST_INFO = "org.compiere.util.CLogger.lastInfo";
|
private static final String LAST_INFO = "org.compiere.util.CLogger.lastInfo";
|
||||||
private static final String LAST_WARNING = "org.compiere.util.CLogger.lastWarning";
|
private static final String LAST_WARNING = "org.compiere.util.CLogger.lastWarning";
|
||||||
private static final String LAST_ERROR = "org.compiere.util.CLogger.lastError";
|
private static final String LAST_ERROR = "org.compiere.util.CLogger.lastError";
|
||||||
|
|
Loading…
Reference in New Issue