Printing a form by adding option on Voucher Printing Screen

Discussion in 'General Discussions' started by Omkar, Jun 26, 2014.

    
  1. Omkar

    Omkar New Member


    I have query on Payment Voucher Printing setting
    As you can see in below screen. I have added one more option i.e “Print outward Declaration” in voucher printing
    By default I will set it as “No”, when I set it as “Yes” It will open one more form i.e “outward form” in print mode.
    How can I achieve this? kindly help….

    Code for the Screen I:

    [#Part:BankPymtAdvicePrintCfg]
    Line:printOutwardDeclaration
    [Line:printOutwardDeclaration]
    Field : Long Prompt, PrintOutwardDeclaration
    Local : Field : Long Prompt : Set as : $$LocaleString:"Print Outward Declaration" + ":"

    [Field: PrintOutwardDeclaration]
    Use : Logical Field
    Set as : No
    Variable : IsOutwardPrint
    Modifies : IsOutwardPrint : Yes
    [Variable:IsOutwardPrint]
    Type : Logical

    [System: Variables]
    IsOutwardPrint : No

    Code for the Screen II:
    [#Form:payment color]
    Add: Option: myprintoopt : ##IsOutwardPrint=yes


    [!Form: myprintoopt]
    Delete:print ;;:pymtRcpt Print
    add:print: outward

    [#Menu:display menu]
    Add:Item:Outward:Display:eek:utward


    [Report:eek:utward]
    Use: PymtRcpt Print

    Form:eek:utward_frm
    [Form:eek:utward_frm]

    Space Right: 2 cms
    Space Left:2 cms
    Button:print button,export button,mail button
    Width:100% screen
    Height:100% screen

    Part:p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13;,VCHCURRENCY_Explosion_new
    [Part:p1]
    Line:p1_l1
    [Line:p1_l1]
    Space Top:2.54 cms
    Field:p1_l1_f1,p1_l1_f2

    [Field:p1_l1_f1]
    Set as:"Date:"
    Style: Normal Bold

    Align:Left
    [Field:p1_l1_f2]
    Type : String
    Width : @@ShortDateWidth
    Max : @@MaxNumberWidth
    Style : Normal Bold
    Format : Universal Date
    Set as : $Date



    [Part:p2]
    Line:p2_l1,p2_l2,p2_l3,p2_l4,p2_l5,p2_l6,p2_l7,p2_l8
    [Line:p2_l1]
    Space Top:0.3 cms
    Field:p2_l1_F1
    [Field:p2_l1_F1]
    Set as:"To,"
    Align:Left
    [Line:p2_l2]
    Field:p2_l2_F1
    [Field:p2_l2_F1]
    Set as:"The Manager,"
    Style: Normal Bold
    Align:Left
    [Line:p2_l3]
    Field:p2_l3_F1
    [Field:p2_l3_F1]
    Set as:"HDFC BANK LTD."
    Style: Normal Bold
    Align:Left
    [Line:p2_l4]
    Field:p2_l4_F1
    [Field:p2_l4_F1]
    Set as:"Trade Finance Department"
    Align:Left
    [Line:p2_l5]
    Field:p2_l5_F1
    [Field:p2_l5_F1]
    Set as:"Dhiraj Kawal, Ground Floor,"
    Align:Left
    [Line:p2_l6]
    Field:p2_l6_F1
    [Field:p2_l6_F1]
    Set as:"L.B.S. Road, Near Petrol Pump,"
    Align:Left
    [Line:p2_l7]
    Field:p2_l7_F1
    [Field:p2_l7_F1]
    Set as:"Vikhroli (W),"
    Align:Left
    [Line:p2_l8]
    Field:p2_l8_F1
    [Field:p2_l8_F1]
    Set as:"Mumbai 400 078."
    Align:Left
    [Part:p3]
    Line:p3_l1
    Space Top:0.5 cms
    [Line:p3_l1]
    Field:p3_l1_f1
    [Field:p3_l1_f1]
    Set as:"Dear Sir,"
    Align:Left
    [Part:p4]
    Line:p4_l1
    Space Top:0.5 cms
    [Line:p4_l1]
    Field:p4_l1_f1,p4_l1_f2
    [Field:p4_l1_f1]
    Set as:"Ref:"
    Style: Normal Bold
    [Field: p4_l1_f2]
    Set as:"Declaration for making Outward Remittance / Import Payment / LC payment."
    [Part:p5]
    Line:p5_l1,p5_l2
    Space Top:0.5 cms
    [Line:p5_l1]
    Field:p5_l1_f1
    [Field:p5_l1_f1]
    Set as:"We submit the following in connection with our request for making the Outward Remittance /"
    [Line:p5_l2]
    Field:p5_l2_f1, VCHCURRENCY Forex New

    [Field: p5_l2_f1]
    Set as:"payments towards Imports / LC payment / Buyers Credit payment of "

    [Field: VCHCURRENCY Forex New]
    Use : Amount Forex Field
    width : @@VCHAmountWidth
    Style : Normal Bold
    Storage : Amount
    Align : left
    Format : "Currency,ShowBaseSymbol"
    Skip : Yes




    [Field: p5_l2_f2]
    Set as:$amount:

    [Part:p6]
    Line:p6_l1,p6_l2,P6_L3
    Space Top:0.5 cms
    [Line:p6_l1]
    Field:p6_l1_f1
    [Field:p6_l1_f1]

    Set as:"In compliance with the directions issued by Reserve Bank of India under Foreign Exchange "
    [Line:p6_l2]
    Field:p6_l2_f1
    [Field:p6_l2_f1]

    Set as:"Management Act, vide their circular A. P. (DIR Series) Circular No. 124 dated May 10, 2012, I / We "
    [Line:p6_l3]
    Field:p6_l3_f1
    [Field:p6_l3_f1]
    Set as:"undertake to abide by the directions and declare as under:"
    [Part:p7]
    Line:p7_l1,p7_l2
    Space Top:0.5 cms
    [Line:p7_l1]
    Field:p7_l1_f1
    [Field:p7_l1_f1]

    Set as:"I / We do not have any EEFC / RFC /Diamond Dollar Account (DDA) account/s with HDFC"
    [Line:p7_l2]
    Field:p7_l2_f1
    [Field:p7_l2_f1]
    Set as:"Bank Ltd., or any other AD banks."
    [Part:p8]
    Line:p8_l1,p8_l2,p8_l3
    Space Top:0.5 cms
    [Line:p8_l1]
    Field:p8_l1_f1
    [Field:p8_l1_f1]
    Set as:"I / We are maintaining EEFC /RFC / DDA Account/s with HDFC Bank Ltd., and / or with other "
    [Line:p8_l2]
    Field:p8_l2_f1
    [Field:p8_l2_f1]
    Set as:"AD Banks. However, there is no balance available in any of these EEFC / RFC / DDA account/s for "
    [Line:p8_l3]
    Field:p8_l3_f1
    [Field:p8_l3_f1]
    Set as:"utilisation towards above remittance."
    [Part:p9]
    Line:p9_l1,p9_l2,p9_l3
    Space Top:0.5 cms
    [Line:p9_l1]
    Field:p9_l1_f1
    [Field:p9_l1_f1]
    Set as:"I / We declare that the payment is being made from our account in INR, only after fully utilizing "
    [Line:p9_l2]
    Field:p9_l2_f1
    [Field:p9_l2_f1]
    Set as:"balances available in our EEFC / RFC / DDA account/s maintained with HDFC Bank Ltd., and / or with "
    [Line:p9_l3]
    Field:p9_l3_f1
    [Field:p9_l3_f1]
    Set as:"any other AD banks"
    [Part:p10]
    Line:p10_l1
    [Line:p10_l1]
    Field:p10_l1_f1
    Space Top:1 cms
    [Field:p10_l1_f1]
    Set as:"Thanking You,"
    [Part:p11]
    Line:p11_l1
    [Line:p11_l1]
    Field:p11_l1_f1
    Space Top:1 cms
    [Field:p11_l1_f1]
    Set as:"Yours Faithfully,"
    [Part:p12]
    Line:p12_l1
    [Line:p12_l1]
    Field:p12_l1_f1
    Space Top:1 cms
    [Field:p12_l1_f1]
    Set as:"For Broadways Chemtech Pvt. Ltd."
    Style: Normal Bold
    [Part:p13]
    Line:p13_l1
    [Line:p13_l1]
    Field:p13_l1_f1
    Space Top:3 cms
    [Field:p13_l1_f1]
    Set as:"Authorised Signatory"
    Style: Normal Bold
     


  2. Omkar

    Omkar New Member


    Please find the screen shot for above coding
     

    Attached Files:



  3. Nupur

    Nupur Member


    Great sir. can you help me how to create packing slip from sales voucher only show item name qty for simple and comprehensive invoice.
     


  4. nasir

    nasir Member


    kindly help i am using 9.1.1 not able to print outward kindly guid eme
     


Share This Page