From 3b5d8077d2769992e41c72571342a966d4ecacba Mon Sep 17 00:00:00 2001 From: sanji Date: Wed, 24 Jan 2024 19:55:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=88=90=E6=9C=AC=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E5=92=8C=E6=88=90=E6=9C=AC=E6=AF=9B=E5=88=A9=E7=8E=87?= =?UTF-8?q?=E5=85=AC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Client/GlobalContext.cs | 2 +- .../Response/Order/OrderCostResponse.cs | 5 +++- BBWY.Client/Views/Order/OrderListControl.xaml | 26 ++++++++++++------- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/BBWY.Client/GlobalContext.cs b/BBWY.Client/GlobalContext.cs index ef199a45..9978f5d2 100644 --- a/BBWY.Client/GlobalContext.cs +++ b/BBWY.Client/GlobalContext.cs @@ -13,7 +13,7 @@ namespace BBWY.Client { ShopServiceGroupList = new List(); ShopServiceGroupLowerList = new List(); - ClientVersion = "10231"; + ClientVersion = "10232"; } diff --git a/BBWY.Client/Models/APIModel/Response/Order/OrderCostResponse.cs b/BBWY.Client/Models/APIModel/Response/Order/OrderCostResponse.cs index a01f346c..58e2148b 100644 --- a/BBWY.Client/Models/APIModel/Response/Order/OrderCostResponse.cs +++ b/BBWY.Client/Models/APIModel/Response/Order/OrderCostResponse.cs @@ -34,7 +34,10 @@ namespace BBWY.Client.Models { get { - return TotalCost == 0 ? 0 : Math.Round(Profit / TotalCost * 100, 2); + if (SDCommissionAmount > 0 || SDOrderAmount > 0) + return TotalCost == 0 ? 0 : Math.Round(Profit / TotalCost * 100, 2); + return PurchaseAmount == 0 ? 0 : Math.Round(Profit / PurchaseAmount * 100, 2); + } } diff --git a/BBWY.Client/Views/Order/OrderListControl.xaml b/BBWY.Client/Views/Order/OrderListControl.xaml index 60967cce..b2afce6d 100644 --- a/BBWY.Client/Views/Order/OrderListControl.xaml +++ b/BBWY.Client/Views/Order/OrderListControl.xaml @@ -452,11 +452,14 @@ - + - + + + + @@ -476,7 +479,7 @@ - + @@ -485,7 +488,7 @@ - + @@ -496,6 +499,8 @@ + + @@ -511,8 +516,8 @@ - - + + @@ -532,14 +537,15 @@ Visibility="{Binding FirstFreight,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> - + + - +