Hi,
I have done the below code but not working.
Anyone please guide or correct below code.
[Extensionof(classStr(CustVendAgingCalculation))]
final class CustVendAgingCalculation_Extension
{
protected void selectOpenTransactions(CustVendAgingProcessingTmp _agingProcessingTmp)
{
//var custVendTrans = this.setCustVendTransBuffer();
var custVendTransOpen = this.setCustVendTransOpenBuffer();
CustVendTransAging customersVendors = this.customersVendors;
CustTrans custTrans;
next selectOpenTransactions(_agingProcessingTmp);
// set TransDate everywhere and update based on AgedBy later
if(agedby == DateTransactionDuedate::DueDate)
{
insert_recordset _agingProcessingTmp
(AccountNum, TransRecId, CurrencyCode, TransOpenRecId, Amount, AmountCur, AmountReporting)
select AccountNum from customersVendors
join RecId, CurrencyCode from custTrans
where custTrans.AccountNum == customersVendors.AccountNum
&& custTrans.ActualDueDate <= balanceAsOfDate
&& (!custTrans.Closed || custTrans.Closed >= balanceAsOfDate)
join RecId, AmountMST, AmountCur, ReportingCurrencyAmount from custVendTransOpen
where custTrans.RecId == custVendTransOpen.RefRecId
&& custVendTransOpen.TransDate <= balanceAsOfDate;
}
}
}
Thanks,
Amol