Double Discount

Discussion in 'Tally Developer' started by hitarth, Feb 14, 2014.

    
  1. hitarth

    hitarth Member


    Dear Experts,
    I have added additional Discount Field after Default Discount, Storing & Getting Value OK, but
    not showing that Discount % in Sales Voucher Screen & Printing, but it is in Item Batch Allocation.

    Code:
    [Field: VCHBATCH Discount2] ;; Batch Discount Field to remove the percent format
     
        Use        : Number Field
        Width      : @@VCHDiscountWidth
        Style      : Small Bold
        Align      : Right
        Storage    : Batch Discount2
        Set always  : Yes
        Skip On    : If @@IsExciseSupplementaryInv Then $$Line > 1 OR @@NoBaseUnits OR $$IsEmpty:#VCHBatchOrigBilledQt Else +
                      $$Line > 1 OR $$IsEmpty:$BilledQty OR (NOT @@DoEditAll AND $$IsValidPriceLevel:$PriceLevel AND @@StdVchFldSkipCond)
        Inactive    : If @@IsExciseSupplementaryInv Then @@NoBaseUnits OR $$IsEmpty:#VCHBatchOrigBilledQty Else +
                      @@NoBaseUnits OR @@BatchAllocBreak OR NOT (@@IsInvoice OR @@RejInvoice) OR (NOT $$IsDiscountsOn AND NOT $HasDiscounts)
        Format      : "NoZero,Percentage"
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    [Field: VCH Discount2]
    ;Use: VCH Discount
    Use        : Number Field
        Width      : @@VCHDiscountWidth
        Align      : Right
        Style      : Normal Bold
        Storage    : Discount2
        Set always  : Yes
        Format      : "NoZero,Percentage"
    Skip on: $$GetIsVCHDiscountSkipOn:$BilledQty
      Invisible  : If (@@IsJobOrderOut OR @@IsJobOrderIn) Then Yes Else NOT @@WithDiscount OR @@AcctsInvoice
    
    If anyone has done tdl for Double Discount, please focus on this
    Thanks & Regards
     

    Attached Files:

    • 123.png
      123.png
      File size:
      18 KB
      Views:
      179



  2. not working.

    after installing it is not showing in voucher
     



  3. Please help me i need double discount in tally above code is not working..
     



  4. [Field: VCH Discount2]
    ;Use: VCH Discount
    Use : Number Field
    Width : @@VCHDiscountWidth
    Align : Right
    Set As : $$CollectionField:$BatchDiscount2:1:BatchAllocations
    Style : Normal Bold
    Storage : Discount2
    Set always : Yes
    Format : "NoZero,Percentage"
    Skip on: $$GetIsVCHDiscountSkipOn:$BilledQty
    Invisible : If (@@IsJobOrderOut OR @@IsJobOrderIn) Then Yes Else NOT @@WithDiscount OR @@AcctsInvoice
     



  5. Try Above Code. It's Working Fine.
     




  6. Amit Mahajan

    Amit Mahajan New Member


    not able to use please help me
     


  7. Amit Mahajan

    Amit Mahajan New Member


    Please solve attached issue
     

    Attached Files:

    • dd.png
      dd.png
      File size:
      163.1 KB
      Views:
      110
    • dd2.txt
      File size:
      4.8 KB
      Views:
      82



  8. can u provide me in percentage instead of amount
     


Share This Page