Dear Sir, Can we copy the Standard Cost price and Standard Selling Price of a stock item from company to another company using Functions. Regards Vinod
Yes you can. Change the SVCurrentCompany variable during the loop constructor in the function to achieve this.
You have to set data in list variables before updating in new company. if change the company while in collection the collection get refreshed with the new company. Secondaly in your tdl you dosent set the target to STDPurCost. You had made the set target for Collection you need to reapair it also. for this condition also there is one control from tally which you need to check is date, if there already the same date exits then tally will error for new line in aggregate
Dear Tushar, Thanks for the advice. I tried rebuilding the code. Still not able to write data to the target company. I'm attaching the updated code. Kindly advice or modify the code.
Dear Thushar, I applied your code, and it worked fine. Thank you not for just resolving the problem but also letting me understand more about List Variable. Regards Vinod