mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-27 22:26:00 +00:00
[UI] Sales order button (#9938)
* Refactor stock actions into a hook * Cleanup hooks * Allow transfer of "incomplete" outputs * Simplify even further * Enable transfer of stock allocated to build order * Remove StockItemBriefSerializer entirely * stock actions for items allocated to sales order * Refactor <PartDetail> page * Refactor <StockDetail> * Refactor <LocationDetail> * Bump API version * SO button text - Observe the "SALESORDER_SHIP_COMPLETE" value * Fix palywright tests
This commit is contained in:
@@ -436,7 +436,10 @@ function LineItemFormRow({
|
||||
}
|
||||
|
||||
// Selected location is base part's default location
|
||||
if (location === record.part_detail.default_location) {
|
||||
if (
|
||||
record.part_detail?.default_location &&
|
||||
location === record.part_detail.default_location
|
||||
) {
|
||||
return t`Default location selected`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user