while Select inventJournalTable
join inventJournalTrans
join inventTrans
join inventTransOrigin
where inventJournalTable.JournalId == inventJournalTrans.JournalId
&& inventTrans.InventTransOrigin == inventTransOrigin.RecId
&& inventJournalTrans.InventTransId == inventTransOrigin.InventTransId
&& inventJournalTrans.JournalId == "ICD-000016"
{
while select generalJournalEntry
where inventTrans.Voucher == generalJournalEntry.SubledgerVoucher
{
select generalJournalAccountEntry
where generalJournalAccountEntry.GeneralJournalEntry == generalJournalEntry.RecId;
i++;
info(strFmt("Journal : %1 , I : %2",inventJournalTrans.JournalId, i));
info(strFmt("Qty : %1",inventTrans.Qty));
info(strFmt("Voucher : %1", generalJournalEntry.SubledgerVoucher));
info(strFmt("Amount : %1", generalJournalAccountEntry.TransactionCurrencyAmount));
}
}
Please Check and run the job
I am getting the repeated amount from generalJournalAccountEntry Please reply me soon .
*This post is locked for comments
I have the same question (0)