Kaynağa Gözat

酒店预订设置 --> 添加修改 --> CCP表Rate

LEIYI 6 ay önce
ebeveyn
işleme
d9e64a8327

+ 0 - 1
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -1567,7 +1567,6 @@ namespace OASystem.API.Controllers
                      */
                     switch (entity.CTable)
                     {
-
                         case 76://酒店预订
                             Grp_HotelReservations hotelReservations = _HotelReservations.Where(s => s.Id == entity.CId).FirstOrDefault();
                             if (hotelReservations != null)

+ 3 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/FeeAuditRepository.cs

@@ -164,7 +164,9 @@ namespace OASystem.Infrastructure.Repositories.Groups
             else if (feeType == 2)
             {
                 //1.基础数据参数验证
-                var priceType = new List<int>() { 1062 };
+                var priceType = new List<int>() {
+                    1062  //1062	尾款
+                };
                 var opinfos = _sqlSugar.Queryable<Grp_CarTouristGuideGroundReservations>()
                                        .Where(x => x.IsDel == 0 && x.DiId == diId && x.Id == dataId && !priceType.Contains(x.PriceType))
                                        .First();

+ 2 - 0
OASystem/OASystem.Infrastructure/Repositories/Groups/HotelPriceRepository.cs

@@ -342,6 +342,8 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 _CreditCardPayment.PayThenMoney = _CreditCardPayment.PayMoney;
                 _CreditCardPayment.PayMoney = _dto.CardPrice;
                 _CreditCardPayment.PaymentCurrency = _dto.CardPriceCurrency;
+                decimal ccpRate = 1.0000M;
+                if (_dto.CardPriceCurrency != 836) ccpRate = _dto.Contents.Find(x => x.PriceType == 1)?.Rate ?? 1.0000M;
 
                 _CreditCardPayment.RMBPrice = (_CreditCardPayment.DayRate * _CreditCardPayment.PayMoney).DecimalsKeepTwo();