mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
fix: Patch
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import frappe
|
||||
|
||||
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("""
|
||||
UPDATE `tabTax Withholding Category` set round_off_tax_amount = 0
|
||||
WHERE round_off_tax_amount IS NULL
|
||||
|
||||
Reference in New Issue
Block a user