This commit is contained in:
2021-02-23 16:01:02 +00:00
parent 3b5574ef75
commit e1ad6f38ee

View File

@@ -501,7 +501,7 @@
>{{ $ay.t("Cancel") }}</v-btn
>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" text @click="receive(item)"
<v-btn color="blue darken-1" text @click="receive(obj.items[editPoItemIndex])"
><v-icon left> $ayiBoxOpen </v-icon
>{{ $ay.t("Receive") }}</v-btn
>
@@ -888,8 +888,13 @@ export default {
return "font-weight-black font-italic error--text";
}
},
receive: function(item) {},
receiveAll: function() {},
receive: function(item) {
receiveItem(item);
this.editPoItemDialog = false;
},
receiveAll: function() {
this.obj.items.forEach(item => receiveItem(item));
},
editItem: function(item) {
this.editPoItemIndex = item.index;
this.editPoItemDialog = true;
@@ -1093,6 +1098,13 @@ export default {
}
};
/////////////////////////////
// RECEIVE
//
function receiveItem(item) {
console.log(item);
}
/////////////////////////////
//
//