This commit is contained in:
mmrbnjd
2024-06-18 13:59:32 +03:30
parent 28424214ed
commit 692aa30afe
10 changed files with 241 additions and 120 deletions

View File

@@ -78,7 +78,8 @@ namespace Back.Services
public async Task<CODItem?> GetCodByCodID(int CodID, int CompanyID)
{
return await _CODRepo
.Get(w => w.ID == CodID && w.CompanyID == CompanyID && !w.IsDeleted).FirstOrDefaultAsync();
.Get(w => w.ID == CodID && w.CompanyID == CompanyID && !w.IsDeleted)
.Include(inc=>inc.CODUnit).FirstOrDefaultAsync();
}
public async Task<bool> ExistCodByCompanyID(int CodID, int CompanyID)
{