mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-10 14:47:20 +00:00
(cherry picked from commit af4c4220f5)
Co-authored-by: Alonso Lopez-Valdez <alonsl1@uci.edu>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
co-authored by
Alonso Lopez-Valdez
Oliver
parent
4446c9596f
commit
e909936ff7
@@ -889,8 +889,13 @@ export default function BuildLineTable({
|
|||||||
<ActionButton
|
<ActionButton
|
||||||
key='auto-allocate'
|
key='auto-allocate'
|
||||||
icon={<IconWand />}
|
icon={<IconWand />}
|
||||||
tooltip={t`Auto Allocate Stock`}
|
tooltip={
|
||||||
hidden={!visible || hasOutput}
|
production
|
||||||
|
? t`Auto Allocate Stock`
|
||||||
|
: t`Build order must be issued before stock can be allocated`
|
||||||
|
}
|
||||||
|
hidden={!canEdit || !isActive || hasOutput}
|
||||||
|
disabled={!production}
|
||||||
color='blue'
|
color='blue'
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setAutoAllocateInitialData({
|
setAutoAllocateInitialData({
|
||||||
@@ -969,6 +974,7 @@ export default function BuildLineTable({
|
|||||||
build,
|
build,
|
||||||
buildStatus,
|
buildStatus,
|
||||||
hasOutput,
|
hasOutput,
|
||||||
|
isActive,
|
||||||
table.hasSelectedRecords,
|
table.hasSelectedRecords,
|
||||||
table.selectedRecords
|
table.selectedRecords
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user