Merge pull request #26687 from deepeshgarg007/fieldtype_fix

fix: Change fieldtype from data to check
This commit is contained in:
Deepesh Garg 2021-07-28 15:59:08 +05:30 committed by GitHub
commit 4c0dfdb398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View File

@ -94,7 +94,7 @@
{ {
"description": "Checking this will round off the tax amount to the nearest integer", "description": "Checking this will round off the tax amount to the nearest integer",
"fieldname": "round_off_tax_amount", "fieldname": "round_off_tax_amount",
"fieldtype": "Data", "fieldtype": "Check",
"label": "Round Off Tax Amount", "label": "Round Off Tax Amount",
"show_days": 1, "show_days": 1,
"show_seconds": 1 "show_seconds": 1
@ -102,7 +102,7 @@
], ],
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"links": [], "links": [],
"modified": "2021-07-26 21:47:34.396071", "modified": "2021-07-27 21:47:34.396071",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Tax Withholding Category", "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.add_missing_fg_item_for_stock_entry
erpnext.patches.v13_0.update_subscription_status_in_memberships erpnext.patches.v13_0.update_subscription_status_in_memberships
erpnext.patches.v13_0.update_export_type_for_gst erpnext.patches.v13_0.update_export_type_for_gst
erpnext.patches.v13_0.update_tds_check_field #3

View File

@ -0,0 +1,9 @@
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
""")