IDEMPIERE-3419 Wrong Account date in Matched PO if invoice and MR in different periods

This commit is contained in:
Heng Sin Low 2017-07-04 17:47:43 +08:00
parent e20c9b3be5
commit b0f7cda146
1 changed files with 4 additions and 1 deletions

View File

@ -456,8 +456,11 @@ public class MMatchPO extends X_M_MatchPO
}
if (iLine != null)
mpo.setC_InvoiceLine_ID(iLine);
if (sLine != null)
if (sLine != null){
mpo.setM_InOutLine_ID(sLine.getM_InOutLine_ID());
if (!mpo.isPosted())
mpo.setDateAcct(sLine.getParent().getDateAcct());
}
if (!mpo.save())
{