From e1ad6f38ee5202d722454c4854f976e3c884a120 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 23 Feb 2021 16:01:02 +0000 Subject: [PATCH] --- ayanova/src/views/inv-purchase-order.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/ayanova/src/views/inv-purchase-order.vue b/ayanova/src/views/inv-purchase-order.vue index c5dcceec..66941638 100644 --- a/ayanova/src/views/inv-purchase-order.vue +++ b/ayanova/src/views/inv-purchase-order.vue @@ -501,7 +501,7 @@ >{{ $ay.t("Cancel") }} - $ayiBoxOpen {{ $ay.t("Receive") }} @@ -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); +} + ///////////////////////////// // //