步步为盈
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
993 B

using Newtonsoft.Json;
using System;
namespace BBWY.Client.Models
{
public class RelationPurchaseOrderSku : NotifyObject
{
private decimal singleSkuAmount;
private decimal skuAmount;
public string ProductId { get; set; }
public string SkuId { get; set; }
public string Logo { get; set; }
public int Quantity { get; set; }
public string Title { get; set; }
public decimal SingleSkuAmount
{
get => singleSkuAmount;
set
{
if (Set(ref singleSkuAmount, value))
SkuAmount = SingleSkuAmount * Quantity;
}
}
public decimal SkuAmount
{
get => skuAmount;
set
{
if (Set(ref skuAmount, value))
OnSkuAmountChanged?.Invoke();
}
}
[JsonIgnore]
public Action OnSkuAmountChanged { get; set; }
}
}