From fbb260a1ea492248e1a6b91c90a90d9576deddaa Mon Sep 17 00:00:00 2001 From: Andy Conn Date: Mon, 13 Nov 2017 15:52:21 +0100 Subject: [PATCH] IDEMPIERE-3530 Doc_Inventory.createFacts does not respect !line.isAcive() but MInventory.completeIt does. Posting fails. --- org.adempiere.base/src/org/compiere/acct/Doc_Inventory.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_Inventory.java b/org.adempiere.base/src/org/compiere/acct/Doc_Inventory.java index a819e82fcb..cf09b43379 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_Inventory.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_Inventory.java @@ -107,6 +107,9 @@ public class Doc_Inventory extends Doc for (int i = 0; i < lines.length; i++) { MInventoryLine line = lines[i]; + if (!line.isActive()) + continue; + String docSubTypeInv; if (Util.isEmpty(parentDocSubTypeInv)) { // IDEMPIERE-675: for backward compatibility - to post old documents that could have subtypeinv empty