commit | 5718777a2b3018e07ea310e87e5a2ea26ff3eb1b | [log] [tgz] |
---|---|---|
author | Ankush Menat <ankush@frappe.io> | Sat Feb 19 18:36:16 2022 +0530 |
committer | Ankush Menat <ankushmenat@gmail.com> | Mon Feb 21 18:02:40 2022 +0530 |
tree | 4540df0ab738ca5dc3efc4ff3cfcc963ef5e6210 | |
parent | 683ef8a60397b728bd18e1a3c3c317e2f155793c [diff] |
fix: consider batch_no when getting incoming rate
diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index b831557..b740476 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py
@@ -279,7 +279,8 @@ "posting_date": self.posting_date, "posting_time": self.posting_time, "qty": -1 * d.consumed_qty, - "serial_no": d.serial_no + "serial_no": d.serial_no, + "batch_no": d.batch_no, }) if rate > 0: