IDEMPIERE-2392 Posted status incorrect when reposting on a period closed / add logic for C_Invoice.C_DocTypeTarget_ID

This commit is contained in:
Hideaki Hagiwara 2016-05-05 19:30:26 -07:00
parent 9e7d32a5a7
commit 7446d8f433
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ public class MPeriod extends X_C_Period
s_log.warning("Could not find C_DocType_ID (null or not Integer) for " + table.getTableName());
return true;
}
if (doctypeID == 0 && tableID == MOrder.Table_ID) {
if (doctypeID == 0 && (tableID == MOrder.Table_ID || tableID == MInvoice.Table_ID)) {
idxdoctype = po.get_ColumnIndex("C_DocTypeTarget_ID");
objint = po.get_Value(idxdoctype);
if (objint != null && objint instanceof Integer) {