-
+@if (_showBackdrop)
+{
+
+}
\ No newline at end of file
diff --git a/Wonky.Client/Shared/CustomerInvoiceOverlay.razor.cs b/Wonky.Client/Shared/CustomerInvoiceOverlay.razor.cs
index a32a8580..a90eaf81 100644
--- a/Wonky.Client/Shared/CustomerInvoiceOverlay.razor.cs
+++ b/Wonky.Client/Shared/CustomerInvoiceOverlay.razor.cs
@@ -1,3 +1,4 @@
+using System.Text.Json;
using Microsoft.AspNetCore.Components;
using Wonky.Entity.DTO;
using Wonky.Entity.Views;
@@ -7,13 +8,35 @@ namespace Wonky.Client.Shared;
public partial class CustomerInvoiceOverlay
{
- [Parameter] public InvoiceListView CompanyInvoices { get; set; } = new();
- [Parameter] public CompanyDto Company { get; set; } = new();
- [Parameter] public InvoiceViewModal InvoiceView { get; set; } = new();
+ [Parameter] public InvoiceListView CustomerInvoices { get; set; } = new();
+
+ [Inject] private ILogger
Logger { get; set; }
+ private InvoiceViewModal InvoiceView { get; set; } = new();
private string InvoiceId { get; set; } = "";
private string _modalDisplay = "";
private bool _showBackdrop;
-
+ private List Invoices { get; set; } = new();
+ private InvoiceCompanyView Company { get; set; } = new();
+
+ protected override void OnParametersSet()
+ {
+ Company = CustomerInvoices.Company;
+ Logger.LogDebug("company => {}", JsonSerializer.Serialize(Company));
+ Invoices = CustomerInvoices.Invoices;
+ Logger.LogDebug("invoices => {}", JsonSerializer.Serialize(Invoices));
+ }
+
+ protected override void OnInitialized()
+ {
+ StateHasChanged();
+ }
+
+ private void CallInvoiceModal(string invoiceId)
+ {
+ InvoiceId = invoiceId;
+ InvoiceView.Show();
+ }
+
public void Show()
{
_modalDisplay = "block;";
diff --git a/Wonky.Client/wwwroot/appsettings.json b/Wonky.Client/wwwroot/appsettings.json
index f2d2f7a6..c9ad3f0d 100644
--- a/Wonky.Client/wwwroot/appsettings.json
+++ b/Wonky.Client/wwwroot/appsettings.json
@@ -1,11 +1,23 @@
{
"appInfo": {
"name": "Wonky Online",
- "version": "0.103.9",
+ "version": "0.105.1",
"rc": true,
"sandBox": false,
"image": "grumpy-coder.png"
},
+ "Logging": {
+ "LogLevel": {
+ "Default": "Debug",
+ "System": "Information",
+ "Microsoft": "Information"
+ },
+ "Debug": {
+ "LogLevel": {
+ "Default": "Critical"
+ }
+ }
+ },
"apiConfig": {
"baseUrl": "https://zeta.innotec.dk",
"catalog": "api/v2/catalog/country",
@@ -34,16 +46,4 @@
"userInfo": "api/auth/userinfo",
"warehouse": "api/v2/warehouse/packages"
},
- "Logging": {
- "LogLevel": {
- "Default": "Information",
- "System": "Information",
- "Microsoft": "Information"
- },
- "Debug": {
- "LogLevel": {
- "Default": "Critical"
- }
- }
- }
}