2021-07-28 07:27:59 +00:00
|
|
|
import frappe
|
|
|
|
|
2021-09-02 11:14:59 +00:00
|
|
|
|
2021-07-28 07:27:59 +00:00
|
|
|
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"):
|
2021-07-28 07:27:59 +00:00
|
|
|
frappe.db.sql("""
|
|
|
|
UPDATE `tabTax Withholding Category` set round_off_tax_amount = 0
|
|
|
|
WHERE round_off_tax_amount IS NULL
|
|
|
|
""")
|