removed some logs and added to the logic in fillPercent in the bin model
This commit is contained in:
parent
42e027393e
commit
714a221154
2 changed files with 2 additions and 3 deletions
|
|
@ -126,7 +126,6 @@ export class Bin {
|
|||
}
|
||||
|
||||
public bushels(): number {
|
||||
console.log(this)
|
||||
let control = this.settings.inventory?.inventoryControl;
|
||||
let bushels = this.settings.inventory?.grainBushels || 0
|
||||
if (control === pond.BinInventoryControl.BIN_INVENTORY_CONTROL_AUTOMATIC_LIDAR ||
|
||||
|
|
@ -140,7 +139,8 @@ export class Bin {
|
|||
let fill = 0;
|
||||
if (this.settings.inventory && this.settings.specs) {
|
||||
let bushels = this.settings.inventory.grainBushels
|
||||
if (this.settings.inventory.inventoryControl === pond.BinInventoryControl.BIN_INVENTORY_CONTROL_AUTOMATIC_LIDAR){
|
||||
if (this.settings.inventory.inventoryControl === pond.BinInventoryControl.BIN_INVENTORY_CONTROL_AUTOMATIC_LIDAR ||
|
||||
this.settings.inventory.inventoryControl === pond.BinInventoryControl.BIN_INVENTORY_CONTROL_LIBRACART){
|
||||
bushels = this.status.grainBushels
|
||||
}
|
||||
fill = Math.round(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue