From bbff9710bf2f4a66bd6f4cd9e8ee55618d0ca5e0 Mon Sep 17 00:00:00 2001 From: Kukks Date: Fri, 2 Jun 2023 09:34:55 +0200 Subject: [PATCH] fix cart + form combination bug fixes #5031 --- BTCPayServer/Services/Apps/AppService.cs | 2 +- BTCPayServer/Services/Invoices/PosAppData.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/BTCPayServer/Services/Apps/AppService.cs b/BTCPayServer/Services/Apps/AppService.cs index c0a5934e2..bb16a0dcf 100644 --- a/BTCPayServer/Services/Apps/AppService.cs +++ b/BTCPayServer/Services/Apps/AppService.cs @@ -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 }); } diff --git a/BTCPayServer/Services/Invoices/PosAppData.cs b/BTCPayServer/Services/Invoices/PosAppData.cs index 575a96e28..531f7da93 100644 --- a/BTCPayServer/Services/Invoices/PosAppData.cs +++ b/BTCPayServer/Services/Invoices/PosAppData.cs @@ -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; }