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.
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??
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
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.
Anyone have this TDL please send on mehtavivek@hotmail.com (TDL code to Update Costing Method of Multiple Stock Items)
[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