Spaces:
Sleeping
Sleeping
File size: 576 Bytes
c2908d2 a19fd25 c2908d2 8ded86b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using OilShopManagement.Models;
namespace OilShopManagement.Repositories;
public interface IInvoiceRepository : IRepository<Invoice>
{
Task<IEnumerable<Invoice>> GetAllWithDetailsAsync();
Task<Invoice?> GetWithDetailsAsync(int id);
Task<IEnumerable<Invoice>> GetByDateRangeAsync(DateTime from, DateTime to);
Task<IEnumerable<Invoice>> GetByCustomerAsync(int customerId);
Task<string> GenerateInvoiceNumberAsync();
Task<decimal> GetTotalSalesAsync(DateTime from, DateTime to);
Task<decimal> GetTotalProfitAsync(DateTime from, DateTime to);
}
|