From e970616b511e8aaa1a07fd96030029992ed2e6f6 Mon Sep 17 00:00:00 2001 From: Krithi Ramani Date: Tue, 15 Mar 2022 21:52:34 +0530 Subject: [PATCH] removed semicolon for break statement --- erpnext/stock/doctype/pick_list/pick_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/pick_list/pick_list.py b/erpnext/stock/doctype/pick_list/pick_list.py index 915400aa64..598378a95c 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.py +++ b/erpnext/stock/doctype/pick_list/pick_list.py @@ -390,7 +390,7 @@ def create_delivery_note(source_name, target_doc=None): for n in pick_list.locations : if not n.sales_order: is_item_wo_so = 1 - break; + break if is_item_wo_so == 1: # Create a DN for items without sales orders as well delivery_note = create_dn_wo_so(pick_list) @@ -433,7 +433,7 @@ def create_dn_with_so(sales_dict,pick_list): }, 'condition': lambda doc: abs(doc.delivered_qty) < abs(doc.qty) and doc.delivered_by_supplier!=1 } - break; + break if delivery_note: # map all items of all sales orders of that customer for so in sales_dict[customer]: