fix cart + form combination bug fixes #5031

This commit is contained in:
Kukks 2023-06-02 09:34:55 +02:00
parent 358e122775
commit bbff9710bf
No known key found for this signature in database
GPG key ID: 8E5530D9D1C93097
2 changed files with 2 additions and 4 deletions

View file

@ -176,7 +176,7 @@ namespace BTCPayServer.Services.Apps
res.Add(new InvoiceStatsItem
{
ItemCode = item.Id,
FiatPrice = lineItem.Price.Value,
FiatPrice = lineItem.Price,
Date = e.InvoiceTime.Date
});
}

View file

@ -34,7 +34,7 @@ public class PosAppCartItem
public string Id { get; set; }
[JsonProperty(PropertyName = "price")]
public PosAppCartItemPrice Price { get; set; }
public decimal Price { get; set; }
[JsonProperty(PropertyName = "title")]
public string Title { get; set; }
@ -54,8 +54,6 @@ public class PosAppCartItemPrice
[JsonProperty(PropertyName = "formatted")]
public string Formatted { get; set; }
[JsonProperty(PropertyName = "value")]
public decimal Value { get; set; }
[JsonProperty(PropertyName = "type")]
public ViewPointOfSaleViewModel.ItemPriceType Type { get; set; }