From 361dbdeed462ca3b382b12de144d34146b8e71f5 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 19 Feb 2021 18:29:06 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 34 +++++++++++++++++++++--- ayanova/src/views/inv-purchase-order.vue | 24 +++++++++-------- 2 files changed, 44 insertions(+), 14 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 9552c27e..cc60e8fe 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -40,6 +40,30 @@ todo: WHEN HAVE WORKORDER FORM customer popup notes need to pop pop pop, forgot However, I also find that incredibly annoying but I guess that's the point :) ## SERVER MISC ITEMS +todo: tax codes, taxable objects + Biz rules updated to prevent tax value changes to any of the following fields once it's been used on any item that has tax codes + name, taxa, taxb, taxontax + Biz rule to prevent change of active status to false if this taxcode is set as the global settings default tax code + /// + /// Returns true if passed in tax code ID + /// is used as the default anywhere in global settings + /// + /// + /// + public bool TaxCodeIsADefault(Guid TaxCodeID) + { + if(this.mTaxPartPurchaseID==TaxCodeID) return true; + if(this.mTaxPartSaleID==TaxCodeID) return true; + if(this.mTaxRateSaleID==TaxCodeID) return true; + return false; + } + Global settings object needs tax codes added for + private Guid mTaxPartPurchaseID; + private Guid mTaxPartSaleID; + private Guid mTaxRateSaleID; + PurchaseOrder needs to default tax codes when created from global settings + + todo: GetWorkorderSerial/name from leaf nodes traverse up the tree and fetch the serial number @@ -123,9 +147,7 @@ todo: tax values and totals need to be calced at server and returned with record put totals in PO header class as nonmapped fields and can calc at server any update to items or anything really roundtrips to server and back with updated object returned which differs from other objects so need to acct for that. -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. @@ -143,6 +165,7 @@ PO todo todo: test duplicate route todo: test inventory affecting ops reversals, updates, deletes etc +todo: test default tax codes are set @@ -866,3 +889,8 @@ It's all done in Photoshop. Just take screenshots, then transform, rotate, disto reply + + +MUSIC TO ADD TO COLLECTION +BOC - cities on flame +MID CENTURY MODERN TUNES - https://www.allmusic.com/album/ultra-lounge-vol-14-bossa-novaville-mw0000024024 diff --git a/ayanova/src/views/inv-purchase-order.vue b/ayanova/src/views/inv-purchase-order.vue index 5e3bdbbf..7874a768 100644 --- a/ayanova/src/views/inv-purchase-order.vue +++ b/ayanova/src/views/inv-purchase-order.vue @@ -474,7 +474,7 @@ export default { value: "displayPartNumber" }); - if (vm.showWarehouses) { + if (vm.obj.displayWarehouses) { headers.push({ text: vm.$ay.t("PartWarehouse"), align: "left", @@ -521,17 +521,19 @@ export default { value: "vendorPartNumber" }); - headers.push({ - text: vm.$ay.t("PurchaseOrderItemPartRequestedByID"), - align: "left", - value: "displayRequestUser" - }); + if (vm.obj.displayPartRequest) { + headers.push({ + text: vm.$ay.t("PurchaseOrderItemPartRequestedByID"), + align: "left", + value: "displayRequestUser" + }); - headers.push({ - text: vm.$ay.t("PurchaseOrderItemWorkOrderNumber"), - align: "left", - value: "displayRequestWorkorder" - }); + headers.push({ + text: vm.$ay.t("PurchaseOrderItemWorkOrderNumber"), + align: "left", + value: "displayRequestWorkorder" + }); + } return headers; }, itemList: function() {