IDEMPIERE-2374 Production document not checking period open

This commit is contained in:
Carlos Ruiz 2014-12-26 23:38:08 -05:00
parent 71c842e7f5
commit 61117c42fe
1 changed files with 3 additions and 0 deletions

View File

@ -415,6 +415,9 @@ public class MProduction extends X_M_Production implements DocAction {
if (m_processMsg != null) if (m_processMsg != null)
return DocAction.STATUS_Invalid; return DocAction.STATUS_Invalid;
// Std Period open?
MPeriod.testPeriodOpen(getCtx(), getMovementDate(), MDocType.DOCBASETYPE_MaterialProduction, getAD_Org_ID());
if ( getIsCreated().equals("N") ) if ( getIsCreated().equals("N") )
{ {
m_processMsg = "Not created"; m_processMsg = "Not created";