Cleanup some receiving cruft

This commit is contained in:
Lance Edgar 2022-07-24 22:30:55 -05:00
parent 6666857a0b
commit 31cebd28c2

View file

@ -101,7 +101,7 @@
<div v-if="shouldShowQuickReceive">
<slot name="quick-receive">
<!-- only show quick-receive if we have an identifiable product -->
<div v-if="shouldShowQuickReceive" class="buttons">
<div class="buttons">
<b-button v-if="row.quick_receive_all"
type="is-primary"
@click="addQuickAmount(row.quick_receive_quantity, row.quick_receive_uom)"
@ -256,11 +256,9 @@ export default {
},
shouldShowQuickReceive() {
if (!this.row.quick_receive) {
console.log("row says not to")
return false
}
if (!this.row.product_uuid) {
console.log("row has no product")
return false
}
return true