diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 8c346807..9552c27e 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -125,7 +125,7 @@ todo: tax values and totals need to be calced at server and returned with record todo: dynamically hide worequest columns if found to not be included todo: maybe also insert a showwarehouses return nonmapped value with po and remove the fetch if can just hide column headers anyway - +todo: change phrase "Actual cost" in translation to "Received cost" PO UI for items: Use ops-backup form list of backups as concept, it uses a v-data-table It adapts to mobile view with horizontal card so perfect for that and will work for what I need. diff --git a/ayanova/src/views/inv-purchase-order.vue b/ayanova/src/views/inv-purchase-order.vue index 7e69317e..5e3bdbbf 100644 --- a/ayanova/src/views/inv-purchase-order.vue +++ b/ayanova/src/views/inv-purchase-order.vue @@ -228,7 +228,7 @@ --> { - // let rObj = {} - // rObj[obj.key] = obj.value - // return rObj - // }) /*[ { "id": 1, "concurrency": 7262944, "purchaseOrderId": 1, "partId": 8, "partWarehouseId": 2, "quantityOrdered": 24, "quantityReceived": 24, "purchaseOrderCost": 2.0518, "receivedCost": 10, "receivedDate": "2020-11-03T11:39:07.594439Z", @@ -563,6 +628,7 @@ export default { vm.obj = res.data; //modify the menu as necessary generateMenu(vm); + await createTableHeaders(vm); //Update the form status window.$gz.form.setFormState({ vm: vm, @@ -901,6 +967,8 @@ async function createTableHeaders(vm) { If the column is a text, left-align it If the column is a number or number + unit, (or date) right-align it (like excel) */ + vm.headers = []; + vm.headers.push({ text: vm.$ay.t("Part"), align: "left",