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 {
|
public bushels(): number {
|
||||||
console.log(this)
|
|
||||||
let control = this.settings.inventory?.inventoryControl;
|
let control = this.settings.inventory?.inventoryControl;
|
||||||
let bushels = this.settings.inventory?.grainBushels || 0
|
let bushels = this.settings.inventory?.grainBushels || 0
|
||||||
if (control === pond.BinInventoryControl.BIN_INVENTORY_CONTROL_AUTOMATIC_LIDAR ||
|
if (control === pond.BinInventoryControl.BIN_INVENTORY_CONTROL_AUTOMATIC_LIDAR ||
|
||||||
|
|
@ -140,7 +139,8 @@ export class Bin {
|
||||||
let fill = 0;
|
let fill = 0;
|
||||||
if (this.settings.inventory && this.settings.specs) {
|
if (this.settings.inventory && this.settings.specs) {
|
||||||
let bushels = this.settings.inventory.grainBushels
|
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
|
bushels = this.status.grainBushels
|
||||||
}
|
}
|
||||||
fill = Math.round(
|
fill = Math.round(
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ export default function LibraCart() {
|
||||||
.listAccounts(0, 0, as)
|
.listAccounts(0, 0, as)
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
let tempOrgs: Map<string, pond.LibraCartAccount> = new Map();
|
let tempOrgs: Map<string, pond.LibraCartAccount> = new Map();
|
||||||
console.log(resp)
|
|
||||||
resp.data.accounts.forEach(org => {
|
resp.data.accounts.forEach(org => {
|
||||||
let organization = pond.LibraCartAccount.fromObject(org);
|
let organization = pond.LibraCartAccount.fromObject(org);
|
||||||
tempOrgs.set(organization.key, organization);
|
tempOrgs.set(organization.key, organization);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue