mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
Merge pull request #59165 from frappe/mergify/bp/version-16-hotfix/pr-59160
fix(stock): forward company to outward batch lookup (backport #59160)
This commit is contained in:
@@ -259,6 +259,7 @@ class TestSerialandBatchBundle(ERPNextTestSuite):
|
|||||||
"item_code": batch_item_code,
|
"item_code": batch_item_code,
|
||||||
"warehouse": "_Test Warehouse - _TC",
|
"warehouse": "_Test Warehouse - _TC",
|
||||||
"stock_queue": json.dumps(stock_queue),
|
"stock_queue": json.dumps(stock_queue),
|
||||||
|
"company": "_Test Company",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -430,6 +431,7 @@ class TestSerialandBatchBundle(ERPNextTestSuite):
|
|||||||
"actual_qty": qty,
|
"actual_qty": qty,
|
||||||
"item_code": batch_item_code,
|
"item_code": batch_item_code,
|
||||||
"warehouse": "_Test Warehouse - _TC",
|
"warehouse": "_Test Warehouse - _TC",
|
||||||
|
"company": "_Test Company",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1322,6 +1322,7 @@ class SerialBatchCreation:
|
|||||||
{
|
{
|
||||||
"item_code": self.item_code,
|
"item_code": self.item_code,
|
||||||
"warehouse": self.warehouse,
|
"warehouse": self.warehouse,
|
||||||
|
"company": self.get("company"),
|
||||||
"qty": abs(self.actual_qty) if self.actual_qty else 0,
|
"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"),
|
"based_on": frappe.get_single_value("Stock Settings", "pick_serial_and_batch_based_on"),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user