* chore: Added isort to pre-commit config * chore: Sort imports with isort * chore: Remove imports with pycln * chore: Sort imports with isort * chore: Fix import issues * chore: Fix sider issues * chore: linting * chore: linting / sorting import from ecommerce refactor merge * ci: dont allow unused imports * chore: sort / clean ecommerce imports Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
11 lines
299 B
Python
11 lines
299 B
Python
import frappe
|
|
|
|
|
|
def execute():
|
|
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
|
|
""")
|