part way through the drawer display on the map
This commit is contained in:
parent
29d9e7377c
commit
dd6a842fda
1 changed files with 15 additions and 2 deletions
|
|
@ -668,8 +668,19 @@ export default function BinyardDisplay(props: Props) {
|
|||
}
|
||||
};
|
||||
|
||||
const grainQuantityDisplay = (custom?: pond.CustomInventory) => {
|
||||
const grainQuantityDisplay = (bushels: number, custom?: pond.CustomInventory) => {
|
||||
if (custom && custom.bushelsPerTonne <= 1) {
|
||||
return bushels;
|
||||
}
|
||||
|
||||
switch (getGrainUnit()) {
|
||||
case pond.GrainUnit.GRAIN_UNIT_TONNE:
|
||||
return " mT";
|
||||
case pond.GrainUnit.GRAIN_UNIT_TON:
|
||||
return " t";
|
||||
default:
|
||||
return bushels;
|
||||
}
|
||||
}
|
||||
|
||||
const binUtilizationList = () => {
|
||||
|
|
@ -746,6 +757,8 @@ export default function BinyardDisplay(props: Props) {
|
|||
cap = cap * 35.239;
|
||||
unit = " L";
|
||||
}else{
|
||||
amount
|
||||
cap
|
||||
unit = grainUnitDisplay(inv)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue