diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 4df53aa0..9c81f633 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -12,10 +12,35 @@ Aug - Migrate not setting inventory to zero for the zV8MigrateSubstitute parts created - it should find them all and reset them to zero balance at the end, currently sits at 1billion po workorderitempart request selection dialog missing stubbed out as todo where you select part requests that are open to order +SELECT AWORKORDERITEMPARTREQUEST.ID AS REQUESTID, + PARTID, + PARTWAREHOUSEID, + QUANTITY, + AWORKORDER.SERIAL, + APART.PARTNUMBER AS PARTNUMBER, + APART.NAME AS PARTNAME, + APARTWAREHOUSE.ID AS PARTWAREHOUSEID, + APARTWAREHOUSE.NAME AS PARTWAREHOUSENAME, + AWHOLESALER.NAME AS WHOLESALERNAME, + AWHOLESALER.ID AS WHOLESALERID, + AALTWHOLESALER.ID AS ALTWHOLESALERID, + AALTWHOLESALER.NAME AS ALTWHOLESALERNAME +FROM AWORKORDERITEMPARTREQUEST +LEFT JOIN AWORKORDERITEM ON AWORKORDERITEM.ID = AWORKORDERITEMPARTREQUEST.WORKORDERITEMID +LEFT JOIN AWORKORDER ON AWORKORDERITEM.WORKORDERID = AWORKORDER.ID +LEFT JOIN AWORKORDERSTATUS ON AWORKORDER.LASTSTATUSID = AWORKORDERSTATUS.ID +LEFT JOIN APART ON AWORKORDERITEMPARTREQUEST.PARTID = APART.ID +LEFT JOIN APARTWAREHOUSE ON AWORKORDERITEMPARTREQUEST.PARTWAREHOUSEID = APARTWAREHOUSE.ID +LEFT JOIN AVENDOR AS AWHOLESALER ON (APART.WHOLESALERID = AWHOLESALER.ID) +LEFT JOIN AVENDOR AS AALTWHOLESALER ON (APART.ALTERNATIVEWHOLESALERID = AALTWHOLESALER.ID) +WHERE AWORKORDERITEMPARTREQUEST.PURCHASEORDERITEMID IS NULL + AND AWORKORDERSTATUS.COMPLETED = FALSE + + + + =============== Update all dependencies here Misc "blizzard" @@ -509,35 +534,7 @@ todo:2 many biz objects are not using new PUT methodology ######################################################################################################################## -CURRENTLY DOING: quote, then pm migrate so migrate testing can be done in parallel - - - - -TIMEOUTS DURING MIGRATE TROUBLESHOOTING NOTES: -fucking probably caused by v7 migrate project set to pause on any exception thrown -This log is when in release mode, in debug mode it didn't show this info -2021-08-16 16:10:12.7711|DEBUG|JobsBiz|Processing internal jobs -2021-08-16 16:10:12.7711|INFO|JobsBiz|Server is in migrate mode, skipping non-critical internal jobs -2021-08-16 16:10:13.4949|ERROR|SERVER|Error=>Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Reading the request body timed out due to data arriving too slowly. See MinRequestBodyDataRate. - at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelBadHttpRequestException.Throw(RequestRejectionReason reason) - at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1ContentLengthMessageBody.ReadAsyncInternal(CancellationToken cancellationToken) - at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpRequestStream.ReadAsyncInternal(Memory`1 destination, CancellationToken cancellationToken) - at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken) - at Microsoft.AspNetCore.WebUtilities.StreamHelperExtensions.DrainAsync(Stream stream, ArrayPool`1 bytePool, Nullable`1 limit, CancellationToken cancellationToken) - at Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonInputFormatter.ReadRequestBodyAsync(InputFormatterContext context, Encoding encoding) - at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder.BindModelAsync(ModelBindingContext bindingContext) - at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value, Object container) - at Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<g__Bind|0>d.MoveNext() ---- End of stack trace from previous location --- - at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) - at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) -2021-08-16 16:10:13.5294|DEBUG|NotifyEventProcessor|AddGeneralNotifyEvent processing: [type:ServerOperationsProblem, userId:0, message:Server API internal error, see log for more details -Exception error: Microsoft.AspNetCore.Server.Kestrel.Core -> Reading the request body timed out due to data arriving too slowly. See MinRequestBodyDataRate. -] -2021-08-16 16:10:13.5294|DEBUG|AyaNova.Api.ControllerHelpers.ApiErrorResponse|apiCode=API_SERVER_ERROR, target=generalerror, message=Server internal error; see server log for details -2021-08-16 16:10:17.7831|DEBUG|JobsBiz|Processing internal jobs -============================ +CURRENTLY DOING: up top stuff above @@ -852,4 +849,11 @@ BUILD 126 CHANGES OF NOTE - case 3922 back to you - case 3919 implemented as requested +- Migrate now migrates unit meter readings fully +- Migrate specially created part "zV8migrate_substitute" for potentially missing part records now sets inventory back to zero at end of migrate +- Migrate specially created part "zV8migrate_substitute" for potentially missing part records now creates as active=false +- Migrate / Server fixed issue with erasedatabase code at server where it would fail to erase the db if there was a csr referencing a workorder in it + JOYCE NOTE: this may happen again, it's all manually written for that as it's tricky to unlink data from each other cleanly and an unexpected combo may come up in someone's data so if you see export fail at the start during erasedatabase + I need to see that server's log where it shows the error becuase it will show exactly which table and field are the issue, I just need the one line in the *server* log that looks similar to this: + update or delete on table "aworkorderitem" violates foreign key constraint "acustomerservicerequest_workorderitemid_fkey" on table "acustomerservicerequest" diff --git a/ayanova/src/views/inv-purchase-order.vue b/ayanova/src/views/inv-purchase-order.vue index 6f7be161..0ef8bd73 100644 --- a/ayanova/src/views/inv-purchase-order.vue +++ b/ayanova/src/views/inv-purchase-order.vue @@ -1343,8 +1343,33 @@ export default { window.$gz.errorHandler.handleFormError(error, vm); } }, - showRequestSelectDialog() { - this.requestSelectDialog = true; + async showRequestSelectDialog() { + let vm = this; + + let url = API_BASE_URL + "requests-by-vendor/" + vm.obj.vendorId; + window.$gz.form.deleteAllErrorBoxErrors(vm); + try { + let res = await window.$gz.api.get(url); + + if (res.error) { + vm.formState.serverError = res.error; + window.$gz.form.setErrorBoxErrors(vm); + } else { + //process add url dl token and id + if (res.data) { + vm.requestItems = res.data; + } else { + vm.requestItems = []; + } + vm.requestSelectDialog = true; + } + } catch (error) { + window.$gz.form.setFormState({ + vm: vm, + loading: false + }); + window.$gz.errorHandler.handleFormError(error, vm); + } }, poItemsRowClasses: function(item) { const path = `Items[${item.index}].`;