Welcome to Portal

?Unknown\pull-down

Welcome to Zoho Cares

Bienvenido a Soporte de Zoho

Search our knowledge base, ask the community or submit a request.



Hello, everyone! Welcome back to our series.

It's the holiday season, marking a time when businesses witness increased demand for products and services, leading to a significant boost in sales. This also presents an opportunity for businesses to engage with their customers. As a gesture of appreciation and gratitude, many businesses opt to include complimentary items with customer purchases to enhance the overall shopping experience. Today, we bring you a custom function that automatically adds a complimentary/free item to the invoice based on the total purchase amount. 

Prerequisites: 

1. Create a Connection named "zbooks" to successfully execute the function. You can watch the GIF attached below to know how to create the connection. 



2. The items that will be given as free should exist under the Items module in Zoho Books.

3. To determine both when and what item should be given as complimentary, define distinct rate slabs in the script and assign a corresponding free item to each slab. In today's script, we have pre-defined 3 rate slabs.
If the invoice total is between $100 - $499, it is eligible for the free item A.
If the invoice total is between $500 - $999, it is eligible for the free item B.
If the invoice total is more than $1000, it is eligible for the free item C.

4. Create a Check Box-type custom field by the name "Include Free item?" for Invoices. Only when this field is ticked, the function will be executed to check the applicable rate slab.



Custom Function:

Navigate to Settings -> Automation -> Workflow Actions -> Custom Functions -> +New Custom Function > Add the function code from this GitHub link

Note: The custom function will be executed after the invoice is saved. 

Workflow Rule: 
 
Go to Settings -> Automation -> Workflow Rules -> +New Workflow Rule and set up the workflow rule as shown below:-






Here's how it works:

After creating ("Include Free item?" should be True) and saving an invoice, the custom function kicks in, checking the rate slab associated with the invoice. Based on the identified rate slab, the function automatically adds the corresponding free item. 

Try out this function and drop your feedback in the comments section. If you have any specific customizations in mind, don't hesitate to reach out to our support desk at support[at]zohobooks[dot]com. We're here to assist you.

Stay tuned for our next custom function. Until then, have a joyful holiday season!

Regards,
Shireen Farhana
Zoho Books

2 users like this announcement.
7 Replies
Reply

thats great .

i would like to apply this function on sale order and estimate also

2) Dear Team,

We are planning a unique promotional strategy where a selected item will be offered for free in our customers' invoices for a set number of days. It's crucial to ensure that this promotional item is only included once per customer to maintain fairness and accuracy. This means that if a customer has already been invoiced for the item, it should not appear again in their subsequent invoices during the promotional period. Please design and implement a workflow that accommodates this requirement.

Looking forward to your innovative solutions!

Hello Sandeep Singla, 

Thanks for posting on our forums.

We understand that you are looking to have this free items to be updated in Estimates and Sales Orders. The necessary changes has been made to the code and is attached here. Kindly replicate the same workflow as mentioned earlier for Estimates and  Sales Orders, use this custom function to handle this. 

Also, the other requirement raised based on the Items to be restricted when they are already invoiced to customers, is not possible at the moment and will keep this space posted with the future updates. 

If you have any further queries, please feel free to reach out to us.

Regards, 
Naveen Promoth D
Zoho Cares.

_94505852 - estimate.rtf3 KB
_94505852 - so.rtf3 KB

ok thank you 

  • 6 months ago

Hello
 
 
Is it possible to auto populate items in an Invoice or Quote once i choose the customer using workflow? If so, what are the steps and the code i need to use.

  • 6 months ago

Hello @Info, 

Thanks for posting on our forums.

We understand you're looking to update items based on the selected contact. Unfortunately, this feature isn't available at the moment.

If you have any further queries, please reach out to us. Happy to help. 

Regards, 
Naveen Promoth D
Zoho Cares.

I would like to do something similar.

Is it possible to add an item to a sales order based on the province the order is being shipped to instead of the invoice total?

  • 12 days ago

Hello Michael Vroom,

Thank you for using our forum.

To explore the possibility of achieving this automation, we would need to understand your specific use case and the number of provinces to which you invoice. Please reach out to us at 'support.usa@zohobooks.com' with these details, and we will be happy to assist you further.

Regards,
Basil Roy
Zoho Cares.

Reply to Shireen FarhanaA
/* */
  • 12
  • Insert
  • Plain text
Add Comment
(Up to 20 MB )