2021-07-28 12:57:59 +05:30
|
|
|
import frappe
|
|
|
|
|
2021-09-02 16:44:59 +05:30
|
|
|
|
2021-07-28 12:57:59 +05:30
|
|
|
def execute():
|
2021-07-28 15:30:05 +05:30
|
|
|
if frappe.db.has_table("Tax Withholding Category") and frappe.db.has_column(
|
|
|
|
"Tax Withholding Category", "round_off_tax_amount"
|
|
|
|
):
|
2021-07-28 12:57:59 +05:30
|
|
|
frappe.db.sql(
|
|
|
|
"""
|
|
|
|
UPDATE `tabTax Withholding Category` set round_off_tax_amount = 0
|
|
|
|
WHERE round_off_tax_amount IS NULL
|
|
|
|
"""
|
|
|
|
)
|