mirror of
https://github.com/inventree/InvenTree.git
synced 2026-02-05 21:05:51 +00:00
[UI] Indicate over-allocation (#11247)
- Display red text when stock item is over-allocated
This commit is contained in:
@@ -157,7 +157,15 @@ function stockItemTableColumns({
|
||||
|
||||
if (record.in_stock) {
|
||||
if (allocated > 0) {
|
||||
if (allocated >= quantity) {
|
||||
if (allocated > quantity) {
|
||||
color = 'red';
|
||||
extra.push(
|
||||
<Text
|
||||
key='over-allocated'
|
||||
size='sm'
|
||||
>{t`This stock item is over-allocated`}</Text>
|
||||
);
|
||||
} else if (allocated == quantity) {
|
||||
color = 'orange';
|
||||
extra.push(
|
||||
<Text
|
||||
|
||||
Reference in New Issue
Block a user