mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-25 22:21:31 +01:00
fix: delivery note creation issue (#42696)
(cherry picked from commit b65072cd98)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -328,6 +328,9 @@ class DeliveryNote(SellingController):
|
|||||||
return
|
return
|
||||||
|
|
||||||
for item in self.items:
|
for item in self.items:
|
||||||
|
if item.use_serial_batch_fields:
|
||||||
|
continue
|
||||||
|
|
||||||
if item.pick_list_item and not item.serial_and_batch_bundle:
|
if item.pick_list_item and not item.serial_and_batch_bundle:
|
||||||
filters = {
|
filters = {
|
||||||
"item_code": item.item_code,
|
"item_code": item.item_code,
|
||||||
|
|||||||
@@ -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.qty = flt(location.picked_qty) / (flt(location.conversion_factor) or 1)
|
||||||
dn_item.batch_no = location.batch_no
|
dn_item.batch_no = location.batch_no
|
||||||
dn_item.serial_no = location.serial_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)
|
update_delivery_note_item(source_doc, dn_item, delivery_note)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user