...
This commit is contained in:
@@ -71,9 +71,12 @@ namespace Back.Services
|
||||
})
|
||||
.ToListAsync();
|
||||
}
|
||||
public async Task<List<IdName<int>>> GetUnits()
|
||||
public async Task<List<IdName<int>>> GetUnits(bool byUnitTaxID)
|
||||
{
|
||||
return await _UnitRepo.GetAll().Select(s => new IdName<int> { ID = s.ID, Title = s.Title }).ToListAsync();
|
||||
if(byUnitTaxID)
|
||||
return await _UnitRepo.GetAll().Select(s => new IdName<int> { ID =Convert.ToInt32( s.UnitTaxID.Trim()), Title = s.Title }).ToListAsync();
|
||||
else
|
||||
return await _UnitRepo.GetAll().Select(s => new IdName<int> { ID = s.ID, Title = s.Title }).ToListAsync();
|
||||
}
|
||||
public async Task<CODItem?> GetCodByCodID(int CodID, int CompanyID)
|
||||
{
|
||||
|
Reference in New Issue
Block a user