Apply unused credits automatically to bills
In our ongoing series, we previously shared a
custom function that automates the application of unused credits to your invoices. We've been listening to your feedback, and many of you have asked for a similar function to be applied to bills. And here we are today, sharing the function to automatically apply unused credits to bills. This function is executed after you create and save a bill. It automatically detects the unused credits of the vendor and applies them to offset the bill amount.
Here's a quick tip: If you want to use this function for specific bills, you can create a Check Box-type custom field that will act as a trigger to execute the function. When you create a bill, just tick this field, and the function will then be applied to that particular bill. This approach gives you the flexibility to choose when the function should be executed.
Pre-requisites:
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.
Custom Function:
Navigate to Settings -> Automation -> Custom Functions -> +New Custom Function > Add the function code from this
GitHub link.
Workflow Rule:
Go to Settings -> Automation -> Workflow Rules -> +New Workflow Rule and set up the workflow rule as shown below:-
1. To execute the function for all bills
2. To execute the function for specific bills
In the final step of this workflow rule, associate the custom function you created and then hit Save.
Note: To ensure a systematic approach, the application of unused credits will follow the order of excess payments first and then vendor credits.
Related Articles
Function #25: Automatically generate purchase orders from a sales order
Function #25: Automatically generate purchase orders from a sales order Coming to today's function, you're likely familiar with the feature in Zoho Books that allows you to raise multiple purchase orders from a sales order when item quantities are ...
Reverse Charge
Usually, vendors pay taxes to the government for selling goods or services. Reverse Charge is a mechanism by which the customer is liable to pay the tax directly to the government for goods or services that fall under Reverse Charge as specified by ...
Tax Settings
In Zoho Books, you can configure how the taxes should be tracked. Let’s take a look at them. TDS Tax Deducted at Source (TDS) is applied to a transaction when you deduct tax from the amount that must be paid to the vendor or collected from the ...
Price Lists
Price Lists Businesses have different strategies to sell products, some of which include giving discounts to loyal customers, or providing seasonal discounts on products. With Price Lists, you can set custom rates for the items that you buy from your ...
Tasks
Tasks Tasks are the to-dos that you and your users have to complete. In Zoho Books you can create, assign finance-related tasks to your users, mark them by priority, and send reminders. Notes: This feature is available only for certain plans of Zoho ...