diff --git a/src/components/receiving/ByjoveReceiving.vue b/src/components/receiving/ByjoveReceiving.vue index 8f9caec..890e3d4 100644 --- a/src/components/receiving/ByjoveReceiving.vue +++ b/src/components/receiving/ByjoveReceiving.vue @@ -284,7 +284,13 @@ export default { fetch(uuid) { this.$http.get(`/api/receiving-batch-row/${uuid}`).then(response => { this.row = response.data.data - this.inputUOM = this.row.unit_uom + if (this.allowCases && this.row.cases_unconfirmed) { + this.inputQuantity = this.row.cases_unconfirmed + this.inputUOM = 'CS' + } else { + this.inputQuantity = this.row.units_unconfirmed || 1 + this.inputUOM = this.row.unit_uom + } }, response => { if (response.status == 403) { // forbidden; redirect to model index this.$buefy.toast.open({