|
@@ -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)
|
|
|
|