TDL code to Update Costing Method

Discussion in 'Tally Developer' started by SanketPorwal, Jul 16, 2019.

  1. SanketPorwal

    SanketPorwal New Member


    Hi All,
    I am beginner and have started to learn Tally Developer Language through youtube videos posted online.

    I am writing a code to update Costing Method of existing Stock Items to "Last Purchase Cost" (or any as selected by user). I am stuck at one place, I am not able to update $CostingMethod

    I have attached the code file.

    please help me.
     

    Attached Files:

    Last edited: Jul 16, 2019


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Going by your code, it does not affect the default tally reports.

    So kindly upload screenshots of before/after with remarks on what and where you want??
     


  3. SanketPorwal

    SanketPorwal New Member


    Hello Amit Sir,
    I have attached an image, Alt+5, should give me an option to the different Costing Methods and upon selecting the Costing Method, All selected Stock items should be set to that Costing Method.

    I have written the code till adding the button and displaying the report, but I am unable to move ahead.
    pls help me
     

    Attached Files:



  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    When from your report you select ..."ThisCosting" .... you have to modify the variable for costing method.

    Find out the variable of Costing Method in default tally and implement it in your code.
     


  5. SanketPorwal

    SanketPorwal New Member


    i am sorry sir, i didnt understand you..
     


  6. Vivek Mehta

    Vivek Mehta New Member


    Anyone have this TDL please send on mehtavivek@hotmail.com (TDL code to Update Costing Method of Multiple Stock Items)
     


  7. NiravMerchant

    NiravMerchant Member


    [Function : SL Stock Item Import]
    1050 : START PROGRESS : ($$NumItems:stockiteml) : "Updating" : "Stock Item - Costing Method"
    1060 : WALK COLLECTION : stockItem ; walk on tally default stock item collection
    1070 : NEW OBJECT : Stockitem: $name;
    1100 : SET VALUE : NAME : $Name
    1100l : Log: "item name:- " + $name
    ;==========================================================================
    P1 : set Value : CostingMethod : "Last Purchase Cost" ;; Give proper name as per list shown while creating stock itme
    1190 : Accept Alter;

    1250 : SHOW PROGRESS : ##ProgressCount
    1260 : SET : ProgressCount : ##ProgressCount + 1
    1270 : END WALK
    1280 : END PROGRESS
    1290 : Log: "Stock Item Master Updated Successfully !!!"


    you can use this logic - dont just copy
     


Share This Page