From 092d335f77827267c86b66033edf7581e54496c3 Mon Sep 17 00:00:00 2001 From: "Amir.H Khademi" Date: Sat, 1 Jun 2024 13:40:36 +0330 Subject: [PATCH] fix(SyncfusionPDF) , fix(GetPaymentsQuery) - Fix syncfusion license issue and watremark in invoice - Fix get payements query and set created at orderby DEC --- Netina.Api/Program.cs | 4 ++-- Netina.Core/Netina.Core.csproj | 2 +- .../Handlers/Accounting/GetPaymentsQueryHandler.cs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Netina.Api/Program.cs b/Netina.Api/Program.cs index 7364788..2ce7f17 100644 --- a/Netina.Api/Program.cs +++ b/Netina.Api/Program.cs @@ -9,7 +9,7 @@ string env = builder.Environment.IsDevelopment() == true ? "Development" : "Prod builder.Host.UseContentRoot(Directory.GetCurrentDirectory()); if (builder.Environment.IsDevelopment()) { - string projectName = "Hamyan"; + string projectName = "Vesmeh"; builder.Configuration.AddJsonFile($"AppSettings/appsettings.json").AddJsonFile($"AppSettings/appsettings.{env}{projectName}.json"); } @@ -41,7 +41,7 @@ builder.Services.AddMarten(configuration,builder.Environment); builder.Services.AddCarter(); -Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MjM3OEAzMTM5MmUzMTJlMzBVeS82aFZBTTBzSG56NU1iekJscW9VN0s1UGJMcHBMRlFYMGduOUgxaUFvPQ=="); +Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("NjU5MUAzMTM5MmUzMTJlMzBmYlFPZXRJVThMS20zaFlBdjdKMnlKeGJRQng4b0lURDZ1Rk40akFHbnVrPQ=="); builder.Host.ConfigureContainer(builder => diff --git a/Netina.Core/Netina.Core.csproj b/Netina.Core/Netina.Core.csproj index 015f381..7ebd771 100644 --- a/Netina.Core/Netina.Core.csproj +++ b/Netina.Core/Netina.Core.csproj @@ -14,7 +14,7 @@ - + diff --git a/Netina.Repository/Handlers/Accounting/GetPaymentsQueryHandler.cs b/Netina.Repository/Handlers/Accounting/GetPaymentsQueryHandler.cs index c1be426..9ccd533 100644 --- a/Netina.Repository/Handlers/Accounting/GetPaymentsQueryHandler.cs +++ b/Netina.Repository/Handlers/Accounting/GetPaymentsQueryHandler.cs @@ -15,6 +15,7 @@ public class GetPaymentsQueryHandler : IRequestHandler() .TableNoTracking + .OrderByDescending(o=>o.CreatedAt) .Skip(20 * request.Page) .Take(20) .Select(PaymentMapper.ProjectToSDto)