mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
fix(stock): forward company to outward batch lookup (#59160)
This commit is contained in:
@@ -286,6 +286,7 @@ class TestSerialandBatchBundle(ERPNextTestSuite):
|
||||
"item_code": batch_item_code,
|
||||
"warehouse": "_Test Warehouse - _TC",
|
||||
"stock_queue": json.dumps(stock_queue),
|
||||
"company": "_Test Company",
|
||||
}
|
||||
)
|
||||
|
||||
@@ -457,6 +458,7 @@ class TestSerialandBatchBundle(ERPNextTestSuite):
|
||||
"actual_qty": qty,
|
||||
"item_code": batch_item_code,
|
||||
"warehouse": "_Test Warehouse - _TC",
|
||||
"company": "_Test Company",
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -1341,6 +1341,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.get_single_value("Stock Settings", "pick_serial_and_batch_based_on"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user