Sir find last sale rate of item in party account???? if no last sale rate of item in party account then i use $_lastSalePrice:Stockitem:$StockitemName this
For the Party Accounts, You do not have any direct Method. You can achieve this by writing the Collection for Party Vouchers containing This Stock Item.. From there you can get Last Sale Price
[Collection : MyLedSalesColl] Type : Vouchers: Stock Item Child of : $StockItemName Filter : Is Same Party Sort : @@Increasing : $MasterId Compute :ItemOutrate : ($$AsCrAmt:$OutVchAmt) / ($$AsOutQty:$$NettQty:$ItemOutAccQty:$ItemInActQty) [System : Formula] IsSameParty : $PartyLedgerName = #EIConsignee (Partyname in Ledger) ;; Method to get Last Rate $$CollectionField:$ItemOutrate : (-1):MyLedSalesColl Try this
Sir I tried out this, its not working. With the same item if we process rates for different parties, the item rate last used is coming and the item rate last use OF THAT PARTICULAR PARTY is not coming. Please help me...
Please correct this code: i want only last rate without list collection, please help me [System : Formula] IsSameParty : $PartyLedgerName = #EIConsignee [#Field: VCHBATCH Rate] ;Delete : Set by Condition : (($$Line = 1) AND NOT $$IsEmptyTableRate) AND ($$IsEmpty:$$Value OR $$IsFieldEdited:VCHBATCHTrack OR $$IsFieldEdited:VCHBATCHOrder) : @TableRate Table : MyLedSalesColl2, New Number Trigger : New Number : $$IsSysNameEqual:NewNumber:$$EditData [Collection : MyLedSalesColl2] Use : DSD Batches VCH Extract2 ;Filter : Is Same Party2 ;Child of : ##SVLedgerName [Collection: DSD Batches VchSrc2] Type : Vouchers : VoucherType Child Of : "Sales" Belongs To : Yes Fetch : LedgerEntries.* , LedgerEntries.MasterID , LedgerEntries.AllInventoryEntries.*,LedgerEntries.AllInventoryEntries.BatchAllocations.* Filter : Is Same Party Sort : @@Increasing : $MasterId [Collection : DSD Batches VCH Extract2] Title : "List Of Serial Numbers" Source Collection : DSD Batches VchSrc2 Walk : InventoryEntries,BatchAllocations BY : Ledger Name : $LedgerEntries.LedgerName By : Master ID : $LedgerEntries.MasterID By : StockItemName : $StockItemName By : Batch Rate : $BatchRate ;By : BatchName : $BatchName ;By : Godown Name : $GodownName SubTitle : "Batch Rate" SubTitle : "Ledger Name" SubTitle : "StockItem Name" ;SubTitle : "Batch Name" ;;Serial number ;SubTitle : "Godown Name" Full Height : Yes Align : right Format : $BatchRate,15 Format : $Ledger Name ,20 Format : $StockItemName ,20 ;Format : $BatchName,20 ;Format : $Godown Name ,20