Tax Updates Revert on Zoho CRM Invoices After Running Custom Function

Tax Updates Revert on Zoho CRM Invoices After Running Custom Function

Hi everyone,
I'm running into an issue with Zoho CRM that I hope someone here can help me troubleshoot.
I've created a custom function to update the tax amount on invoices in Zoho CRM. Initially, the function runs successfully and updates the tax field as expected. However, after a few seconds, the tax value disappears and reverts to its original amount. This happens consistently every time I execute the function.



What I've checked so far:
Tax Settings: I've made sure that tax is enabled for all the products included in the invoice.
Custom Function: The function itself doesn't have any syntax errors and has the necessary permissions to make changes.
Workflow Rules: I've reviewed existing workflow rules to ensure there's nothing else that might be overriding the tax value after my custom function runs.
My questions are:
Backend Processes: Could there be any backend functionalities or default behaviors in Zoho CRM that might be causing the tax value to revert after my custom function updates it?
Best Practices: What steps can I take to ensure that the tax update made by my custom function stays persistent on the invoice?
Debugging: Are there specific logs or tools within Zoho CRM that I can use to trace why the tax value is being removed after the function executes?

Any insights or suggestions would be greatly appreciated. I'm stuck and need to ensure that the tax updates remain consistent on my invoices.

Thanks in advance!