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,16 +1825,19 @@ public class MInvoice extends X_C_Invoice implements DocAction
|
|||
MMatchPO po = MMatchPO.create (line, null,
|
||||
getDateInvoiced(), matchQty);
|
||||
boolean isNewMatchPO = false;
|
||||
if (po.get_ID() == 0)
|
||||
isNewMatchPO = true;
|
||||
if (!po.save(get_TrxName()))
|
||||
if (po != null)
|
||||
{
|
||||
m_processMsg = "Could not create PO Matching";
|
||||
return DocAction.STATUS_Invalid;
|
||||
if (po.get_ID() == 0)
|
||||
isNewMatchPO = true;
|
||||
if (!po.save(get_TrxName()))
|
||||
{
|
||||
m_processMsg = "Could not create PO Matching";
|
||||
return DocAction.STATUS_Invalid;
|
||||
}
|
||||
matchPO++;
|
||||
if (isNewMatchPO)
|
||||
addDocsPostProcess(po);
|
||||
}
|
||||
matchPO++;
|
||||
if (isNewMatchPO)
|
||||
addDocsPostProcess(po);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -474,11 +474,11 @@ public abstract class CreateFromInvoice extends CreateFrom
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (inoutLine == null)
|
||||
{
|
||||
inoutLine = lines[0]; // first as default
|
||||
M_InOutLine_ID = inoutLine.getM_InOutLine_ID();
|
||||
}
|
||||
// if (inoutLine == null)
|
||||
// {
|
||||
// inoutLine = lines[0]; // first as default
|
||||
// M_InOutLine_ID = inoutLine.getM_InOutLine_ID();
|
||||
// }
|
||||
}
|
||||
}
|
||||
else if (M_RMALine_ID != 0)
|
||||
|
|
Loading…
Reference in New Issue