Fix FinancialStatement bug

This commit is contained in:
MahanCh
2025-07-14 17:19:27 +03:30
parent d0e05df33a
commit aab30b3a4b
2 changed files with 3 additions and 1 deletions

View File

@@ -107,7 +107,7 @@ public class FinancialStatmentRepository : RepositoryBase<long, FinancialStatmen
if (searchModel.FromDate.TryToGeorgianDateTime(out var fromDate) == false)
throw new BadRequestException("تاریخ وارد شده نامعتبر است");
if (searchModel.FromDate.TryToGeorgianDateTime(out var toDate) == false)
if (searchModel.ToDate.TryToGeorgianDateTime(out var toDate) == false)
throw new BadRequestException("تاریخ وارد شده نامعتبر است");
resTransaction = resTransaction.Where(x => x.TdateGr >= fromDate && x.TdateGr <= toDate).ToList();

View File

@@ -263,6 +263,8 @@ builder.Services.AddCors(options =>
{
policy.WithOrigins(
"http://localhost:3000",
"http://localhost:4000",
"http://localhost:4001",
"http://localhost:3001",
"https://gozareshgir.ir",
"https://dad-mehr.ir",