IDEMPIERE-3530 Doc_Inventory.createFacts does not respect !line.isAcive() but MInventory.completeIt does. Posting fails.

This commit is contained in:
Andy Conn 2017-11-13 15:52:21 +01:00
parent 8385b79f0a
commit fbb260a1ea
1 changed files with 3 additions and 0 deletions

View File

@ -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