Task Changes And ReportRepository bug fixed

This commit is contained in:
SamSys
2024-10-05 19:27:04 +03:30
parent e226bed5ed
commit d0f69ea27c
80 changed files with 6136 additions and 4326 deletions

View File

@@ -32,7 +32,7 @@ public class AccountLeftworkRepository : RepositoryBase<long, AccountLeftWork>,
var initial = new DateTime(2150, 1, 1);
string start = "";
string end = "";
var res = _accountContext.AccountLeftWorks.FirstOrDefault(x => x.AccountId == accountId);
var res = _accountContext.AccountLeftWorks.Where(x => x.AccountId == accountId).OrderByDescending(x=>x.StartWorkGr).FirstOrDefault();
if (res != null)
{
start = res.StartWorkGr != initial ? res.StartWorkGr.ToFarsi() : "";