fix(stock): forward company to outward batch lookup (#59160)

This commit is contained in:
Pandiyan P
2026-09-18 14:36:49 +05:30
committed by GitHub
parent 3d1ec937cf
commit 622b7e0caa
2 changed files with 3 additions and 0 deletions

View File

@@ -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",
}
)

View File

@@ -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"),
}