Unrealize & PPO Create Lines

--HG--
branch : EDII
This commit is contained in:
hodianto 2018-12-14 17:03:22 +07:00
parent f3aa0fca94
commit 728199c443
2 changed files with 4 additions and 2 deletions

View File

@ -226,7 +226,7 @@ public class MID_PPO extends X_ps_ppo implements DocAction, DocOptions{
try {
rs = pstmt.executeQuery();
while(rs.next()) {
createLines(rs.getInt(1), rs.getBigDecimal(2), false, retValue+1);
createLines(rs.getInt(1), rs.getBigDecimal(2).multiply(getQtyOrdered()), false, retValue+1);
retValue++;
}
} catch (SQLException e) {

View File

@ -113,7 +113,9 @@ public class MID_ProcessUnrealizedGainLoss extends SvrProcess{
"AR Gain/Loss for Invoice No. "+invoice.getDocumentNo());
}
}
log.severe(String.valueOf(crJournal.getGL_Journal_ID()));
log.severe(String.valueOf(drJournal.getGL_Journal_ID()));
unRateLine.saveEx();
unRateLine.setGL_JournalLineCr_ID(crJournal.getGL_JournalLine_ID());
unRateLine.setGL_JournalLineDr_ID(drJournal.getGL_JournalLine_ID());
unRateLine.saveEx();