Primary Stock Group wise Discount should be apply to all the stock item in that Group

Discussion in 'Free Source Codes' started by nsrao-Vijayawada, Jun 3, 2021.

    
  1. nsrao-Vijayawada

    nsrao-Vijayawada New Member


    Hi Administrator,

    I need the Syntax to call for the Parent Value in the child .

    [#Part: STKG Details]
    Add: Line: RdGroupDiscount


    [Line: RdGroupDiscount]
    Fields : Long Prompt, RdGDiscount

    Local : Field : Long Prompt : Info : $$LocaleString:"Applicable Discount % "

    [Field: RdGDiscount]
    Use : Number Field
    Storage : RdGDiscount

    [System:UDF]
    RdGDiscount : Number: 100

    ;[#Field: VCH StockItem]
    ;
    ; On : Accept : vch Discount : 10 ;;$RdGDiscount:StockItem:$StockItemName

    [#Field: VCH Discount]

    Use : Number Field
    Width : @@VCHDiscountWidth
    Set as : $RdGDiscount:StockGroup:$StockItemName
    Align : Right
    Style : Normal Bold
    Storage : Discount
    Set always : Yes
    Format : "NoZero,Percentage"



    Kindly Help out in this Casestudy,

    Thank u for supporting
     


  2. Rohit001

    Rohit001 Member



    ;Try this

    [#Field: VCH Discount]

    Use : Number Field
    Width : @@VCHDiscountWidth
    Set as : $RdGDiscount:StockGroup:mad:StockParent
    Stockparent:$Parent:StockItem:$StockItemName
    Align : Right
    Style : Normal Bold
    Storage : Discount
    Set always : Yes
    Format : "NoZero,Percentage"
     


  3. nsrao-Vijayawada

    nsrao-Vijayawada New Member


    Thank for Reply Rohitji,
    The Discount value is not display.
     


  4. Rohit001

    Rohit001 Member


    ;try this

    [#Part: STKG Details]
    Add: Line: RdGroupDiscount


    [Line: RdGroupDiscount]
    Fields : Long Prompt, RdGDiscount

    Local : Field : Long Prompt : Info : $$LocaleString:"Applicable Discount % "

    [Field: RdGDiscount]
    Use : Number Field
    Storage : RdGDiscount
    Format:"Nozero,percentage"

    [System:UDF]
    RdGDiscount : Number: 100



    [#Field: VCH BatchDiscount]


    Set as : $RdGDiscount:StockGroup:mad:LocFor
    LocFor :$Parent:StockItem:$StockItemName

    [#Field: VCH Discount]

    Set as : $RdGDiscount:StockGroup:mad:LocFor
    LocFor :$Parent:StockItem:$StockItemName
     


  5. udaya

    udaya Active Member


    Not Working ....
    It Accept the discount in group. But in voucher no any discount automatically....
     


  6. Sanjeev S

    Sanjeev S Active Member


    Try adding
    Set always : yes
    after both set as
     


  7. svn

    svn Member


    Not Getting sir.
     



  8. create a field before the discount field in Voucher entry
    Get the values there first ... then delete the Set as in discount field and force the given value of the new field there it will work
    with this you can achive 2 thigns a you are sure that the values are coming in new field from group and 2nd you are not disturbing the basic field of Tally the discount field
     


  9. Sanjeev S

    Sanjeev S Active Member


    Try this ...
    Code:
    [#Field: VCH Batch Discount]
    Add        :    Set By Condition        :    not ($$IsEmpty:@@GrpDiscount)    :    @@GrpDiscount
    
    
    [System    :    Formula]
    GrpDiscount    :    $RdGDiscount:StockGroup:($Parent:StockItem:$StockItemName)
    
    
    This should work
     


  10. udaya

    udaya Active Member


    Thanks Sanjeev.... Its Working Perfect In Batch Wise.... But Normal invoice Discount not show auto.... please Check...and Guide us....

    [#Field: VCH Discount]
    Add : Set By Condition : not ($$IsEmpty:mad:@GrpDiscount) : @@GrpDiscount



    [#Field: VCH Batch Discount]
    Add : Set By Condition : not ($$IsEmpty:mad:@GrpDiscount) : @@GrpDiscount
     


  11. svn

    svn Member


    Yes sir
     


Share This Page