fix: Chnage fieldtype from data to check
This commit is contained in:
parent
441adf763f
commit
8c7d9efa9d
@ -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",
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
8
erpnext/patches/v13_0/update_tds_check_field.py
Normal file
8
erpnext/patches/v13_0/update_tds_check_field.py
Normal 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
|
||||||
|
""")
|
||||||
Loading…
x
Reference in New Issue
Block a user