diff --git a/.vscode/launch.json b/.vscode/launch.json index 3300e7e..b4e9329 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -35,7 +35,7 @@ "SOCKEYE_DB_CONNECTION": "Server=localhost;Username=postgres;Password=sockeye;Database=sockeye;CommandTimeout=300;", "SOCKEYE_DATA_PATH": "c:\\temp\\sockeye", "SOCKEYE_USE_URLS": "http://*:7676;", - "SOCKEYE_PERMANENTLY_ERASE_DATABASE":"true", + //"SOCKEYE_PERMANENTLY_ERASE_DATABASE":"true", //"SOCKEYE_REMOVE_LICENSE_FROM_DB":"true", //"SOCKEYE_REPORT_RENDERING_TIMEOUT":"1", "SOCKEYE_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin" diff --git a/client/src/api/open-object-handler.js b/client/src/api/open-object-handler.js index a83cf40..c28c982 100644 --- a/client/src/api/open-object-handler.js +++ b/client/src/api/open-object-handler.js @@ -228,6 +228,13 @@ export default { }); break; + case socktype.Product: + vm.$router.push({ + name: "product-edit", + params: { recordid: tid.id } + }); + break; + default: window.$gz.eventBus.$emit( "notify-warning", diff --git a/client/src/components/pick-list.vue b/client/src/components/pick-list.vue index 0e1bc05..2f86e51 100644 --- a/client/src/components/pick-list.vue +++ b/client/src/components/pick-list.vue @@ -265,7 +265,7 @@ export default { //default params for when called on init if (!pickListParams) { pickListParams = { - ayaType: this.ayaType + sockType: this.ayaType }; if (this.value != null) { pickListParams["preselectedIds"] = [this.value]; @@ -370,7 +370,7 @@ export default { } //build parameter - const pickListParams = { ayaType: vm.ayaType }; + const pickListParams = { sockType: vm.ayaType }; if (!emptyQuery) { let query = queryTerms[0]; if (queryTerms[1] != "[?]") { diff --git a/client/src/router.js b/client/src/router.js index e7a41c1..e4e1feb 100644 --- a/client/src/router.js +++ b/client/src/router.js @@ -34,10 +34,10 @@ const scrollBehavior = function(to, from, savedPosition) { } // eslint-disable-next-line - return new Promise((resolve) => { + return new Promise(resolve => { // check if any matched route config has meta that requires scrolling to top // eslint-disable-next-line - if (to.matched.some((m) => m.meta.scrollToTop)) { + if (to.matched.some(m => m.meta.scrollToTop)) { // coords will be used if no selector is provided, // or if the selector didn't match any element. position.x = 0; @@ -339,6 +339,14 @@ export default new Router({ /* webpackChunkName: "biz" */ "./views/biz-subscription-server-list.vue" ) }, + { + path: "/biz-subscription-server-list/:recordid", + name: "subscription-server-edit", + component: () => + import( + /* webpackChunkName: "biz" */ "./views/biz-subscription-server.vue" + ) + }, { path: "/biz-purchase-list", name: "biz-purchase-list", diff --git a/client/src/views/biz-product.vue b/client/src/views/biz-product.vue index 3b60dc5..db9b777 100644 --- a/client/src/views/biz-product.vue +++ b/client/src/views/biz-product.vue @@ -54,6 +54,7 @@ :label="$sock.t('ProductVendorCode')" data-cy="vendorCode" :error-messages="form().serverErrors(this, 'vendorCode')" + :rules="[form().required(this, 'vendorCode')]" @input="fieldValueChanged('vendorCode')" > @@ -73,6 +74,7 @@ :label="$sock.t('ProductOurCode')" data-cy="ourCode" :error-messages="form().serverErrors(this, 'ourCode')" + :rules="[form().required(this, 'ourCode')]" @input="fieldValueChanged('ourCode')" > @@ -185,8 +187,7 @@ export default { vendorCode: null, ourCode: null, wiki: null, - tags: [], - sType: 0 + tags: [] }, formState: { ready: false, diff --git a/client/src/views/biz-purchase.vue b/client/src/views/biz-purchase.vue index 79b1fb3..dfe3c9e 100644 --- a/client/src/views/biz-purchase.vue +++ b/client/src/views/biz-purchase.vue @@ -241,14 +241,21 @@ export default { obj: { id: 0, concurrency: 0, - name: null, - active: true, + customerId: 0, vendorId: 1, - vendorCode: null, - ourCode: null, + productId: 0, + salesOrderNumber: null, + purchaseDate: window.$gz.locale.nowUTC8601String(), + expireDate: null, + cancelDate: null, + couponCode: null, + notes: null, + renewNoticeSent: false, + quantity: 1, + vendorData: null, + processedDate: null, wiki: null, - tags: [], - sType: 0 + tags: [] }, formState: { ready: false, diff --git a/client/src/views/biz-subscription-server.vue b/client/src/views/biz-subscription-server.vue new file mode 100644 index 0000000..93e2897 --- /dev/null +++ b/client/src/views/biz-subscription-server.vue @@ -0,0 +1,714 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/server/Startup.cs b/server/Startup.cs index 2a094a0..9a5801d 100644 --- a/server/Startup.cs +++ b/server/Startup.cs @@ -37,7 +37,7 @@ namespace Sockeye _hostingEnvironment = hostingEnvironment; Sockeye.Util.ApplicationLogging.LoggerProvider = nlogLoggerProvider; ServerBootConfig.SOCKEYE_CONTENT_ROOT_PATH = hostingEnvironment.ContentRootPath; - + } private readonly ILogger _newLog; @@ -246,7 +246,7 @@ namespace Sockeye }); } ); - + services.AddSwaggerGenNewtonsoftSupport(); #endregion @@ -635,7 +635,7 @@ namespace Sockeye ServerBootConfig.BOOT_DIAGNOSTIC_INFO.Add("DB Schema version", Sockeye.Util.AySchema.currentSchema.ToString()); - + //Check for SuperUser password override if (!string.IsNullOrWhiteSpace(ServerBootConfig.SOCKEYE_SET_SUPERUSER_PW)) { diff --git a/server/sockeye.csproj b/server/sockeye.csproj index e1baba9..742af90 100644 --- a/server/sockeye.csproj +++ b/server/sockeye.csproj @@ -41,11 +41,13 @@ - - - - - + + + + + + +