mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
[Cleanup] Sales Common deprecated
This commit is contained in:
@@ -3,10 +3,6 @@
|
||||
|
||||
def execute():
|
||||
import webnotes
|
||||
from webnotes.model.code import get_obj
|
||||
|
||||
#sc_obj = get_obj("Sales Common")
|
||||
from selling.doctype.sales_common import sales_common
|
||||
|
||||
si = webnotes.conn.sql("""select distinct si.name
|
||||
from `tabSales Invoice` si, `tabSales Invoice Item` si_item
|
||||
@@ -16,5 +12,4 @@ def execute():
|
||||
and ifnull(si_item.sales_order, '') != ''
|
||||
""")
|
||||
for d in si:
|
||||
sales_common.StatusUpdater(get_obj("Sales Invoice", d[0], with_children=1), \
|
||||
1).update_all_qty()
|
||||
webnotes.bean("Sales Invoice", d[0]).run_method("update_qty")
|
||||
@@ -226,4 +226,6 @@ patch_list = [
|
||||
"patches.october_2013.p05_server_custom_script_to_file",
|
||||
"patches.october_2013.repost_ordered_qty",
|
||||
"patches.october_2013.repost_planned_qty",
|
||||
"patches.october_2013.p06_rename_packing_list_doctype",
|
||||
"execute:webnotes.delete_doc('DocType', 'Sales Common')",
|
||||
]
|
||||
Reference in New Issue
Block a user