Skip to content

Commit

Permalink
fix: map Packed Items while creating Packing Slip
Browse files Browse the repository at this point in the history
(cherry picked from commit 380dd73)
  • Loading branch information
s-aga-r authored and mergify[bot] committed May 25, 2023
1 parent 2b75474 commit 984e32c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions erpnext/stock/doctype/delivery_note/delivery_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,27 @@ def make_packing_slip(source_name, target_doc=None):
"field_map": {
"item_code": "item_code",
"item_name": "item_name",
"batch_no": "batch_no",
"description": "description",
"qty": "qty",
"total_weight": "net_weight",
"stock_uom": "stock_uom",
"weight_uom": "weight_uom",
"name": "dn_detail",
},
"condition": lambda doc: not frappe.db.exists(
"Product Bundle", {"new_item_code": doc.item_code}
),
},
"Packed Item": {
"doctype": "Packing Slip Item",
"field_map": {
"item_code": "item_code",
"item_name": "item_name",
"batch_no": "batch_no",
"description": "description",
"qty": "qty",
"name": "pi_detail",
},
},
},
Expand Down

0 comments on commit 984e32c

Please sign in to comment.