Last Sale Price in Sale Voucher Stock List

Discussion in 'Requests' started by mkumar, Apr 1, 2013.

    
  1. mkumar

    mkumar New Member


    hello every one,
    i want to show last sale price of item in sale voucher stock list with inventory details. in simple terms add last sale price to stock item while item list open in sale voucher entry. thank you.
     


  2. admin

    admin Administrator Staff Member


    Add a field and in the write the below method
    [Field: My Field]
    Use: Rate Field
    Set As: $LastSalePrice:StockItem:$StockItemName
     


  3. ganesh chavan

    ganesh chavan New Member


     


  4. ganesh chavan

    ganesh chavan New Member


    Thanks Sir, however, could you please let us know how to get last sales price for the particular party?
     


  5. Maulik Patel

    Maulik Patel Active Member


    First of all create a collection with type voucher. Then write a second collection with first collection as source collection. In second collection walk by inventory entries. put key = $LedgerName + $StockItemName.
    Then
    You can use $$colllectionFieldbykey function to get last rate for a stock item belonging to a particular party.

    You can put filter for voucher type in first collection
     


  6. Joharfchhil

    Joharfchhil Member


    ******************************************************
    *********** Last Rate of the Party ****************
    ******************************************************

    [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


    ;; Endof File
     


  7. Basha

    Basha Member


    its not working / by partywise..... Chk again
     


  8. nagaraju

    nagaraju New Member


    attibute definition started without valid discription error is comming
     


Share This Page