Print Settings for different company

Discussion in 'Free Source Codes' started by ankitda, Aug 7, 2018.

    
  1. ankitda

    ankitda New Member


    Hello,

    I am using two companies in tally. I need different print configuration for the selected company. For example, one company prints the Sales Invoice in Simple Format with no mailing details. This format is used when I want to print Cash invoices

    The other company prints the Sales Invoice in detailed format.

    I have to change the setting each time based on the company selected which is very tedious.

    Can anyone help with a tdl so that each company has its own print setting?

    Thanks in advance
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Code:
    [#Line: SASimple]
    Local    : Field    : Logical Field : Set as : If $BasicCompanyFormalName:Company:##SVCurrentCompany="ABC & Co." Then Yes Else No
    
    [#Report: VchF12Config SalesInvoice]
    Set : SASimple : If $BasicCompanyFormalName:Company:##SVCurrentCompany="ABC & Co." Then Yes Else No
    
    [#Variable: SASimple]
    Persistent  : Yes
    Type        : Logical
    Default     : If $BasicCompanyFormalName:Company:##SVCurrentCompany="ABC & Co." Then Yes Else No
    
    But owing to the fact that TALLY uses a common config file.... you will have to do the following.......
    After pressing Ctrl+P....press F12...then Press Ctrl+A .... the rest will be automatic.
    In the above code....replace "ABC & Co." with your company's formal name...i.e. the mailing name.......
     


  3. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Technically you can avoid the above steps....if you open TALLY in multiple times..... i.e. open tally with Company wherein you want simple invoice......and in another instance of Tally...open companies for other print profiles.
     


  4. ankitda

    ankitda New Member


    Thanks for replying.

    I have been doing this by opening two instances of Tally and changing the setting once every day.
    The code will only change the format to Simple mode based on the company name right? I am attaching my print configs of both my companies. Kindly check and help me with tdl file.

    Thanks in advance
     

    Attached Files:



  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Well that is whole lot of coding.....which am sure you can do it on your own..........you can refer to TALLY Developer for F12 Configuration and you can follow the sample code that i have provided you above.......It is doable and if you have any problem.....i can help you out..........

    But I do not have time nor inclination to divert from my own projects to make TDL..........

    It will be a good learning exposure......good luck
     


  6. ankitda

    ankitda New Member


    Thank you so much for your time. I will try this.
    Can you refer me a link for Tally developer modules? It would be really helpful

    Thanks again
     


  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    In Tally Developer....press Ctrl+D....and search for this..........
    Report: VchF12Config SalesInvoice

    U can scroll down and find relevant fields relation to your requirement..... In each and every one of them....just follow the example i have done as shown in earlier post........
    You can also open Tally in developer mode....hover about the field you want set to YES....and it will give you that field name......
     


  8. Araali12

    Araali12 New Member


    Please anyway to disable print in voucer create before save
     


  9. NAGARAJKMAR SUBRAMANIAN

    NAGARAJKMAR SUBRAMANIAN Active Member


    [#Key: PrintButton]
    Disable : $$InCreateMode
     


  10. Santosh

    Santosh Member


    Sir
    require company with two invoice format print with selection Invoice format 1 & Invoice format 2
    please help
     


  11. Araali12

    Araali12 New Member


    Am getting error T0014: attribute disable is not valid for key
     


  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Yes it is not.......so remove that line and it will work.
     


  13. Araali12

    Araali12 New Member


    Worked after adjusting to this.. thank you so much


    [#Key: PrintButton]
    Inactive : $$InCreateMode
     


Share This Page