get invoice view
This commit is contained in:
@@ -61,6 +61,20 @@ namespace Back.Services
|
||||
}).OrderByDescending(o=>o.ID)
|
||||
.Paging(itemSerch.PageIndex, itemSerch.PageSize);
|
||||
}
|
||||
public async Task<List<ForCustomerSearch>?> GetCustomers(int CompanyID)
|
||||
{
|
||||
var invok = _repoCus
|
||||
.Get(w => w.CompanyID == CompanyID && !w.IsDeleted);
|
||||
|
||||
//-----------------------
|
||||
return await invok.Select(s => new ForCustomerSearch()
|
||||
{
|
||||
CustomerName=s.FullName,
|
||||
ID = s.ID
|
||||
|
||||
}).OrderByDescending(o => o.ID)
|
||||
.ToListAsync();
|
||||
}
|
||||
public async Task<Customer?> GetCustomerByCustomerID(int CustomerID, int CompanyID)
|
||||
{
|
||||
return await _repoCus
|
||||
|
Reference in New Issue
Block a user