Multi Voucher Printing through Voucher Number Range

Discussion in 'Free Source Codes' started by subash pal, Feb 2, 2022.

    
  1. subash pal

    subash pal Member


    Dear Experts

    I Want To Multi Voucher Print Through Voucher Number Range , Following codes are works only which voucher numbering define automatic but it not working which voucher number define Automatic(Manual override) Please Help

    Codes
    [#Line : VoucherTypeName]

    Add : Field : TSPLFFEInvisibleVoucherTypeName

    [Field: TSPLFFEInvisibleVoucherTypeName]

    Set As : #VoucherTypeName
    Set Always : Yes
    Invisible : Yes

    ;; Multi voucher printing report

    [#Report: Multi Voucher Print]

    Local : Collection : MSpecific Vouchers of Company : Filter : TSPLFFEIsOfSelectedVchNo
    Variable : TSPLFFEVoucherNumberFrom,TSPLFFEVoucherNumberTo

    [#Part: MVP Print Common]

    Add : Lines : After : SVToDate : TSPLFFEVoucherNoFrom, TSPLFFEVoucherNoTo

    [Line : TSPLFFEVoucherNoFrom]

    Field : Medium Prompt,TSPLFFEVoucherNoFrom
    Local : Field : MediumPrompt :Info : "Voucher No.From:(Zero For All)"
    Local : Field : MediumPrompt :Inactive : Not @@TSPLFFEDisplayfromTo

    [Field : TSPLFFEVoucherNoFrom]

    Use : Name Field;Number Field
    Modifies : TSPLFFEVoucherNumberFrom
    Inactive : Not @@TSPLFFEDisplayfromTo

    [Line : TSPLFFEVoucherNoTo]

    Field : MediumPrompt,TSPLFFEVoucherNoTo
    Local : Field : MediumPrompt :Info : "Voucher No.To:(Zero For All)"
    Local : Field : MediumPrompt :Inactive : Not @@TSPLFFEDisplayfromTo

    [Field :TSPLFFEVoucherNoTo]

    Use : Name Field;Number Field
    Modifies : TSPLFFEVoucherNumberTo
    Set always : Yes
    Inactive : Not @@TSPLFFEDisplayfromTo

    [System : Variable]

    TSPLFFEVoucherNumberFrom : 0
    TSPLFFEVoucherNumberTo : 0

    [Variable : TSPLFFEVoucherNumberFrom]

    Type : Number
    volatile : Yes

    [Variable :TSPLFFEVoucherNumberTo]

    Type : Number
    Volatile : Yes

    [System :Formula]

    TSPLFFEIsOfSelectedVchNo:If(@@AutoVchNumbering OR @@ManualVchNumbering OR @@ManualOverrideVchNumbering) and (##TSPLFFEVoucherNumberTo > 0)+
    Then ($$IsSysName:##SVVoucherType OR $VoucherTypeName = ##SVVoucherType) +
    AND ($$Number:$VoucherNumber >= $$Number:##TSPLFFEVoucherNumberFrom +
    AND $$Number:$VoucherNumber <=$$Number:##TSPLFFEVoucherNumberTo)Else+
    If (@@TSPLFFEAutoVchNumberingOne OR @@ManualVchNumbering OR @@ManualOverrideVchNumbering) and +
    (##TSPLFFEVoucherNumberTo = 0) Then $$IsSysName:##SVVoucherType OR+
    $VoucherTypeName = ##SVVoucherType Else+
    $$IsSysName:##SVVoucherType OR $VoucherTypeName = ##SVVoucherType

    TSPLFFEAutoVchNumberingOne : $NumberingMethod:VoucherType:#TSPLFFEInvisibleVoucherTypeName = $$SysName:Automatic
    TSPLFFEDisplayfromTo : @@TSPLFFEAutoVchNumberingOne OR @@ManualVchNumbering

    ;;End of file
     


  2. subash pal

    subash pal Member


    Kindly Att. Amit Kamdar sir, Tailer Sir, Teja Verma sir Vipin Sir
    Please help me on above code
     


  3. subash pal

    subash pal Member


    Please Help me on above Codes
     


  4. subash pal

    subash pal Member


    Kindly Att. Amit Kamdar sir, Tailer Sir, Teja Verma sir, Vipin Sir, Drive sir, Garima
    Please help me on above code
     


  5. subash pal

    subash pal Member


    Dear All Experts I tried to correct several times but not get result, above codes works only when voucher Numbering define "Automatic", Please Help me , I used Auto Manual override voucher numbering
     


  6. subash pal

    subash pal Member


    Are All Expert has No Solution for above problem ?
     


  7. subash pal

    subash pal Member


    are above thread is unsolved thread
     


  8. SINTO PARAVA

    SINTO PARAVA Member


    ;;Please try like this fuctions
    ;;
    [Function:count_func_test]
    Parameter:count_from:Number
    Parameter:count_to:Number
    Variable:counter:Number
    01:Set:counter:##count_from
    03:While:##counter <= ##count_to
    04 : Walk Collection : your_collection
    05 : Do If:($$Number:$fromcount = ##counter):print:print_voucher_report;;:##pdate:##pvtype:##pnaration

    06:End Walk
    07:Increment:counter
    08: End While
    ; 16: Msg Box : "Status" : "barcode Print Successfully"


    [Collection:your_collection] ;;this is sample , you can add your own collection
    Object:count1

    [Object:count1]
    fromcount:10
    tocount:100
     


  9. Mohan.S

    Mohan.S Member


    Dear Sir,
    Attached is Multi voucher printing Tdl that is Not Working in Prime.
    pls help any one
    upload_2022-8-10_18-48-30.png
    we are typing in the config form see below that is show only "0"
    upload_2022-8-10_18-49-34.png
     

    Attached Files:



  10. subash pal

    subash pal Member


    Thanks for reply But not worked Please give me proper solution or Example
     


Share This Page