Skip to content

Commit

Permalink
fix: map Packed Items while creating Packing Slip
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Apr 27, 2023
1 parent eca7713 commit 380dd73
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 @@ -698,8 +698,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 380dd73

Please sign in to comment.