Dear all i am trying to ADD HEADER to TAX Invoice but unable to get the required outcome.kidnly help

Discussion in 'Free Source Codes' started by Dilip S H, Nov 28, 2022.

    
  1. Dilip S H

    Dilip S H Member


    Required format as below

    upload_2022-11-28_16-51-44.png


    Format after the My code added in tally is below.

    upload_2022-11-28_16-52-16.png





    My code:

    [#Part: VTYP Behaviour]

    Add:Line:At End:VTYP_ADD,JL_headerlogo

    [Line:VTYP_ADD]
    Field:Long Prompt,inv
    Local:Field:Long Prompt:Info:"Enable HEADER"
    Local:Field:Lomg Prompt:Color:red


    [Line:JL_headerlogo]

    Fields : Medium Prompt,JL_headerlogo
    Local : Field : Medium Prompt : Info : $$Localestring:"Location of Header:"
    Space Top : 0.3

    [Field :JL_headerlogo]

    Use : Name Field
    Case : Normal
    Storage : AdditionalSeal
    Setalways : Yes
    Width : 150



    [System : UDF]

    headerlogo : String : 760



    [Field:inv]
    Type:Logical
    Use:Logical Field
    Storage:inv

    [System:UDF]
    inv:logical:40150

    [System: Formula]
    EnableInvFormat : $inv:VoucherType:##SVVoucherType = "Yes"

    [#Part : EXPINV OpPageBreak]
    Delete:part:CMP Details

    Add:Option : MyEXPINV OpPageBreak:mad:@EnableInvFormat

    [!Part:MyEXPINV OpPageBreak]

    Add : Part : At Beginning : HEADER

    [Part : HEADER]

    Horizontal Alignment:Right
    Line:Empty
    invisible:Not $$InPrintMode
    Graph type:$headerlogo:VoucherType:##SVVoucherType
    Width : 100 screen
    Height : 13% screen


    Request suggest what changes need to be done.

    Regards,
    Dilip S H
     

    Attached Files:



  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Just like you added the HEADER and deleted the default PART : CMP Details............

    Same manner, find the code for the Invoice and delete those PARTS that you do not need.
     
    Jaydeep Shah likes this.


  3. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    from the TITLE of the Post, you are unable to get the HEADER..........

    But from the screenshot, you are able to get the HEADER ......... so what exactly is the issue??

    from the 2 photos and my understanding you do not want the PART containing the co. name, adddress, GST etc etc .......
     


  4. Dilip S H

    Dilip S H Member


    i want to remove company name and address
    instead i am trying to add a header with complete details of company the image format.

    can we guide me where can i find the parts for the same to remove.
     


  5. Dilip S H

    Dilip S H Member


    first image is not from code sir, its edited in paint shared here
     


  6. Dilip S H

    Dilip S H Member


    upload_2022-11-28_18-3-19.png

    This is output i am getting from the code which i wrote sir
     

    Attached Files:



  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You can find the PART in Form: Printed Invoice ..............

    within that there are many OPTIONS ......... find the correct one as per your Data-set and Delete the PART that you do not need.
     


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Your code is about adding a HEADER ........ no code exists for removal of the unwanted PART........ so obviously it will add the header but not delete the co.Part
     


  9. Dilip S H

    Dilip S H Member


    Thank you sir i removed the part which wasn't required.
    instead of above Title how to add the header below tile "TAX invoice sir"
     


  10. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Add a PART after the Image PART
     


  11. Dilip S H

    Dilip S H Member


    Dear Sir,

    Sir,
    as per your guidelines i have removed the part and all for title and header border given.

    Please suggest how to fix the alignment please
    upload_2022-11-29_15-47-31.png
     

    Attached Files:



  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    In field level ........use ........ full width : yes
     


  13. Dilip S H

    Dilip S H Member


    [#Part: EXPINV SaleTopLeft]
    Delete:part: EXPINV Company

    [#Part: EXPINV Title]
    Border:thick cover

    ;;;;;;;;;;;;;;;;;;;;;


    [#Part: VTYP Behaviour]
    Add:Line:At End:VTYP_ADD,JL_headerlogo

    [Line:VTYP_ADD]
    Field:Long Prompt,inv
    Local:Field:Long Prompt:Info:"Enable HEADER"
    Local:Field:Lomg Prompt:Color:red

    [Line:JL_headerlogo]

    Fields : Medium Prompt,JL_headerlogo
    Local : Field : Medium Prompt : Info : $$Localestring:"Location of Header:"
    Space Top : 0.3

    [Field :JL_headerlogo]

    Use : Name Field
    Case : Normal
    Storage : headerlogo
    Setalways : Yes
    ;Width : 150
    full width : yes

    [System : UDF]
    headerlogo : String : 760

    [Field:inv]
    full width : yes
    Type:Logical
    Use:Logical Field
    Storage:inv

    [System:UDF]
    inv:logical:40150

    [System: Formula]
    EnableInvFormat : $inv:VoucherType:##SVVoucherType = "Yes"

    [#Part : EXPINV OpPageBreak]

    Add:Option : MyEXPINV OpPageBreak:mad:@EnableInvFormat

    [!Part:MyEXPINV OpPageBreak]

    Add : Part : At Beginning : HEADER

    [Part : HEADER]
    Border:thick cover
    Horizontal Alignment:Right
    Line:Empty
    invisible:Not $$InPrintMode
    Graph type:$headerlogo:VoucherType:##SVVoucherType
    Width : 100 screen
    Height : 13% screen
     


  14. Dilip S H

    Dilip S H Member


    FULL width given sir but no changes its coming same way
     


  15. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    use that in the LOGO field/PART ......... OR width : 100% screen
     


  16. Dilip S H

    Dilip S H Member


    Thanks for the guidance sir

    upload_2022-11-29_18-40-32.png


    I have done the changes now header is coming properly sir.

    Right Top part getting shrink sir after doing below changes.

    [Part : HEADER]
    Border:thick cover

    Horizontal Alignment:Centre
    Line:Empty
    invisible:Not $$InPrintMode
    Graph type:$headerlogo:VoucherType:##SVVoucherType
    Width : 130
    Height : 13% screen
     

    Attached Files:



  17. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    try to do R&D .... with width sizes and alignment...........
    Study the default code for Printed Invoice in Developer...........
     
    Jaydeep Shah likes this.


Share This Page