RE - LedgerJournalTrans mass upload

Dear All,

I am doing mass upload in LedgerJournalTrans form. At that time in that AccountType field it is showing the default value as “Ledger”. Its not considering the type “Customer” which i gave in tat csv file. So kindly tel me to avoid tat default value.

Regards,

Madhan

Hi Madhan

don’t use the csv file account type, based on account number you can define the account type, it will work properly

examples

///////////////Customer
Select CustTable
Where CustTable.AccountNum == VoucherUploadLoc.Accountnum;

if (CustTable.RecId)
{
LedgerJournalTrans.AccountType = LedgerJournalACType::Cust;
}

Select CustTable
Where CustTable.AccountNum == VoucherUploadLoc.OffsetAccount;

if (CustTable.RecId)
{
LedgerJournalTrans.OffsetAccountType = LedgerJournalACType::Cust;
}