Walk Collection
Walk Collection
Walk Collection
(TDL)
Walk Collection:
This Loop attribute of the Function, this is mainly used to Update/get the data stored in the
collections of the Objects or List Variables e.g. Inventory entries of object Vouchers, Bill Allocations of
Object Ledger
Here Inventory entries is the collection of the Object Voucher, so if you want to access the data of Stock
Item Quantity in Voucher you have to first set the Object to that voucher than you have to walk on the
Inventory entries collection which have the method Billed Quantity.
This is used to develop the upload utility from excel to Tally data, where you have to Loop on the
collection of Variables storing the excel data to update data of the required Object
Code:
[Variable:ExcelBillbyBillData]
Variables:BillType,BillRefno,BillPartyName:String
Variable:BillDate:Date
Variable:BillCPeriod:Number
Variable:BillAmount:Amount
[Collection:ListExcelBillbyBillDataSrc]
Data Source : Variable : ExcelBillbyBillData
[Collection:ListExcelBillbyBillDataSumm]
Source Collection:ListExcelBillbyBillDataSrc
Fetch:BillType,BillRefno,BillPartyName
Fetch:BillDate,BillCPeriod
Fetch:BillAmount
[System:Formulae]
forPartyName:$BillPartyName=##prmBillPartyName ;##CurrentPartyName
[Function:ReadBillbyBillExcelData]
Variable : Row : Number
Variable : Last Status : String
List Variable : ExcelBillbyBillData
Variable : DesFilePath :String
Code 2: Below code have the Function to update the Valuation method of Stock as “FIFO Perpetual”
[#Menu:GatewayofTally]
Add:Button:Change FIFO
[Button:Change FIFO]
Key:Alt+R
Action:Call:ChangeTOFIFOMethod
[Function:ChangeTOFIFOMethod]
00:Walk Collection:ListofStockITem
01:Set Object:(StockItem,$Name).
02:Set Target:(StockItem,$Name).
10:Set Value:CostingMethod:"FIFO Perpetual"
20:Alter Target
100:End Walk