IDEMPIERE-2392 Posted status incorrect when reposting on a period closed / AP2-419

This commit is contained in:
Carlos Ruiz 2018-07-26 17:27:15 +02:00
parent 22b84e058f
commit 3eb4a2f4b9
1 changed files with 4 additions and 1 deletions

View File

@ -282,7 +282,8 @@ public class MPeriod extends X_C_Period
int idxdate = -1;
if ( tableID == MInventory.Table_ID
|| tableID == MMovement.Table_ID
|| tableID == MProduction.Table_ID) {
|| tableID == MProduction.Table_ID
|| tableID == MProjectIssue.Table_ID) {
idxdate = po.get_ColumnIndex("MovementDate");
} else if ( tableID == MRequisition.Table_ID) {
idxdate = po.get_ColumnIndex("DateDoc");
@ -333,6 +334,8 @@ public class MPeriod extends X_C_Period
} else if ( tableID == MAssetDisposed.Table_ID
|| tableID == MDepreciationExp.Table_ID) {
docBaseType = MDocType.DOCBASETYPE_GLDocument; // seems like a bug of fixed assets - must use GLJournal instead of GLDocument?
} else if (tableID == MProjectIssue.Table_ID) {
docBaseType = MDocType.DOCBASETYPE_ProjectIssue;
} else {
s_log.warning("Could not find C_DocType_ID for " + table.getTableName());
return true;