ауф
This commit is contained in:
parent
f776caeb61
commit
6bdc909eeb
@ -30,16 +30,17 @@ public class Invoice
|
|||||||
[DisplayName("Дата")]
|
[DisplayName("Дата")]
|
||||||
public DateTime DateInvoice { get; set; }
|
public DateTime DateInvoice { get; set; }
|
||||||
|
|
||||||
[DisplayName("Продукты")]
|
[Browsable(false)]
|
||||||
public string Product => Products != null ?
|
|
||||||
string.Join(", ", Products.Select(x => $"{x.ProductName} {x.Count}")) : string.Empty;
|
|
||||||
|
|
||||||
public IEnumerable<InvoiceProduct> Products
|
public IEnumerable<InvoiceProduct> Products
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
private set;
|
private set;
|
||||||
} = [];
|
} = [];
|
||||||
|
|
||||||
|
[DisplayName("Продукты")]
|
||||||
|
public string Product => Products != null ?
|
||||||
|
string.Join(", ", Products.Select(x => $"{x.ProductName} {x.Count}")) : string.Empty;
|
||||||
|
|
||||||
public static Invoice CreateOperation(int id, int clientId, int availabilityOfPromotionalCode, int discountPercentage,
|
public static Invoice CreateOperation(int id, int clientId, int availabilityOfPromotionalCode, int discountPercentage,
|
||||||
int sellingPrice, IEnumerable<InvoiceProduct> products)
|
int sellingPrice, IEnumerable<InvoiceProduct> products)
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,7 @@ public class ProductMovement
|
|||||||
{
|
{
|
||||||
public int ID { get; private set; }
|
public int ID { get; private set; }
|
||||||
|
|
||||||
|
[Browsable(false)]
|
||||||
public int ProductID { get; private set; }
|
public int ProductID { get; private set; }
|
||||||
|
|
||||||
[DisplayName("Товар")]
|
[DisplayName("Товар")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user