fix: Patch
This commit is contained in:
parent
8c7d9efa9d
commit
6ac68f3bc7
@ -1,7 +1,8 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
if frappe.db.has_column("Tax Withholding Category", "round_off_tax_amount"):
|
if frappe.db.has_table("Tax Withholding Category") \
|
||||||
|
and frappe.db.has_column("Tax Withholding Category", "round_off_tax_amount"):
|
||||||
frappe.db.sql("""
|
frappe.db.sql("""
|
||||||
UPDATE `tabTax Withholding Category` set round_off_tax_amount = 0
|
UPDATE `tabTax Withholding Category` set round_off_tax_amount = 0
|
||||||
WHERE round_off_tax_amount IS NULL
|
WHERE round_off_tax_amount IS NULL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user