Much like the custom function we shared last week, today's function also aims to facilitate the automatic association of invoice templates.
When you're managing business operations across various branches, there may be a need to create and send invoices using templates that are specific, to each branch. To handle this, you can design invoice templates for each branch and simply name each template after its corresponding branch. After this setup, you can automate the template selection using a custom function. This function, when executed, will automatically associate the appropriate template at the invoice level based on the branch chosen in the invoice.
Note: Branches are available in Global, UAE, KSA, Bahrain, UK, Oman, Qatar, Kuwait, and South Africa editions.
Prerequisites:
1. Create a
Connection named "zbooks" to successfully execute the function. You can watch the GIF attached below to learn how to create the connection.
In the final step of this workflow rule, associate the custom function you created and then hit Save.
Here's how the custom function will work:
Once you create and save an invoice in draft, the custom function will be executed. The function will check the branch chosen in the invoice and then automatically associate the corresponding template.
We believe that this custom function will be valuable in reducing the need for manual work. Please don't hesitate to share your thoughts or feedback regarding our custom functions. We would greatly appreciate hearing your opinions.
Regards,
Shireen Farhana S
Zoho Books