BF [2789319] No check of Actual, Budget, Statistical attribute
This commit is contained in:
parent
b31b84bce3
commit
03d6cb9e1a
|
@ -450,6 +450,15 @@ public class MJournal extends X_GL_Journal implements DocAction
|
|||
MJournalLine line = lines[i];
|
||||
if (!isActive())
|
||||
continue;
|
||||
|
||||
// bcahya, BF [2789319] No check of Actual, Budget, Statistical attribute
|
||||
if (!line.getAccountElementValue().isActive())
|
||||
{
|
||||
m_processMsg = "@InActiveAccount@ - @Line@=" + line.getLine()
|
||||
+ " - " + line.getAccountElementValue();
|
||||
return DocAction.STATUS_Invalid;
|
||||
}
|
||||
|
||||
// Michael Judd (mjudd) BUG: [ 2678088 ] Allow posting to system accounts for non-actual postings
|
||||
if (line.isDocControlled() &&
|
||||
( getPostingType().equals(POSTINGTYPE_Actual)) ||
|
||||
|
@ -462,6 +471,30 @@ public class MJournal extends X_GL_Journal implements DocAction
|
|||
return DocAction.STATUS_Invalid;
|
||||
}
|
||||
//
|
||||
|
||||
// bcahya, BF [2789319] No check of Actual, Budget, Statistical attribute
|
||||
if (getPostingType().equals(POSTINGTYPE_Actual) && !line.getAccountElementValue().isPostActual())
|
||||
{
|
||||
m_processMsg = "@PostingTypeActualError@ - @Line@=" + line.getLine()
|
||||
+ " - " + line.getAccountElementValue();
|
||||
return DocAction.STATUS_Invalid;
|
||||
}
|
||||
|
||||
if (getPostingType().equals(POSTINGTYPE_Budget) && !line.getAccountElementValue().isPostBudget())
|
||||
{
|
||||
m_processMsg = "@PostingTypeBudgetError@ - @Line@=" + line.getLine()
|
||||
+ " - " + line.getAccountElementValue();
|
||||
return DocAction.STATUS_Invalid;
|
||||
}
|
||||
|
||||
if (getPostingType().equals(POSTINGTYPE_Statistical) && !line.getAccountElementValue().isPostStatistical())
|
||||
{
|
||||
m_processMsg = "@PostingTypeStatisticalError@ - @Line@=" + line.getLine()
|
||||
+ " - " + line.getAccountElementValue();
|
||||
return DocAction.STATUS_Invalid;
|
||||
}
|
||||
// end BF [2789319] No check of Actual, Budget, Statistical attribute
|
||||
|
||||
AmtSourceDr = AmtSourceDr.add(line.getAmtSourceDr());
|
||||
AmtSourceCr = AmtSourceCr.add(line.getAmtSourceCr());
|
||||
}
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
-- May 11, 2009 2:02:12 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53072,0,TO_DATE('2009-05-11 14:02:00','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','In active account','E',TO_DATE('2009-05-11 14:02:00','YYYY-MM-DD HH24:MI:SS'),0,'InActiveAccount')
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:02:12 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53072 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:02:53 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53073,0,TO_DATE('2009-05-11 14:02:52','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Account does not have Post Actual attribute','E',TO_DATE('2009-05-11 14:02:52','YYYY-MM-DD HH24:MI:SS'),0,'PostingTypeActualError')
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:02:53 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53073 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:03:13 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53074,0,TO_DATE('2009-05-11 14:03:12','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Account does not have Post Budget attribute','E',TO_DATE('2009-05-11 14:03:12','YYYY-MM-DD HH24:MI:SS'),0,'PostingTypeBudgetError')
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:03:13 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53074 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:03:37 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53075,0,TO_DATE('2009-05-11 14:03:36','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Account does not have Post Statistical attribute','E',TO_DATE('2009-05-11 14:03:36','YYYY-MM-DD HH24:MI:SS'),0,'PostingTypeStatisticalError')
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:03:37 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53075 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
|
||||
;
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
-- May 11, 2009 2:02:12 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53072,0,TO_TIMESTAMP('2009-05-11 14:02:00','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','In active account','E',TO_TIMESTAMP('2009-05-11 14:02:00','YYYY-MM-DD HH24:MI:SS'),0,'InActiveAccount')
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:02:12 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53072 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:02:53 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53073,0,TO_TIMESTAMP('2009-05-11 14:02:52','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Account does not have Post Actual attribute','E',TO_TIMESTAMP('2009-05-11 14:02:52','YYYY-MM-DD HH24:MI:SS'),0,'PostingTypeActualError')
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:02:53 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53073 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:03:13 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53074,0,TO_TIMESTAMP('2009-05-11 14:03:12','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Account does not have Post Budget attribute','E',TO_TIMESTAMP('2009-05-11 14:03:12','YYYY-MM-DD HH24:MI:SS'),0,'PostingTypeBudgetError')
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:03:13 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53074 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:03:37 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53075,0,TO_TIMESTAMP('2009-05-11 14:03:36','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Account does not have Post Statistical attribute','E',TO_TIMESTAMP('2009-05-11 14:03:36','YYYY-MM-DD HH24:MI:SS'),0,'PostingTypeStatisticalError')
|
||||
;
|
||||
|
||||
-- May 11, 2009 2:03:37 PM ICT
|
||||
-- BF-2789319 No check of Actual, Budget, Statistical attribute
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53075 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
|
||||
;
|
||||
|
Loading…
Reference in New Issue