Fix FinancialStatement bug
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user