Move Std Cost and Std Selling Price from one Company to another Company

Discussion in 'Tally Developer' started by K Vinod Kumar, Jun 26, 2012.

    
  1. K Vinod Kumar

    K Vinod Kumar New Member


    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
     


  2. admin

    admin Administrator Staff Member


    Yes you can.

    Change the SVCurrentCompany variable during the loop constructor in the function to achieve this.
     


  3. K Vinod Kumar

    K Vinod Kumar New Member


    Dear Sir,
    Please find attached herewith the TXT file. Kindly advise.

    Regards
    Vinod
     

    Attached Files:




  4. 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
     


  5. K Vinod Kumar

    K Vinod Kumar New Member


    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.
     

    Attached Files:




  6. Please Check
    I had rewritten the function.
     

    Attached Files:

    admin likes this.


  7. K Vinod Kumar

    K Vinod Kumar New Member


    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
     


  8. admin

    admin Administrator Staff Member


    Great Thushar... Keep it up..
     


  9. Basha

    Basha Member


    Pls sent to me the code.
     


Share This Page