Let item-level receiving default option reflect "what's left"
This commit is contained in:
parent
c4ea9758d3
commit
ad9024a4a2
|
@ -284,7 +284,13 @@ export default {
|
|||
fetch(uuid) {
|
||||
this.$http.get(`/api/receiving-batch-row/${uuid}`).then(response => {
|
||||
this.row = response.data.data
|
||||
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({
|
||||
|
|
Loading…
Reference in a new issue