diff --git a/Wonky.Client/Components/AdvisorActivityListComponent.razor b/Wonky.Client/Components/AdvisorActivityListComponent.razor new file mode 100644 index 00000000..13ed7bfa --- /dev/null +++ b/Wonky.Client/Components/AdvisorActivityListComponent.razor @@ -0,0 +1,92 @@ +@* +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// +*@ +@using Wonky.Entity.Views + +@* Report activities *@ +
Kunde | +Bynavn | +Demo | +Salg | +Note | +sas | +Beløb | ++ + | ++ + | ++ + | ++ + | +
---|---|---|---|---|---|---|---|---|---|---|
@activity.Company.Name | +@activity.Company.City | +@activity.Demo | +@activity.Sales | +@activity.OfficeNote | +@($"{activity.SasAmount:N2}") | +@(activity.StatusTypeEnum.Contains("Quote") ? $"{0:N2}" : $"{activity.OrderAmount:N2}") | ++ @if (activity.OurRef.Contains("T:")) + { + + } + | ++ @if (activity.Express) + { + + } + | ++ @if (activity.StatusTypeEnum == "Quote") + { + + } + | +
+ |
+
+ | Total | +@Activities.Where(x => x.StatusTypeEnum != "Quote").Sum(x => x.OrderAmount) | ++ |
+ | Dagens Demo @(ReportData.NewDemoCount + ReportData.RecallDemoCount) | +Dagens Resultat | +Måneds Resultat | +|||||
---|---|---|---|---|---|---|---|---|
+ | Besøg | +Demo | +Salg | +Beløb | +Besøg | +Demo | +Salg | +Beløb | +
N | +@ReportData.NewVisitCount | +@ReportData.NewDemoCount | +@ReportData.NewSaleCount | +@ReportData.NewTurnover | +@ReportData.NewVisitCountMonth | +@ReportData.NewDemoCountMonth | +@ReportData.NewSaleCountMonth | +@ReportData.NewTurnoverMonth | +
R | +@ReportData.RecallVisitCount | +@ReportData.RecallDemoCount | +@ReportData.RecallSaleCount | +@ReportData.RecallTurnover | +@ReportData.RecallVisitCountMonth | +@ReportData.RecallDemoCountMonth | +@ReportData.RecallSaleCountMonth | +@ReportData.RecallTurnoverMonth | +
SAS | ++ | + | @ReportData.SasCount | +@ReportData.SasTurnover | ++ | + | @ReportData.SasCountMonth | +@ReportData.SasTurnoverMonth | +
TOTAL | +@ReportData.TotalVisitCount | +@ReportData.TotalDemoCount | +@ReportData.TotalSaleCount | +@ReportData.TotalTurnover | +@ReportData.TotalVisitCountMonth | +@ReportData.TotalDemoCountMonth | +@ReportData.TotalSaleCountMonth | +@ReportData.TotalTurnoverMonth | +
Dag / Periode | Begyndt | Afsluttet | @@ -105,9 +106,9 @@ @* details input *@
---|
Tekst | -Supervisor | +||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Beskrivelse | +Min medkørende supervisor |
Km aften | Km morgen | Km privat | @@ -156,145 +157,13 @@ @if (Activities.Any()) {
---|
Kunde | -Bynavn | -Demo | -Salg | -Note | -sas | -Beløb | -- - | -- - | -- - | -- - | -
---|---|---|---|---|---|---|---|---|---|---|
@activity.Company.Name | -@activity.Company.City | -@activity.Demo | -@activity.Sales | -@activity.OfficeNote | -@($"{activity.SasAmount:N2}") | -@(activity.StatusTypeEnum.Contains("Quote") ? $"{0:N2}" : $"{activity.OrderAmount:N2}") | -- @if (activity.OurRef.Contains("T:")) - { - - } - | -- @if (activity.Express) - { - - } - | -- @if (activity.StatusTypeEnum == "Quote") - { - - } - | -
- |
-
- | Total | -@Activities.Where(x => x.StatusTypeEnum != "Quote").Sum(x => x.OrderAmount) | -- |
- | Dagens Demo @(Report.Figures.NewDemoCount + Report.Figures.RecallDemoCount) | -Dagens Resultat | -Måneds Resultat | -|||||
---|---|---|---|---|---|---|---|---|
- | Besøg | -Demo | -Salg | -Beløb | -Besøg | -Demo | -Salg | -Beløb | -
N | -@Report.Figures.NewVisitCount | -@Report.Figures.NewDemoCount | -@Report.Figures.NewSaleCount | -@Report.Figures.NewTurnover | -@Report.Figures.NewVisitCountMonth | -@Report.Figures.NewDemoCountMonth | -@Report.Figures.NewSaleCountMonth | -@Report.Figures.NewTurnoverMonth | -
R | -@Report.Figures.RecallVisitCount | -@Report.Figures.RecallDemoCount | -@Report.Figures.RecallSaleCount | -@Report.Figures.RecallTurnover | -@Report.Figures.RecallVisitCountMonth | -@Report.Figures.RecallDemoCountMonth | -@Report.Figures.RecallSaleCountMonth | -@Report.Figures.RecallTurnoverMonth | -
SAS | -- | - | @Report.Figures.SasCount | -@Report.Figures.SasTurnover | -- | - | @Report.Figures.SasCountMonth | -@Report.Figures.SasTurnoverMonth | -
TOTAL | -@Report.Figures.TotalVisitCount | -@Report.Figures.TotalDemoCount | -@Report.Figures.TotalSaleCount | -@Report.Figures.TotalTurnover | -@Report.Figures.TotalVisitCountMonth | -@Report.Figures.TotalDemoCountMonth | -@Report.Figures.TotalSaleCountMonth | -@Report.Figures.TotalTurnoverMonth | -