TDL Learning Enthusiast

Discussion in 'Tally & TDL Learning HUB' started by Nithin Patel, Dec 7, 2024.

  1. Nithin Patel

    Nithin Patel New Member


    Guide me through the code plz
    Code:
    [#Form:VCHBasic InvoiceMode]
        Add        : Parts    : After    : EI PartyInfo : PreInvNo
    
    [Part:PreInvNo]
        Line    : PreInvNoLine
    [Line:PreInvNoLine]
        Field    : PreInvNoField
    [Field:PreInvNoField]
        Field    : Simple Prompt, Name Field
        Local    : Field    : Simple Prompt    : Info  :" Pre.Inv. No "
        Local    : Field    : Name Field    : Set as : If ($$IsEmpty:$PrevVCHNumber) then "  Not Available " else $PrevVCHNumber
        Local    : Field    : Name Field    : Skip : Yes
    Sales vouch no.png

    I am wrong here
    Local : Field : Name Field : Set as : If ($$IsEmpty:$PrevVCHNumber) then " Not Available " else $PrevVCHNumber
     


  2. vishnu joshi

    vishnu joshi Member


    Try this function..

    $$PrevNumber:##SVVoucherType

    Ex.

    Local : Field : Name Field : Set as :$$PrevNumber:##SVVoucherType
     


  3. Nithin Patel

    Nithin Patel New Member


    Thanks for the reply but Result not obtained (Blank)
     


  4. vishnu joshi

    vishnu joshi Member


    Is Working Properly
     


  5. vishnu joshi

    vishnu joshi Member


    Try This
    $LastNumber:VoucherType:##SVVoucherType
     


  6. Nithin Patel

    Nithin Patel New Member


    Thanks for the reply vishnu joshi
    Myself tried multiple times with your code and with other variations as you mentioned above but for me it didn't provide (blank) result(s).
    still waiting to complete the code.
    Thanks
     


  7. vishnu joshi

    vishnu joshi Member


    Is Working Properly,
    it is work only manual voucher Number Method..

    Code:
    
    [#Form:VCHBasic InvoiceMode]
        Add        : Parts    : After    : EI PartyInfo : PreInvNo
    
    [Part:preInvNo]
        Line    : PreInvNoLine
    [Line:preInvNoLine]
        Field    : Simple Prompt, PreInvNoField
        Local    : Field    : Simple Prompt : Info   :" Pre.Inv. No "
        Local      : Field     : Simple Prompt : Width     : @@VchLeftPromptWidth % Page
        Local    : Field    : Default        : Color     : Blue
            [Field    : PreInvNoField]
                 Use        : Name Field 
                 Set as     : If ($$IsEmpty:mad:@PrevVCHNumber) then "Not Available " else @@PrevVCHNumber
                 Set Always    : Yes
              
    [System:Formula]
        PrevVCHNumber : $$PrevNumber:##SVVoucherType
        
     
    Last edited: Dec 19, 2024


Share This Page