|
@@ -102,14 +102,7 @@ namespace OASystem.Domain.ViewModels.Statistics
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
- var total = ReceivedAmount - RefundedAmount;
|
|
|
- var totalInt = (int)(total * 100);
|
|
|
-
|
|
|
- var total1 = new decimal(0, 0, 0, false, 2);
|
|
|
- if (total > 0) total1 = new decimal(totalInt, 0, 0, false, 2);
|
|
|
- else if (total < 0) total1 = new decimal(totalInt, 0, 0, true, 2);
|
|
|
-
|
|
|
- return total1;
|
|
|
+ return ReceivedAmount - RefundedAmount;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -119,14 +112,7 @@ namespace OASystem.Domain.ViewModels.Statistics
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
- var total = HotelAmount + LocalGuideAmount + AirTicketAmount + VisaAmount + OAAmount + InsureAmount + OtherAmount;
|
|
|
- var totalInt = (int)(total * 100);
|
|
|
-
|
|
|
- var total1 = new decimal(0, 0, 0, false, 2);
|
|
|
- if (total > 0) total1 = new decimal(totalInt, 0, 0, false, 2);
|
|
|
- else if (total < 0) total1 = new decimal(totalInt, 0, 0, true, 2);
|
|
|
-
|
|
|
- return total1;
|
|
|
+ return HotelAmount + LocalGuideAmount + AirTicketAmount + VisaAmount + OAAmount + InsureAmount + OtherAmount;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -136,14 +122,7 @@ namespace OASystem.Domain.ViewModels.Statistics
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
- var total = CollectionTotal - CostTotal;
|
|
|
- var totalInt = (int)(total * 100);
|
|
|
-
|
|
|
- var total1 = new decimal(0, 0, 0, false, 2);
|
|
|
- if (total > 0) total1 = new decimal(totalInt, 0, 0, false, 2);
|
|
|
- else if (total < 0) total1 = new decimal(totalInt, 0, 0, true, 2);
|
|
|
-
|
|
|
- return total1;
|
|
|
+ return CollectionTotal - CostTotal;
|
|
|
}
|
|
|
}
|
|
|
}
|