IDEMPIERE-3419 Wrong Account date in Matched PO if invoice and MR in different periods
This commit is contained in:
parent
e20c9b3be5
commit
b0f7cda146
|
@ -456,8 +456,11 @@ public class MMatchPO extends X_M_MatchPO
|
||||||
}
|
}
|
||||||
if (iLine != null)
|
if (iLine != null)
|
||||||
mpo.setC_InvoiceLine_ID(iLine);
|
mpo.setC_InvoiceLine_ID(iLine);
|
||||||
if (sLine != null)
|
if (sLine != null){
|
||||||
mpo.setM_InOutLine_ID(sLine.getM_InOutLine_ID());
|
mpo.setM_InOutLine_ID(sLine.getM_InOutLine_ID());
|
||||||
|
if (!mpo.isPosted())
|
||||||
|
mpo.setDateAcct(sLine.getParent().getDateAcct());
|
||||||
|
}
|
||||||
|
|
||||||
if (!mpo.save())
|
if (!mpo.save())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue