mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
fix: consider packed items too when reposting
(cherry picked from commit c56d07dee3)
This commit is contained in:
committed by
Ankush Menat
parent
c137b141e8
commit
bd401810e4
@@ -184,8 +184,8 @@ class StockController(AccountsController):
|
|||||||
def get_items_and_warehouses(self):
|
def get_items_and_warehouses(self):
|
||||||
items, warehouses = [], []
|
items, warehouses = [], []
|
||||||
|
|
||||||
if hasattr(self, "items"):
|
if hasattr(self, "items") or hasattr(self, "packed_items"):
|
||||||
item_doclist = self.get("items")
|
item_doclist = (self.get("items") or []) + (self.get("packed_items") or [])
|
||||||
elif self.doctype == "Stock Reconciliation":
|
elif self.doctype == "Stock Reconciliation":
|
||||||
item_doclist = []
|
item_doclist = []
|
||||||
data = json.loads(self.reconciliation_json)
|
data = json.loads(self.reconciliation_json)
|
||||||
|
|||||||
Reference in New Issue
Block a user