mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
[Fix] Budget not working properly
This commit is contained in:
11
erpnext/patches/v7_2/set_null_value_to_fields.py
Normal file
11
erpnext/patches/v7_2/set_null_value_to_fields.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
fields = {"Cost Center": "project", "Project": "cost_center"}
|
||||
for budget_against, field in fields.items():
|
||||
frappe.db.sql(""" update `tabBudget` set {field} = null
|
||||
where budget_against = %s """.format(field = field), budget_against, debug=1)
|
||||
Reference in New Issue
Block a user