This commit is contained in:
mmrbnjd
2024-05-23 19:59:19 +03:30
parent 12b89ad630
commit 0fc2efd5ca
10 changed files with 413 additions and 64 deletions

View File

@@ -54,6 +54,23 @@ namespace Back.Services
})
.Paging(itemSerch.PageIndex, itemSerch.PageSize);
}
public async Task<List<CODIdName<int>>?> GetCODs(int CompanyID)
{
#region AdvancedSearch
var invok = _CODRepo
.Get(w => w.CompanyID == CompanyID && !w.IsDeleted);
#endregion
//-----------------------
return await invok.Select(s => new CODIdName<int>()
{
ID = s.ID,
Title = s.Title,
Tax=s.TaxRate
})
.ToListAsync();
}
public async Task<List<IdName<int>>> GetUnits()
{
return await _UnitRepo.GetAll().Select(s => new IdName<int> { ID = s.ID, Title = s.Title }).ToListAsync();