wip: minor cosmetic

This commit is contained in:
Frede Hundewadt 2023-05-31 08:47:24 +02:00
parent f2f3458373
commit 8cd924e817
4 changed files with 12 additions and 8 deletions

View file

@ -36,4 +36,4 @@
} }
@* overlay showing one invoice*@ @* overlay showing one invoice*@
<OfficeCustomerInvoiceViewOverlay CountryCode="@Company.CountryCode" CompanyId="@Company.CompanyId" InvoiceId="@InvoiceId" @ref="OfficeCustomerInvoiceView" /> <OfficeCustomerInvoiceViewOverlay CountryCode="@Company.CountryCode" CompanyId="@Company.CompanyId" InvoiceId="@InvoiceId" @ref="InvoiceView" />

View file

@ -24,14 +24,18 @@ namespace Wonky.Client.OverlayOffice;
public partial class OfficeCustomerInvoiceListOverlay public partial class OfficeCustomerInvoiceListOverlay
{ {
// ##############################################################
[Inject] public ILogger<OfficeCustomerInvoiceListOverlay> Logger { get; set; }
// ##############################################################
[Parameter] public InvoiceListView InvoiceList { get; set; } = new(); [Parameter] public InvoiceListView InvoiceList { get; set; } = new();
[Parameter] public CompanyDto Company { get; set; } = new(); [Parameter] public CompanyDto Company { get; set; } = new();
// dependency injection
[Inject] public ILogger<OfficeCustomerInvoiceListOverlay> Logger { get; set; } // ##############################################################
private string InvoiceId { get; set; } = ""; private string InvoiceId { get; set; } = "";
private string _modalDisplay = ""; private string _modalDisplay = "";
private bool _showBackdrop; private bool _showBackdrop;
private OfficeCustomerInvoiceViewOverlay OfficeCustomerInvoiceView { get; set; } = new(); private OfficeCustomerInvoiceViewOverlay InvoiceView { get; set; } = new();
private List<InvoiceListItemView> Invoices { get; set; } = new(); private List<InvoiceListItemView> Invoices { get; set; } = new();
protected override async Task OnParametersSetAsync() protected override async Task OnParametersSetAsync()
@ -52,7 +56,7 @@ public partial class OfficeCustomerInvoiceListOverlay
private void CallInvoiceModal(string invoiceId) private void CallInvoiceModal(string invoiceId)
{ {
InvoiceId = invoiceId; InvoiceId = invoiceId;
OfficeCustomerInvoiceView.Show(); InvoiceView.Show();
} }
public void Show() public void Show()

View file

@ -1,4 +1,4 @@
@* Copyright (C) 2022 FCS Frede's Computer Services. 00@* Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as // it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the // published by the Free Software Foundation, either version 3 of the

View file

@ -3,7 +3,7 @@
"name": "Wonky Online", "name": "Wonky Online",
"version": "153.0", "version": "153.0",
"rc": true, "rc": true,
"sandBox": true, "sandBox": false,
"image": "grumpy-coder.png" "image": "grumpy-coder.png"
}, },
"Logging": { "Logging": {
@ -19,7 +19,7 @@
} }
}, },
"apiConfig": { "apiConfig": {
"baseUrl": "https://eta.innotec.dk", "baseUrl": "https://zeta.innotec.dk",
"catalog": "api/v2/catalog/country", "catalog": "api/v2/catalog/country",
"crmCustomers": "api/v2/crm/companies", "crmCustomers": "api/v2/crm/companies",
"crmInventoryExt": "history/inventory", "crmInventoryExt": "history/inventory",