|
@@ -97,7 +97,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
if (hotelCostInfos.Count < 1) isAutoAudit = false;
|
|
if (hotelCostInfos.Count < 1) isAutoAudit = false;
|
|
|
|
|
|
decimal otherFee = hotelCostDetails.Where(x => x.PriceType != 1).Sum(x => x.Price);
|
|
decimal otherFee = hotelCostDetails.Where(x => x.PriceType != 1).Sum(x => x.Price);
|
|
- if (otherFee > 0) { otherFee /= 3; }
|
|
|
|
|
|
+ if (otherFee > 0) { otherFee /= (checkOut-checkIn).Days; }
|
|
var hotelCostInfosGroup = hotelCostInfos.GroupBy(x => x.Date);
|
|
var hotelCostInfosGroup = hotelCostInfos.GroupBy(x => x.Date);
|
|
foreach (var item in hotelCostInfosGroup)
|
|
foreach (var item in hotelCostInfosGroup)
|
|
{
|
|
{
|