fix(SyncfusionPDF) , fix(GetPaymentsQuery)

- Fix syncfusion license issue and watremark in invoice
- Fix get payements query and set created at orderby DEC
release
Amir Hossein Khademi 2024-06-01 13:40:36 +03:30
parent 9f87d48602
commit 092d335f77
3 changed files with 4 additions and 3 deletions

View File

@ -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<ContainerBuilder>(builder =>

View File

@ -14,7 +14,7 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.4" />
<PackageReference Include="Quartz" Version="3.8.1" />
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="25.1.40" />
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="24.1.41" />
</ItemGroup>

View File

@ -15,6 +15,7 @@ public class GetPaymentsQueryHandler : IRequestHandler<GetPaymentsQuery,List<Pay
{
return await _repositoryWrapper.SetRepository<Payment>()
.TableNoTracking
.OrderByDescending(o=>o.CreatedAt)
.Skip(20 * request.Page)
.Take(20)
.Select(PaymentMapper.ProjectToSDto)