diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index cc60e8fe..e9467ca4 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -160,6 +160,7 @@ PO UI for items: ideally the server should send the text to display along with the items to save triggering multiple round trips ideally it should display in the displayformat chosen for that picklist type item to mirror functionality, or maybe not to save space just name field etc + Receive all menu item if applicable that just receives the entire PO now PO todo todo: test duplicate route diff --git a/ayanova/src/views/inv-purchase-order.vue b/ayanova/src/views/inv-purchase-order.vue index d5bff78c..72839b88 100644 --- a/ayanova/src/views/inv-purchase-order.vue +++ b/ayanova/src/views/inv-purchase-order.vue @@ -305,6 +305,31 @@ :size="60" > + + + + + {{ $ay.t("FindAndReplace") }} + + + form here + {{ obj.items[editPoItemIndex] }} + + + + {{ $ay.t("Cancel") }} + {{ + $ay.t("Save") + }} + + + + @@ -378,10 +403,11 @@ export default { data() { return { formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY, + editPoItemDialog: false, + editPoItemIndex: 0, selectLists: { status: [] }, - showWarehouses: true, headers: [], obj: //IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record @@ -606,8 +632,10 @@ export default { "displayLineTotal": 345.387168 }, */ - return vm.obj.items.map(x => { + + return vm.obj.items.map((x, i) => { return { + index: i, id: x.id, quantityOrdered: window.$gz.locale.decimalLocalized( x.quantityOrdered, @@ -664,7 +692,10 @@ export default { } }, methods: { - editItem: function(item) {}, + editItem: function(item) { + this.editPoItemIndex = item.index; + this.editPoItemDialog = true; + }, canSave: function() { return this.formState.valid && this.formState.dirty; },