From 92d9ef1de72f5d6bbba5cf1123b5330cb076ae8d Mon Sep 17 00:00:00 2001 From: Frede Hundewadt Date: Tue, 28 Nov 2023 12:09:06 +0100 Subject: [PATCH] adding properties to invoice view --- .../Components/ActivityLinesComponent.razor | 51 +- .../CustomerInvoiceListComponent.razor | 2 +- .../B2BGetOrderQuantityOverlay.razor | 5 +- .../OfficeCustomerActivityViewOverlay.razor | 6 + .../OfficeCustomerInvoiceViewOverlay.razor | 74 +- .../OfficeCustomerInvoiceViewOverlay.razor.cs | 27 + Wonky.Client/Pages/Login.razor | 4 +- Wonky.Client/wwwroot/appsettings.json | 2 +- Wonky.Client/wwwroot/decode.js | 2237 +++++++++++++++++ Wonky.Client/wwwroot/decode.min.js | 1 + Wonky.Client/wwwroot/index.html | 2 +- Wonky.Entity/Views/InvoiceLineView.cs | 3 +- Wonky.Entity/Views/InvoiceView.cs | 1 + 13 files changed, 2361 insertions(+), 54 deletions(-) create mode 100644 Wonky.Client/wwwroot/decode.js create mode 100644 Wonky.Client/wwwroot/decode.min.js diff --git a/Wonky.Client/Components/ActivityLinesComponent.razor b/Wonky.Client/Components/ActivityLinesComponent.razor index 907a1259..6da21bab 100644 --- a/Wonky.Client/Components/ActivityLinesComponent.razor +++ b/Wonky.Client/Components/ActivityLinesComponent.razor @@ -1,5 +1,13 @@ @using Wonky.Entity.Views - +@if (ReportItem.Express) +{ +
+
+
+
HASTER
+
+
+} @@ -24,33 +32,28 @@ - + } - @if (ReportItem.Express) - { - - - } - - - - - - - - - - - - - - - + + + + + + + + + + + + + + +
@($"{line.Price:N2}") @($"{line.Discount:N2}") @($"{line.LineSum:N2}") + +
-
HASTER
-
SAS@ReportItem.SasAmount
NORMAL@ReportItem.OrderAmount
TOTAL@(ReportItem.OrderAmount + ReportItem.SasAmount)
SAS@ReportItem.SasAmount
NORMAL@ReportItem.OrderAmount
TOTAL@(ReportItem.OrderAmount + ReportItem.SasAmount)
diff --git a/Wonky.Client/Components/CustomerInvoiceListComponent.razor b/Wonky.Client/Components/CustomerInvoiceListComponent.razor index 5beb3918..3645d34b 100644 --- a/Wonky.Client/Components/CustomerInvoiceListComponent.razor +++ b/Wonky.Client/Components/CustomerInvoiceListComponent.razor @@ -52,7 +52,7 @@
-
@invoice.OrderNote
+
@invoice.OrderNote
} diff --git a/Wonky.Client/OverlayB2B/B2BGetOrderQuantityOverlay.razor b/Wonky.Client/OverlayB2B/B2BGetOrderQuantityOverlay.razor index 0f29c2ba..e79b8370 100644 --- a/Wonky.Client/OverlayB2B/B2BGetOrderQuantityOverlay.razor +++ b/Wonky.Client/OverlayB2B/B2BGetOrderQuantityOverlay.razor @@ -17,7 +17,7 @@