Skip to content

Commit

Permalink
fix: Link batch_no in package tag during material receipt instead of …
Browse files Browse the repository at this point in the history
…coa_batch_no (#1137)
  • Loading branch information
rvpasari authored Apr 5, 2021
1 parent 354e594 commit 35075ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/stock_entry/stock_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ def update_package_tag(self):
if stock_entry_purpose == "Material Receipt":
for item in self.items:
if item.package_tag:
frappe.db.set_value("Package Tag", item.package_tag, "coa_batch_no", item.batch_no)
frappe.db.set_value("Package Tag", item.package_tag, "batch_no", item.batch_no)
elif stock_entry_purpose in ["Manufacture", "Repack"]:
source_item = next((item for item in self.items if item.s_warehouse), None)
for item in self.items:
Expand Down

0 comments on commit 35075ee

Please sign in to comment.