mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
chore: remove patch
This commit is contained in:
@@ -342,7 +342,6 @@ erpnext.patches.v13_0.disable_ksa_print_format_for_others # 16-12-2021
|
|||||||
erpnext.patches.v13_0.update_tax_category_for_rcm
|
erpnext.patches.v13_0.update_tax_category_for_rcm
|
||||||
erpnext.patches.v13_0.convert_to_website_item_in_item_card_group_template
|
erpnext.patches.v13_0.convert_to_website_item_in_item_card_group_template
|
||||||
erpnext.patches.v13_0.agriculture_deprecation_warning
|
erpnext.patches.v13_0.agriculture_deprecation_warning
|
||||||
erpnext.patches.v13_0.set_billed_amount_in_returned_dn
|
|
||||||
erpnext.patches.v13_0.update_maintenance_schedule_field_in_visit
|
erpnext.patches.v13_0.update_maintenance_schedule_field_in_visit
|
||||||
erpnext.patches.v13_0.hospitality_deprecation_warning
|
erpnext.patches.v13_0.hospitality_deprecation_warning
|
||||||
erpnext.patches.v13_0.delete_bank_reconciliation_detail
|
erpnext.patches.v13_0.delete_bank_reconciliation_detail
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
# Copyright (c) 2022, Frappe and Contributors
|
|
||||||
# License: GNU General Public License v3. See license.txt
|
|
||||||
|
|
||||||
import frappe
|
|
||||||
|
|
||||||
from erpnext.stock.doctype.delivery_note.delivery_note import update_billed_amount_based_on_so
|
|
||||||
|
|
||||||
|
|
||||||
def execute():
|
|
||||||
dn_item = frappe.qb.DocType('Delivery Note Item')
|
|
||||||
|
|
||||||
so_detail_list = (frappe.qb.from_(dn_item)
|
|
||||||
.select(dn_item.so_detail)
|
|
||||||
.where(
|
|
||||||
(dn_item.so_detail.notnull()) &
|
|
||||||
(dn_item.so_detail != '') &
|
|
||||||
(dn_item.docstatus == 1) &
|
|
||||||
(dn_item.returned_qty > 0)
|
|
||||||
)).run()
|
|
||||||
|
|
||||||
for so_detail in so_detail_list:
|
|
||||||
update_billed_amount_based_on_so(so_detail[0], False)
|
|
||||||
Reference in New Issue
Block a user