diff --git a/Wonky.Client/Local.Services/CabinetDrawerService.cs b/Wonky.Client/Local.Services/CabinetDrawerService.cs index f1d03cff..2dd11715 100644 --- a/Wonky.Client/Local.Services/CabinetDrawerService.cs +++ b/Wonky.Client/Local.Services/CabinetDrawerService.cs @@ -19,15 +19,6 @@ public class CabinetDrawerService : ICabinetDrawerService private readonly IAdvisorCustomerHistoryRepository _historyRepo; private readonly ICountryCatalogRepository _catalogRepo; - /// - /// Constructor - /// - /// - /// - /// - /// - /// - /// public CabinetDrawerService( ILogger logger, ILocalStorageService asyncStorageService, @@ -44,12 +35,7 @@ public class CabinetDrawerService : ICabinetDrawerService _activityRepo = activityRepo; } - /// - /// Activity - /// - /// - /// - /// + public async Task GetActivityDrawerAsync(string companyId, bool force = false) { var drawer = await _asyncStorageService @@ -66,13 +52,7 @@ public class CabinetDrawerService : ICabinetDrawerService return drawer ?? new ActivityDrawer(); } - - /// - /// Sales Catalog - /// - /// - /// - /// + public async Task GetCatalogDrawerAsync(string countryCode, bool force = false) { var drawer = await _asyncStorageService @@ -90,13 +70,7 @@ public class CabinetDrawerService : ICabinetDrawerService return drawer ?? new CatalogDrawer(); } - - /// - /// Company Info - /// - /// - /// - /// + public async Task GetInfoDrawerAsync(string companyId, bool force = false) { var drawer = await _asyncStorageService @@ -115,12 +89,6 @@ public class CabinetDrawerService : ICabinetDrawerService } - /// - /// Inventory - /// - /// - /// - /// public async Task GetInventoryDrawerAsync(string companyId, bool force = false) { var drawer = await _asyncStorageService @@ -139,12 +107,6 @@ public class CabinetDrawerService : ICabinetDrawerService } - /// - /// Invoices - /// - /// - /// - /// public async Task GetInvoiceDrawerAsync(string companyId, bool force = false) { var drawer = await _asyncStorageService @@ -161,13 +123,7 @@ public class CabinetDrawerService : ICabinetDrawerService return drawer ?? new InvoiceDrawer(); } - - /// - /// Statistic (invoice lines) - /// - /// - /// - /// + public async Task GetStatisticDrawerAsync(string companyId, bool force = false) { var drawer = await _asyncStorageService @@ -194,12 +150,7 @@ public class CabinetDrawerService : ICabinetDrawerService return drawer ?? new StatisticDrawer(); } - - /// - /// Store Activity - /// - /// - /// + public async Task StoreActivityDrawerAsync(string companyId, ActivityDrawer drawer) { if (drawer.Content.Any()) @@ -211,33 +162,18 @@ public class CabinetDrawerService : ICabinetDrawerService } - /// - /// Store Sales Catalog - /// - /// - /// public async Task StoreCatalogDrawerAsync(string countryCode, CatalogDrawer drawer) { await _asyncStorageService.SetItemAsync($"{countryCode}.{CatalogDrawer.Label}", drawer); } - /// - /// Store Company Info - /// - /// - /// public async Task StoreInfoDrawerAsync(string companyId, InfoDrawer drawer) { await _asyncStorageService.SetItemAsync($"{companyId}.{InfoDrawer.Label}", drawer); } - /// - /// Store Inventory - /// - /// - /// public async Task StoreInventoryDrawerAsync(string companyId, InventoryDrawer drawer) { if (drawer.Content.Any()) @@ -249,11 +185,6 @@ public class CabinetDrawerService : ICabinetDrawerService } - /// - /// Store Invoices - /// - /// - /// public async Task StoreInvoiceDrawerAsync(string companyId, InvoiceDrawer drawer) { if (drawer.Content.Any()) @@ -265,11 +196,6 @@ public class CabinetDrawerService : ICabinetDrawerService } - /// - /// Store statistic (invoice lines) - /// - /// - /// public async Task StoreStatisticDrawerAsync(string companyId, StatisticDrawer drawer) { if (drawer.Content.Any()) diff --git a/Wonky.Client/Pages/AdvisorCustomerInventoryListPage.razor.cs b/Wonky.Client/Pages/AdvisorCustomerInventoryListPage.razor.cs index 7fb4aaef..2bb5bd29 100644 --- a/Wonky.Client/Pages/AdvisorCustomerInventoryListPage.razor.cs +++ b/Wonky.Client/Pages/AdvisorCustomerInventoryListPage.razor.cs @@ -102,6 +102,7 @@ public partial class AdvisorCustomerInventoryListPage : IDisposable { Inventory = drawer.Content; } + Logger.LogDebug("{}",JsonSerializer.Serialize(drawer)); } diff --git a/Wonky.Client/wwwroot/appsettings.json b/Wonky.Client/wwwroot/appsettings.json index 5cdcae6a..41d1a3da 100644 --- a/Wonky.Client/wwwroot/appsettings.json +++ b/Wonky.Client/wwwroot/appsettings.json @@ -1,7 +1,7 @@ { "appInfo": { "name": "Wonky Online", - "version": "223.2", + "version": "224.0", "rc": true, "sandBox": false, "image": "grumpy-coder.png", @@ -9,19 +9,19 @@ }, "Logging": { "LogLevel": { - "Default": "None", - "System": "None", + "Default": "Debug", + "System": "Debug", "Microsoft": "None" }, "Debug": { "LogLevel": { - "Default": "None" + "Default": "Debug" } } }, "apiConfig": { "assetUrl": "https://files.innotec.dk", - "baseUrl": "https://zeta.innotec.dk", + "baseUrl": "https://dev.innotec.dk", "catalog": "api/v2/catalog/country", "crmCustomers": "api/v2/crm/companies", "crmReports": "api/v2/crm/advisors/reports",