mirror of
https://github.com/inventree/InvenTree.git
synced 2026-02-06 05:15:52 +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 (record.in_stock) {
|
||||||
if (allocated > 0) {
|
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';
|
color = 'orange';
|
||||||
extra.push(
|
extra.push(
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
Reference in New Issue
Block a user