adding in the lidar inventory control stuff

This commit is contained in:
csawatzky 2025-04-02 12:42:26 -06:00
parent dd952bebe6
commit c5afdc2c3d
5 changed files with 28 additions and 13 deletions

View file

@ -980,7 +980,7 @@ export default function BinSVGV2(props: Props) {
/>
{fillPercentage > 0 &&
(inventoryControl === pond.BinInventoryControl.BIN_INVENTORY_CONTROL_MANUAL ||
(inventoryControl !== pond.BinInventoryControl.BIN_INVENTORY_CONTROL_AUTOMATIC ||
!inventoryControl) ? (
inventoryLayer()
) : (
@ -1024,7 +1024,7 @@ export default function BinSVGV2(props: Props) {
/>
{fillPercentage > 0 &&
(inventoryControl === pond.BinInventoryControl.BIN_INVENTORY_CONTROL_MANUAL ||
(inventoryControl !== pond.BinInventoryControl.BIN_INVENTORY_CONTROL_AUTOMATIC ||
!inventoryControl) &&
inventoryLayer()}
<ellipse

View file

@ -827,7 +827,7 @@ export default function BinSettings(props: Props) {
alignItems="center"
justifyContent="space-between">
<Grid>
<Typography>Control</Typography>
<Typography>Inventory Control</Typography>
</Grid>
<Grid>
<Typography>{inventoryControlLabel(inventoryControl)}</Typography>
@ -852,6 +852,11 @@ export default function BinSettings(props: Props) {
control={<Radio />}
label={"Auto"}
/>
<FormControlLabel
value={pond.BinInventoryControl.BIN_INVENTORY_CONTROL_AUTOMATIC_LIDAR}
control={<Radio />}
label={"Auto (Lidar)"}
/>
</RadioGroup>
</AccordionDetails>
{inventoryControl === pond.BinInventoryControl.BIN_INVENTORY_CONTROL_AUTOMATIC &&

View file

@ -583,14 +583,17 @@ export default function BinVisualizer(props: Props) {
</Typography>
<Typography variant="body2">{isEmpty ? "" : getCapacityDisplay(capacity)}</Typography>
</div>
{!isEmpty && lidarBushels && (
<div style={{ display: "flex", flexDirection: "row" }}>
<Typography variant="body2">
{(lidarBushels ? getVolume(lidarBushels) : 0).toLocaleString()} /{" "}
{(capacity ? getVolume(capacity) : 0).toLocaleString()} bu (est)
</Typography>
</div>
)}
{!isEmpty &&
lidarBushels &&
bin.inventoryControl() !==
pond.BinInventoryControl.BIN_INVENTORY_CONTROL_AUTOMATIC_LIDAR && (
<div style={{ display: "flex", flexDirection: "row" }}>
<Typography variant="body2">
{(lidarBushels ? getVolume(lidarBushels) : 0).toLocaleString()} /{" "}
{(capacity ? getVolume(capacity) : 0).toLocaleString()} bu (est)
</Typography>
</div>
)}
</Box>
</Box>
);