IDEMPIERE-2392 Posted status incorrect when reposting on a period closed / add logic for C_Invoice.C_DocTypeTarget_ID
This commit is contained in:
parent
9e7d32a5a7
commit
7446d8f433
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue