Inventory

This commit is contained in:
mmrbnjd
2025-01-11 23:03:16 +03:30
parent 1d7ebaae8e
commit b86c5d6485
2 changed files with 14 additions and 3 deletions

View File

@@ -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;
}
}
}