Rav3nFK 2 年之前
父節點
當前提交
db3e6ea25c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      modulekz/Cart.xaml.cs

+ 2 - 1
modulekz/Cart.xaml.cs

@@ -59,6 +59,7 @@ namespace modulekz
                 BuyOrder order = new BuyOrder() { IdBook = b.Id, Count = b.inc, DateOrder = DateTime.Now };
                 BaseConnect.BaseModel.BuyOrder.Add(order);
                 allBook += b.inc;
+                allSum += Convert.ToDouble(b.inc) * Convert.ToDouble(b.Cost);
                 if (b.inc < b.Store)
                 {
                     b.Store -= b.inc;
@@ -90,7 +91,7 @@ namespace modulekz
 
 
 
-                allSum += Convert.ToDouble(b.inc) * Convert.ToDouble(b.Cost);
+                
                 sale = Convert.ToInt32(b.sale);
                 if (sale > 0)