fix: Chnage fieldtype from data to check

This commit is contained in:
Deepesh Garg 2021-07-28 12:57:59 +05:30
parent 7365e9704f
commit 9350249941
3 changed files with 11 additions and 2 deletions

View File

@ -94,7 +94,7 @@
{
"description": "Checking this will round off the tax amount to the nearest integer",
"fieldname": "round_off_tax_amount",
"fieldtype": "Data",
"fieldtype": "Check",
"label": "Round Off Tax Amount",
"show_days": 1,
"show_seconds": 1
@ -102,7 +102,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2021-07-26 21:47:34.396071",
"modified": "2021-07-27 21:47:34.396071",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Tax Withholding Category",

View File

@ -294,3 +294,4 @@ erpnext.patches.v13_0.update_level_in_bom #1234sswef
erpnext.patches.v13_0.add_missing_fg_item_for_stock_entry
erpnext.patches.v13_0.update_subscription_status_in_memberships
erpnext.patches.v13_0.update_export_type_for_gst
erpnext.patches.v13_0.update_tds_check_field #3

View File

@ -0,0 +1,8 @@
import frappe
def execute():
if 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
""")