brotherton-erpnext/erpnext/patches/v13_0/update_tds_check_field.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
307 B
Python
Raw Normal View History

import frappe
def execute():
2021-07-28 10:00:05 +00:00
if frappe.db.has_table("Tax Withholding Category") and frappe.db.has_column(
"Tax Withholding Category", "round_off_tax_amount"
):
frappe.db.sql(
"""
UPDATE `tabTax Withholding Category` set round_off_tax_amount = 0
WHERE round_off_tax_amount IS NULL
"""
)