How to control my Date Field

Discussion in 'Tally Developer' started by Partha Mondal, Jun 17, 2018.

    
  1. Partha Mondal

    Partha Mondal Member


    Dear
    Admin sir,

    I am new in TDL. I want to modify Receipt voucher. I add 6 no of UDF. All field are store & working fine.
    But I want <Booking Date> field is unique, means cannot duplicate. I use <UNIQUE : YES> but not working.

    I attach my code.

    Please help me sir.
     

    Attached Files:



  2. HVPatel

    HVPatel Active Member


    to control booking date, means you want not to allow same booking date entry, then; try as

    Code:
    ;;add control in your field
    Control   :   DateBookedMsg   :   $$NumItems:DateBookedColl > 0
    
    ;;and create a collection
    [Collection: DateBookedColl]
       Type   : Voucher
       Filter   : IsReceipt, SameDate
       Fetch   : TSPLBanqBookDt, Date
    
    ;; and create system formula
    
      DateBookedMsg   :   "Not Allowed"
       SameDate     : $TSPLBanqBookDt=#TSPLBanqBookDt
    Regards
     
    dipika and Amit Kamdar like this.


  3. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Working fine.......
     


  4. Partha Mondal

    Partha Mondal Member


    Thank you...
    it is working fine now.
     


  5. Partha Mondal

    Partha Mondal Member


    Thank you...
    it is working fine now.
     


Share This Page