File size: 690 Bytes
c2908d2
a19fd25
 
 
 
 
8ded86b
 
a19fd25
 
 
 
 
 
 
 
 
 
 
 
 
c2908d2
8ded86b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using OilShopManagement.Models;

namespace OilShopManagement.ViewModels;

public class SalesReportViewModel
{
    public DateTime FromDate { get; set; } = DateTime.UtcNow.Date.AddDays(-30);
    public DateTime ToDate { get; set; } = DateTime.UtcNow.Date;
    public IEnumerable<Invoice> Invoices { get; set; } = [];
    public decimal TotalSales { get; set; }
    public decimal TotalProfit { get; set; }
    public int TotalInvoices { get; set; }
}

public class StockReportViewModel
{
    public IEnumerable<Product> Products { get; set; } = [];
    public int TotalProducts { get; set; }
    public int LowStockCount { get; set; }
    public decimal TotalStockValue { get; set; }
}