diff --git a/Wonky.Client/Pages/SalesReport.razor.cs b/Wonky.Client/Pages/SalesReport.razor.cs
index 90bfb76c..21b8fa3d 100644
--- a/Wonky.Client/Pages/SalesReport.razor.cs
+++ b/Wonky.Client/Pages/SalesReport.razor.cs
@@ -33,7 +33,7 @@ public partial class SalesReport
private ReportDto _reportDto = new();
private Preferences _prefs { get; set; } = new();
private bool _formInvalid = true;
- private List? Activities { get; set; } = new();
+ private List? Activities { get; set; } = new();
private DateTime _workDate;
protected override async Task OnInitializedAsync()
{
diff --git a/Wonky.Entity/DTO/NgSalesReportInitDto.cs b/Wonky.Entity/DTO/NgSalesReportInitDto.cs
new file mode 100644
index 00000000..84448be7
--- /dev/null
+++ b/Wonky.Entity/DTO/NgSalesReportInitDto.cs
@@ -0,0 +1,10 @@
+using Wonky.Entity.Models;
+
+namespace Wonky.Entity.DTO;
+
+public class NgSalesReportInitDto
+{
+ public ReportFiguresDto ReportFigures { get; set; } = new();
+ public List Activities { get; set; } = new();
+
+}
\ No newline at end of file
diff --git a/Wonky.Entity/Models/ReportActivity.cs b/Wonky.Entity/DTO/ReportActivityDto.cs
similarity index 51%
rename from Wonky.Entity/Models/ReportActivity.cs
rename to Wonky.Entity/DTO/ReportActivityDto.cs
index 60c5f3ab..78358315 100644
--- a/Wonky.Entity/Models/ReportActivity.cs
+++ b/Wonky.Entity/DTO/ReportActivityDto.cs
@@ -1,8 +1,8 @@
-namespace Wonky.Entity.Models;
+namespace Wonky.Entity.DTO;
-public class ReportActivity
+public class ReportActivityDto
{
- public VisitCompany Company { get; set; }
+ public ReportVisitDto ReportVisitDto { get; set; } = new();
public string SalesHeadId { get; set; } = "";
public bool Closed { get; set; }
public string OrderDate { get; set; } = "";
@@ -14,12 +14,3 @@ public class ReportActivity
public string SalesResume { get; set; } = "";
}
-public class VisitCompany
-{
- public string CompanyId { get; set; } = "";
- public string Account { get; set; } = "";
- public string Name { get; set; } = "";
- public string ZipCity { get; set; } = "";
- public string Phone { get; set; } = "";
- public string VatNumber { get; set; } = "";
-}
\ No newline at end of file
diff --git a/Wonky.Entity/DTO/ReportFiguresDto.cs b/Wonky.Entity/DTO/ReportFiguresDto.cs
new file mode 100644
index 00000000..efac69f8
--- /dev/null
+++ b/Wonky.Entity/DTO/ReportFiguresDto.cs
@@ -0,0 +1,29 @@
+namespace Wonky.Entity.DTO;
+
+public class ReportFiguresDto
+{
+ public int SalesDayNumber { get; set; }
+ public int NewVisitCount { get; set; }
+ public int NewDemoCount { get; set; }
+ public int NewSaleCount { get; set; }
+ public int RecallVisitCount { get; set; }
+ public int RecallDemoCount { get; set; }
+ public int RecallSaleCount { get; set; }
+ public int SasCount { get; set; }
+ public int DistanceMonth { get; set; }
+ public int NewVisitCountMonth { get; set; }
+ public int NewDemoCountMonth { get; set; }
+ public int NewSaleCountMonth { get; set; }
+ public int RecallVisitCountMonth { get; set; }
+ public int RecallDemoCountMonth { get; set; }
+ public int RecallSaleCountMonth { get; set; }
+ public int SasCountMonth { get; set; }
+ public decimal NewTurnover { get; set; }
+ public decimal RecallTurnover { get; set; }
+ public decimal SasTurnover { get; set; }
+ public decimal TotalTurnover { get; set; }
+ public decimal NewTurnoverMonth { get; set; }
+ public decimal RecallTurnoverMonth { get; set; }
+ public decimal SasTurnoverMonth { get; set; }
+ public decimal TotalTurnoverMonth { get; set; }
+}
\ No newline at end of file
diff --git a/Wonky.Entity/DTO/ReportVisitDto.cs b/Wonky.Entity/DTO/ReportVisitDto.cs
new file mode 100644
index 00000000..d8133c24
--- /dev/null
+++ b/Wonky.Entity/DTO/ReportVisitDto.cs
@@ -0,0 +1,11 @@
+namespace Wonky.Entity.DTO;
+
+public class ReportVisitDto
+{
+ public string CompanyId { get; set; } = "";
+ public string Account { get; set; } = "";
+ public string Name { get; set; } = "";
+ public string ZipCity { get; set; } = "";
+ public string Phone { get; set; } = "";
+ public string VatNumber { get; set; } = "";
+}
\ No newline at end of file