Task Changes And ReportRepository bug fixed
This commit is contained in:
@@ -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() : "";
|
||||
|
||||
Reference in New Issue
Block a user