quantity field input validation

Discussion in 'Tally.ERP 9' started by Manoj Anandan, Apr 23, 2017.

    
  1. Manoj Anandan

    Manoj Anandan Member


    is it possible to write a tdl for the quantity field to accept either whole or half of the unit
    like(1,1.5,2,2.5) and not values like (1.2,1.3,1.6,1.9)
     


  2. NAGARAJKMAR SUBRAMANIAN

    NAGARAJKMAR SUBRAMANIAN Active Member



  3. NAGARAJKMAR SUBRAMANIAN

    NAGARAJKMAR SUBRAMANIAN Active Member


    use validate attribute in Field Level
     


  4. Manoj Anandan

    Manoj Anandan Member


    Thanks a lot sir
     


  5. Manoj Anandan

    Manoj Anandan Member


    is it also possible to display the quantity 0.5 as "1/2" while printing it
     


  6. Manoj Anandan

    Manoj Anandan Member


    [Function : multiof]
    Parameter: Inp : Number
    Returns: Number
    Variable: n:Number
    1:While :Inp >0.0
    2:Set :Inp:Inp-0.5
    3:End While
    4:If:Inp=0.0
    5:Set:n:2
    6:Else
    7:Set:n:1
    8:End If
    9:Return :n
    [#Line: CI InvInfo]


    Local:Field:VCHBilledQty :Validate: ($$multiof:$$Value)=2



    Sir can u Pls find out the error
     


  7. Manoj Anandan

    Manoj Anandan Member


    Sir I found out the error. Now I need Help regarding the Printing alone
     


Share This Page