IDEMPIERE-514 Match Invoice not created automatically for multiple receipts on single purchase order line
This commit is contained in:
parent
e5658fad56
commit
b6fd81b23c
|
@ -1825,6 +1825,8 @@ public class MInvoice extends X_C_Invoice implements DocAction
|
||||||
MMatchPO po = MMatchPO.create (line, null,
|
MMatchPO po = MMatchPO.create (line, null,
|
||||||
getDateInvoiced(), matchQty);
|
getDateInvoiced(), matchQty);
|
||||||
boolean isNewMatchPO = false;
|
boolean isNewMatchPO = false;
|
||||||
|
if (po != null)
|
||||||
|
{
|
||||||
if (po.get_ID() == 0)
|
if (po.get_ID() == 0)
|
||||||
isNewMatchPO = true;
|
isNewMatchPO = true;
|
||||||
if (!po.save(get_TrxName()))
|
if (!po.save(get_TrxName()))
|
||||||
|
@ -1837,6 +1839,7 @@ public class MInvoice extends X_C_Invoice implements DocAction
|
||||||
addDocsPostProcess(po);
|
addDocsPostProcess(po);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Update QtyInvoiced RMA Line
|
//Update QtyInvoiced RMA Line
|
||||||
if (line.getM_RMALine_ID() != 0)
|
if (line.getM_RMALine_ID() != 0)
|
||||||
|
|
|
@ -474,11 +474,11 @@ public abstract class CreateFromInvoice extends CreateFrom
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (inoutLine == null)
|
// if (inoutLine == null)
|
||||||
{
|
// {
|
||||||
inoutLine = lines[0]; // first as default
|
// inoutLine = lines[0]; // first as default
|
||||||
M_InOutLine_ID = inoutLine.getM_InOutLine_ID();
|
// M_InOutLine_ID = inoutLine.getM_InOutLine_ID();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (M_RMALine_ID != 0)
|
else if (M_RMALine_ID != 0)
|
||||||
|
|
Loading…
Reference in New Issue