IDEMPIERE-4245 Set GL Category automatically for GL Journal

This commit is contained in:
Nicolas Micoud 2020-04-22 19:57:42 +02:00 committed by Carlos Ruiz
parent b719e45c8f
commit d3d7e57cf9
1 changed files with 3 additions and 0 deletions

View File

@ -330,6 +330,9 @@ public class MJournal extends X_GL_Journal implements DocAction
}
}
if (getGL_Category_ID() == 0 && getC_DocType_ID() > 0)
setGL_Category_ID(MDocType.get(getCtx(), getC_DocType_ID()).getGL_Category_ID());
// IDEMPIERE-63
// for documents that can be reactivated we cannot allow changing
// C_DocTypeTarget_ID or C_DocType_ID if they were already processed and isOverwriteSeqOnComplete