mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-24 13:57:05 +00:00
fix(stock): forward company to outward batch lookup (#59160)
(cherry picked from commit 622b7e0caa)
This commit is contained in:
@@ -258,6 +258,7 @@ class TestSerialandBatchBundle(FrappeTestCase):
|
||||
"item_code": batch_item_code,
|
||||
"warehouse": "_Test Warehouse - _TC",
|
||||
"stock_queue": json.dumps(stock_queue),
|
||||
"company": "_Test Company",
|
||||
}
|
||||
)
|
||||
|
||||
@@ -429,6 +430,7 @@ class TestSerialandBatchBundle(FrappeTestCase):
|
||||
"actual_qty": qty,
|
||||
"item_code": batch_item_code,
|
||||
"warehouse": "_Test Warehouse - _TC",
|
||||
"company": "_Test Company",
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -1242,6 +1242,7 @@ class SerialBatchCreation:
|
||||
{
|
||||
"item_code": self.item_code,
|
||||
"warehouse": self.warehouse,
|
||||
"company": self.get("company"),
|
||||
"qty": abs(self.actual_qty) if self.actual_qty else 0,
|
||||
"based_on": frappe.db.get_single_value("Stock Settings", "pick_serial_and_batch_based_on"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user