...
This commit is contained in:
@@ -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();
|
||||
|
@@ -56,7 +56,7 @@ namespace Back.Services
|
||||
{
|
||||
ID = x.ID,
|
||||
CODID = x.CODID,
|
||||
adis = x.adis,
|
||||
//adis = x.adis,
|
||||
am = x.am.Value,
|
||||
dis = x.dis,
|
||||
fee = x.fee.Value,
|
||||
|
Reference in New Issue
Block a user