Help Needed

Discussion in 'Tally Developer' started by Johar, Apr 5, 2023.

    
  1. Johar

    Johar Member


    In Sales Voucher Screen Iam displaying the Values but it is not getting filtered as per Stock Item can anyone help on this, using following collection with filter

    [Collection : Retail Discount Src]
    Type : Stock Item

    [Collection : Retail Discount]
    Source Collection : Retail Discount Src
    Walk : Group Discount Main
    Compute : GName : $$Owner:$Name
    Fetch : RD MRP, RD Rate, RD Discount1, RD Discount2, RD DiscType
    Format : $RDMRP
    Format : $RDDiscount1
    Format : $RDDiscount2
    Format : $RDRate
    Format : $GName
    Filter : FilterCurrItem

    [System: Formula]
    FilterCurrItem : $GName = #VchStockItem
     


  2. Lynch

    Lynch Member


    instead of using formula
    you can use child of attribute to your source collection as per the following code
    Code:
    [Collection : Retail Discount Src]
    Type : Stock Item
    child of:#VchStockItem
    
    [Collection : Retail Discount]
    Source Collection : Retail Discount Src
    Walk : Group Discount Main
    Compute : GName : $$Owner:$Name
    Fetch : RD MRP, RD Rate, RD Discount1, RD Discount2, RD DiscType
    Format : $RDMRP
    Format : $RDDiscount1
    Format : $RDDiscount2
    Format : $RDRate
    Format : $GName
    try this and let us know
     


Share This Page