Rework so employee dont use repos but servies
This commit is contained in:
11
PointOfSale/Pos.Models/ReceiptDetailModel.cs
Normal file
11
PointOfSale/Pos.Models/ReceiptDetailModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Pos.Models
|
||||
{
|
||||
public class ReceiptDetailModel
|
||||
{
|
||||
public int SaleId { get; set; }
|
||||
public List<ReceiptLineModel> Lines { get; set; } = new();
|
||||
public decimal Total { get; set; }
|
||||
}
|
||||
}
|
||||
10
PointOfSale/Pos.Models/ReceiptLineModel.cs
Normal file
10
PointOfSale/Pos.Models/ReceiptLineModel.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Pos.Models
|
||||
{
|
||||
public class ReceiptLineModel
|
||||
{
|
||||
public string Product { get; set; } = string.Empty;
|
||||
public int Pieces { get; set; }
|
||||
public decimal Price { get; set; }
|
||||
public decimal Total { get; set; }
|
||||
}
|
||||
}
|
||||
11
PointOfSale/Pos.Models/ReceiptSummaryModel.cs
Normal file
11
PointOfSale/Pos.Models/ReceiptSummaryModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Pos.Models
|
||||
{
|
||||
public class ReceiptSummaryModel
|
||||
{
|
||||
public int SaleId { get; set; }
|
||||
public DateTime SaleTime { get; set; }
|
||||
public decimal Total { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user