diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index c3d9074c..9fce06f9 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -138,30 +138,9 @@ todo: server boot up message should show the port it's listening on if possible -CURRENTLY DOING: PartByWarehouseInventory +CURRENTLY DOING: PartByWarehouseInventory NEXT UP: Controller routes, DataList etc - Past issues with this are that it can go out of whack and be hard to track down what happened in case of a bug or something - there were lots of bugs in different areas that allowed weird shit to happen like being able to enter a negative on a PO for quantity - Those bugs were enabled by the inventory being a bit loosey goosey and allowing stuff like that to happen - A ledger can also be the adjustment feature as well, it's one and the same so you can directly add a manual record to the ledger as easily - To get inventory stock picking list you just pull the most recent unique part/warehouse combo values from the ledger that have non-zero balances - if a source object is deleted the ledger is kept but the matching ID is set to zero (or do we just accept they are not existant? I mean, does it matter in any real sense?) - the description will have the source anyway i.e. "LT:Workorder 25" which should display correctly - actually, if the TYPE is kept then that's all that matters and description shoudl just contain the Name or Serial field value - maybe should redundently store the userId as well? but then some users are not necessarily tied to the operation -If it was a ledger: - PartInventory - entrydate - lastentrydate - sourceid - sourcetype - description (permanent snapshot of where it came from in case of delete of source object, which is allowed and doesn't affect this just like history ) - partid - warehouseid - quantity - balance - lastbalance Inventory related objects that need to be ported: diff --git a/ayanova/src/api/ayatype.js b/ayanova/src/api/ayatype.js index 28e99860..13c7b58c 100644 --- a/ayanova/src/api/ayatype.js +++ b/ayanova/src/api/ayatype.js @@ -100,7 +100,8 @@ export default { TravelRate: 63, TaxCode: 64, PartAssembly: 65, - PartWarehouse: 66 + PartWarehouse: 66, + PartInventory: 67 }; /** * diff --git a/ayanova/src/api/biz-role-rights.js b/ayanova/src/api/biz-role-rights.js index 2fbcb6cb..ae32cfe4 100644 --- a/ayanova/src/api/biz-role-rights.js +++ b/ayanova/src/api/biz-role-rights.js @@ -11,6 +11,7 @@ export default { HeadOffice: { Change: 33098, ReadFullRecord: 65669, Select: 131071 }, LoanUnit: { Change: 33098, ReadFullRecord: 65669, Select: 131071 }, Part: { Change: 98, ReadFullRecord: 29, Select: 131071 }, + PartInventory: { Change: 98, ReadFullRecord: 29, Select: 131071 }, PartWarehouse: { Change: 98, ReadFullRecord: 29, Select: 131071 }, PartAssembly: { Change: 98, ReadFullRecord: 29, Select: 131071 }, PurchaseOrder: { Change: 98, ReadFullRecord: 29, Select: 131071 },