Skip to content

Commit

Permalink
fix: delivery note creation issue (#42696)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Aug 9, 2024
1 parent 2312757 commit b65072c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/stock/doctype/delivery_note/delivery_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ def set_serial_and_batch_bundle_from_pick_list(self):
return

for item in self.items:
if item.use_serial_batch_fields:
continue

if item.pick_list_item and not item.serial_and_batch_bundle:
filters = {
"item_code": item.item_code,
Expand Down
1 change: 1 addition & 0 deletions erpnext/stock/doctype/pick_list/pick_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,7 @@ def map_pl_locations(pick_list, item_mapper, delivery_note, sales_order=None):
dn_item.qty = flt(location.picked_qty) / (flt(location.conversion_factor) or 1)
dn_item.batch_no = location.batch_no
dn_item.serial_no = location.serial_no
dn_item.use_serial_batch_fields = location.use_serial_batch_fields

update_delivery_note_item(source_doc, dn_item, delivery_note)

Expand Down

0 comments on commit b65072c

Please sign in to comment.