mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-25 17:48:30 +00:00
fix: removed lost reason detail
(cherry picked from commit 9bb60405e7)
# Conflicts:
# erpnext/patches.txt
This commit is contained in:
committed by
ruthra kumar
parent
38679d6d14
commit
3c33a19634
@@ -464,3 +464,4 @@ erpnext.patches.v16_0.set_ordered_qty_in_quotation_item
|
||||
erpnext.patches.v16_0.migrate_transaction_deletion_task_flags_to_status # 2
|
||||
erpnext.patches.v16_0.update_company_custom_field_in_bin
|
||||
erpnext.patches.v15_0.replace_http_with_https_in_sales_partner
|
||||
erpnext.patches.v15_0.delete_quotation_lost_record_detail
|
||||
|
||||
11
erpnext/patches/v15_0/delete_quotation_lost_record_detail.py
Normal file
11
erpnext/patches/v15_0/delete_quotation_lost_record_detail.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import frappe
|
||||
from frappe.query_builder import DocType
|
||||
|
||||
|
||||
def execute():
|
||||
qlr = DocType("Quotation Lost Reason Detail")
|
||||
quotation = DocType("Quotation")
|
||||
|
||||
sub_query = frappe.qb.from_(quotation).select(quotation.name)
|
||||
query = frappe.qb.from_(qlr).delete().where(qlr.parent.notin(sub_query))
|
||||
query.run()
|
||||
Reference in New Issue
Block a user