Hi !
I am customizing a report named "ledgerTransPerJournal". this report gets called from 3 places. Invoice journal, payment journal and general journal. if I want to add Vendors name on these reports how can i do it?
I wrote a new method insertVendorname and took one parameter in it (_Voucher).
Here is my code:
public PurchName insertVendor(Voucher _voucher)
{
VendTrans vendTrans;
PurchTable purchTable;
select AccountNum from vendTrans
where vendTrans.Voucher == _voucher
join PurchName from purchTable
where purchTable.InvoiceAccount == vendTrans.AccountNum;
return purchTable.PurchName;
}
This Query Returning the value I wanted which is the correct vendor name.
then I called this method from the method "ledgertransperjournal/insertvoucherDetails"
like "ledgerTransPerJournalTmp.Vendorname = insertVendorname"
then I added this field in visual studio report precision design
but I still can't see the vendorname in my Report.
please help