Inventory
This commit is contained in:
@@ -64,9 +64,11 @@ namespace Back.Services.Warehouse
|
||||
//list.AddRange(await RequestRemittance.ToListAsync());
|
||||
//return await list.OrderByDescending(o=>o.Date).AsQueryable().Paging(PageIndex, PageSize);
|
||||
}
|
||||
public async Task Inventory(int CompanyID,int CODID)
|
||||
public async Task<int> Inventory(int CompanyID,int CODID)
|
||||
{
|
||||
|
||||
var CReceipt=await _ReceiptRepo.Get(w => w.cODItem.CompanyID == CompanyID && w.CODID == CODID && w.ForSale ).SumAsync(s => s.Count);
|
||||
var CRemittance=await _RemittanceRepo.Get(w => w.cODItem.CompanyID == CompanyID && w.CODID == CODID ).SumAsync(s => s.Count);
|
||||
return CReceipt - CRemittance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user