Change rate for existing stock item

Discussion in 'Tally Developer' started by bytelogik, Mar 4, 2018.

    
  1. bytelogik

    bytelogik New Member


    Hi all,

    Trying to import new stock item rates from a collection in TDL.
    How can we change the rate for an existing stock item ?
    Is there any method to alter the rate for any selected stock item?

    Thanks in advance..
    mahesh.
     
    panam likes this.


  2. panam

    panam Member


    I also needed this code.
    can any help us.
     


  3. Himanshu-2002

    Himanshu-2002 Active Member


    You need to fetch Something Unique For Stock Item Like Master Id In Vouchers

    Create a Collection of Stock Item ( In Tally )

    Create a Collection Where New Rate is available with Stock Item Name Because This is the only common thing in both Collection

    Write a Function Which Will Update all Stock Items and Use That Unique ID To Alter Stock Items

    Tip : Learn $$CollectionFieldByKey

    Hope it Helps
     
    bytelogik and panam like this.


Share This Page