AUTO DISCOUNT UPDATE [resolved]

Discussion in 'Free Source Codes' started by B PRAVEENKUMAR, Nov 21, 2016.

    
  1. B PRAVEENKUMAR

    B PRAVEENKUMAR New Member


    /* TDL to reset the discount basesd on the cash paid by customer
    it is useful where bargain system prevail. It alters the discount column based on the total amount and the cash paid
    by the customer.
    For example, IF the total amount is RS 100 and the customer pays only Rs 90 then the discount of the stock items is updated
    and the total amount becomes Rs 90.
    by : Praveen Rathod */
     

    Attached Files:

    Last edited: Nov 25, 2016


  2. rmraja

    rmraja Active Member


    Super Sir
     
    B PRAVEENKUMAR likes this.


  3. Umashankar

    Umashankar Member


    Total sales bill amount backs to the original one. Kindly rectify. Thanks in advance.
     



  4. Dear Sir,
    Can you provide quantity wise discount (per Qtld. or per kg. multiplied by rupees ) in sales voucher
    Example -
    Qty. Rate. Discount Disc. amount Total Amount
    365 100 1 (per qty.) 365 36135
     


  5. Amitkumar

    Amitkumar Member


    You can try price level feature ....
     


  6. ebek

    ebek Member


     


  7. B PRAVEENKUMAR

    B PRAVEENKUMAR New Member


    Solved the final code is as attached
    its simple i have already implemented that, just add another column before discount column and use a system formula to calculate it as billedqty * rate
     


  8. B PRAVEENKUMAR

    B PRAVEENKUMAR New Member


    its working fine, please enable separate discount column in sales voucher
     


  9. B PRAVEENKUMAR

    B PRAVEENKUMAR New Member


    the tdl for your query
     

    Attached Files:




  10. Dear sir,
    in this tdl discount not based in qty. its based on amount %
    i want ,if qty is 365 kg then discount should be 365 if discount rate we put 1 per kg.
     


  11. saif

    saif New Member


    Ebek said.

    [#Field: EI ValueSubTotal]
    Inactive:Not $$IsSales:##SVVoucherType
    [#Field:EIAccRate]
    Set as: if ($$IsSales:##SVVoucherType and #EIAccDesc="Cash Discount" and #EIValueSubTotal > 1 and #EIValueSubTotal < 5000 ) Then -5 Else $$Value
    Set Always:$$IsSales:##SVVoucherType

    ;Cash Discount up to (1 to 15)% don`t control.
     
    rmraja likes this.


  12. B PRAVEENKUMAR

    B PRAVEENKUMAR New Member


    You can customise tally as you want .... Its very flexible.... get help from any professional TDL coder he will do it for you.
     



  13. well said
    :)
     


  14. Manohar Gupta

    Manohar Gupta New Member


    Sir I have made one TDL for invoice Printing, Its workinfg file in normal mode but when i open it in view mode by given security No Create/Alter then its show in tally's default format.

    What should I do?
     


  15. Mohan.S

    Mohan.S Member



    But in alter mode every time the rate field will be changed that is wrong.
     


  16. Avipul93

    Avipul93 New Member


    can you do it for my client.
     


  17. Avipul93

    Avipul93 New Member


    can you do it for my client.
     


Share This Page