Center receiving buttons; add "12 EA" quick receive button

This commit is contained in:
Lance Edgar 2023-10-19 15:16:31 -05:00
parent 4f355fc58f
commit e6012bddb8

View file

@ -118,28 +118,36 @@
expanded>
{{ row.quick_receive_text }}
</b-button>
<div v-if="!row.quick_receive_all">
<div class="buttons"
v-if="allowCases">
<b-button type="is-primary"
<div v-if="!row.quick_receive_all"
style="margin: auto;">
<b-button v-if="allowCases"
type="is-primary"
@click="addQuickAmount(1, 'CS')"
expanded>
expanded
style="margin-bottom: 1rem;">
Receive 1 CS
</b-button>
</div>
<div class="buttons has-text-centered" style="width: 100%;">
<div>
<b-button type="is-primary"
size="is-small"
@click="addQuickAmount(1, row.unit_uom)">
1 {{ row.unit_uom }}
</b-button>
<b-button type="is-primary"
size="is-small"
@click="addQuickAmount(3, row.unit_uom)">
3 {{ row.unit_uom }}
</b-button>
<b-button type="is-primary"
size="is-small"
@click="addQuickAmount(6, row.unit_uom)">
6 {{ row.unit_uom }}
</b-button>
<b-button type="is-primary"
size="is-small"
@click="addQuickAmount(12, row.unit_uom)">
12 {{ row.unit_uom }}
</b-button>
</div>
</div>
</div>
@ -203,6 +211,7 @@
</b-field>
<div class="buttons">
<div style="margin: auto;">
<b-button type="is-primary"
@click="addAmount()"
:disabled="addAmountDisabled">
@ -210,9 +219,10 @@
</b-button>
<b-button type="is-warning"
@click="subtractAmount()">
Subtract Amount
Subtract
</b-button>
</div>
</div>
<p class="has-text-centered is-italic">OR</p>
<br />
@ -383,6 +393,6 @@ export default {
padding: 0px 10px 0px 0px;
}
.input.receiving-quantity-input {
width: 10rem;
width: 6rem;
}
</style>