Rav3nFK 2 years ago
parent
commit
db3e6ea25c
1 changed files with 2 additions and 1 deletions
  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)