Item update VAT on creation
Hi all,
I'm looking to auto update the VAT field upon creation of a new item, I've written the following Custom Function, however it doesn't appear to work...
Any ideas appreciated!
itemID = item.get("item_id");
organizationID = organization.get("organization_id");
itemMap = Map();
item.update("tax_name","Standard Rate");
item.update("tax_percentage","20.00");
item.update("tax_type","ItemAmount");
item.update("taxable","true");
item.update("tax_name_formatted","Standard Rate [20%]");
result = zoho.books.updateRecord("items",organizationID,itemID,itemMap,"zbooks");