Browse Source

1、其他款项、酒店 、商邀、机票 、op、签证 、保险 更改c.PayDId == 72 --> IsPay = 0;

amigotrip 8 months ago
parent
commit
96aaf6e341

+ 22 - 14
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -8996,22 +8996,30 @@ namespace OASystem.API.Controllers
                             _ModuleSubPromptInfo.AddRange(
                                 _GroupCostsTypeData.Select(it => new
                                 {
-                                    Date = it.Date,  //日期
-                                    CarFee = (it.CarCost + it.CFM + it.CFOF) * _rate * _scale, //车费用
-                                    GuideFee = (it.TGS + it.TGOF + it.TGM + it.TGA + it.TGTF + it.TGEF) * _rate * _scale, //导游费用
-                                    MealFee = (it.B + it.L + it.D) * _rate * _scale,  //餐食费
-                                    TicketFee = it.EF * _rate * _scale,  //门票费 
-                                    TipFee = (it.TGTips + it.DRVTips) * _rate * _scale, //小费
-                                    AirportTransferFee = 0.00M,
-                                    DrinksSnacksFruitFee = it.B_R_F * _rate * _scale,  //饮料零食水果
-                                    TravelSupplies = it.TE * _rate * _scale,  //出行物资
-                                    LeadersFee = it.TLF * _rate * _scale,  //领队费
-                                    CarFee1 = it.CarCost * _rate * _scale,
-                                    CarType = it.CarType,  //车型
-                                    SpentCash = it.PC * _rate * _scale, //零用金
+                                    Date = it.Date,                       //日期
+                                    CarFee = it.CarCost * _rate * _scale, //车费用
+                                    CarType = it.CarType,                 //车型
+                                    DriverFee = it.CFS * _rate * _scale,  //司机工资
+                                    DriverTipsFee = it.DRVTips * _rate * _scale,  //司机小费
+                                    DriverMealSubsidy = it.CFM * _rate * _scale,  //司机餐补
+                                    DriverOvertimeFee = it.CFOF * _rate * _scale, //司机超时费用
+                                    GuideFee = it.TGS * _rate * _scale,           //导游费用
+                                    GuideOvertimeFee = it.TGOF * _rate * _scale,  //导游超时费用
+                                    GuideMealSubsidy = it.TGM * _rate * _scale,   //导游餐补
+                                    GuideRoomSubsidy = it.TGA * _rate * _scale,   //导游房补
+                                    GuideCarFare = it.TGTF * _rate * _scale,      //导游交通费
+                                    GuideSpotFee = it.TGEF * _rate * _scale,      //导游景点费
+                                    GuideTipsFee = it.TGTips * _rate * _scale,    //导游小费
+                                    Breakfast = it.B * _rate * _scale,            //早餐费
+                                    Lunch = it.L * _rate * _scale,                //午餐费
+                                    Dinner = it.D * _rate * _scale,               //晚餐费
+                                    TicketFee = it.EF * _rate * _scale,           //门票费 
+                                    SpentCash = it.PC * _rate * _scale,           //零用金
+                                    LeadersFee = it.TLF * _rate * _scale,         //领队费
+                                    DrinksSnacksFruitFee = it.B_R_F * _rate * _scale, //饮料零食水果
+                                    TravelSupplies = it.TE * _rate * _scale,      //出行物资
                                 })
                             );
-
                             break;
                         case 85: // 机票
 

+ 2 - 2
OASystem/OASystem.Api/OAMethodLib/GeneralMethod.cs

@@ -3233,7 +3233,8 @@ namespace OASystem.API.OAMethodLib
 
                         //文件名
                         //string strFileName = $"{_DelegationInfo.TeamName}出入境费用{Guid.NewGuid().ToString()}.{fileFormat}";
-                        string strFileName = $"{_DelegationInfo.TeamName}-出入境费用{Guid.NewGuid().ToString()}.{fileFormat}";
+                        //string strFileName = $"{_DelegationInfo.TeamName}-出入境费用{Guid.NewGuid().ToString()}.{fileFormat}";
+                        string strFileName = $"{_DelegationInfo.TeamName}{DateTime.UtcNow.ToString("yyyyMMddHHmmss")}.{fileFormat}";
 
                         AsposeHelper.removewatermark_v2180();
                         //doc.Save(AppSettingsHelper.Get("WordBasePath") + "EnterExitCost/File/" + strFileName);
@@ -3255,7 +3256,6 @@ namespace OASystem.API.OAMethodLib
                             _view.Data = new { Url = strFileName };
                             _view.Msg = "成功";
                             return _view;
-
                         }
 
                         doc.Save(AppSettingsHelper.Get("WordBasePath") + "EnterExitCost/File/" + strFileName, saveFormat);

+ 1 - 0
OASystem/OASystem.Domain/Dtos/Groups/EnterExitCostDto.cs

@@ -218,6 +218,7 @@ namespace OASystem.Domain.Dtos.Groups
 
     }
 
+
     public class ConfirmCostDto {
 
         /// <summary>

+ 1 - 1
OASystem/OASystem.Domain/Entities/Groups/Grp_CreditCardPayment.cs

@@ -31,7 +31,7 @@ namespace OASystem.Domain.Entities.Groups
         /// 支付方式
         /// </summary>
         [SugarColumn(IsNullable = true, ColumnDataType = "int")]
-        public int PayDId { get; set; }
+        public int PayDId { get; set; } = 0;
         /// <summary>
         /// 消费方式
         /// </summary>

+ 9 - 7
OASystem/OASystem.Infrastructure/Repositories/Groups/AirTicketResRepository.cs

@@ -459,12 +459,13 @@ namespace OASystem.Infrastructure.Repositories.Groups
                         Grp_CreditCardPayment grp_CreditCard = _mapper.Map<Grp_CreditCardPayment>(dto.CardPaymentOpData);
 
                         //PayDId == 刷卡 IsPay == 1
-                        if (dto.CardPaymentOpData.PayDId == 72)
-                        {
-                            grp_CreditCard.IsPay = 1;
-                        }
-                        else grp_CreditCard.IsPay = 0;
+                        //if (dto.CardPaymentOpData.PayDId == 72)
+                        //{
+                        //    grp_CreditCard.IsPay = 1;
+                        //}
+                        //else grp_CreditCard.IsPay = 0;
 
+                        grp_CreditCard.IsPay = 0;
 
                         //获取新汇率  int diId,int CId, int currencyId
                         var rate = await fn(dto.AirTicketResOpData.DiId,85,dto.AirTicketResOpData.Currency);
@@ -677,8 +678,9 @@ namespace OASystem.Infrastructure.Repositories.Groups
                         Grp_CreditCardPayment grp_CreditCard = _mapper.Map<Grp_CreditCardPayment>(dto.CardPaymentOpData);
 
                         //PayDId == 刷卡 IsPay == 1
-                        if (grp_CreditCard.PayDId == 72) grp_CreditCard.IsPay = 1;
-                        else grp_CreditCard.IsPay = 0;
+                        //if (grp_CreditCard.PayDId == 72) grp_CreditCard.IsPay = 1;
+                        //else grp_CreditCard.IsPay = 0;
+                        grp_CreditCard.IsPay = 0;
 
                         //获取新汇率  int diId,int CId, int currencyId
                         var rate = await fn(dto.AirTicketResOpData.DiId, 85, dto.AirTicketResOpData.Currency);

+ 5 - 3
OASystem/OASystem.Infrastructure/Repositories/Groups/CarTouristGuideGroundRepository.cs

@@ -1138,8 +1138,9 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 c.OrbitalPrivateTransfer = dto.OrbitalPrivateTransfer;
                 c.Payee = dto.Payee;
                 c.CreateUserId = dto.CreateUserId;
-                if (c.PayDId == 72) c.IsPay = 1;
-                else c.IsPay = 0;
+                //if (c.PayDId == 72) c.IsPay = 1;
+                //else c.IsPay = 0;
+                c.IsPay = 0;
                 c.RMBPrice = c.PayMoney;
                 c.DayRate = 1;
 
@@ -1344,7 +1345,8 @@ namespace OASystem.Infrastructure.Repositories.Groups
             //设置团组汇率
             decimal dcm_dayrate = 1M;
             decimal dcm_rmbPrice = costDto.price;
-            int ispay = costDto.payType == 72 ? 1 : 0;
+            //int ispay = costDto.payType == 72 ? 1 : 0; 
+            int ispay =  0;
 
             if (costDto.costSign != 3)
             {

+ 3 - 2
OASystem/OASystem.Infrastructure/Repositories/Groups/CustomersRepository.cs

@@ -375,8 +375,9 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 c.IsAuditGM = 0;
                 c.PayMoney = cus.InsuranceCosts;
                 c.PaymentCurrency = cus.Currency;
-                if (c.PayDId == 72) c.IsPay = 1;
-                else c.IsPay = 0;
+                //if (c.PayDId == 72) c.IsPay = 1;
+                //else c.IsPay = 0;
+                c.IsPay = 0;
                 c.RMBPrice = cus.InsuranceCosts;
                 c.DayRate = 1;
                 Grp_TeamRate _TeamRate = _sqlSugar.Queryable<Grp_TeamRate>().First(a => a.DiId == dto.DiId && a.IsDel == 0 && a.CTable == 82);

+ 4 - 3
OASystem/OASystem.Infrastructure/Repositories/Groups/DecreasePaymentsRepository.cs

@@ -210,8 +210,10 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     C.AuditGMOperate = 21;
                     C.AuditGMDate = "";
 
-                    if (C.PayDId == 72) C.IsPay = 1;
-                    else C.IsPay = 0;
+                    //注释 刷卡=已支付状态
+                    //if (C.PayDId == 72) C.IsPay = 1;
+                    //else C.IsPay = 0;
+                    C.IsPay = 0;
 
                     C.DIId = grp_Decrease.DiId;
                     C.CId = id;
@@ -262,7 +264,6 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     }
 
                 }
-
             }
             else if (dto.Status == 2)
             {

+ 6 - 5
OASystem/OASystem.Infrastructure/Repositories/Groups/InvitationOfficialActivitiesRepository.cs

@@ -335,8 +335,8 @@ Order By i.id  Desc ", sqlWhere);
 
                         Grp_CreditCardPayment C = new Grp_CreditCardPayment();
                         C.PayDId = dto.PayDId;
-                        if (C.PayDId == 72) C.IsPay = 1;
-                        else C.IsPay = 0;
+                        //if (C.PayDId == 72) C.IsPay = 1;
+                        //else C.IsPay = 0;
 
                         C.ConsumptionPatterns = dto.ConsumptionPatterns;
                         C.ConsumptionDate = dto.ConsumptionDate;
@@ -362,7 +362,7 @@ Order By i.id  Desc ", sqlWhere);
                         C.IsAuditGM = 0;
                         C.AuditGMOperate = 0;
                         C.AuditGMDate = "";
-                        //C.IsPay = 0;
+                        C.IsPay = 0;
                         C.DIId = dto.DiId;
                         C.CId = id;
                         C.CTable = 81;
@@ -471,8 +471,9 @@ Order By i.id  Desc ", sqlWhere);
                         Grp_CreditCardPayment grp_CreditCardPayment = _sqlSugar.Queryable<Grp_CreditCardPayment>().First(a => a.CId == grp_Invitation.Id && a.CTable == 81 && a.IsDel == 0);
                         if (grp_CreditCardPayment != null)
                         {
-                            if (dto.PayDId == 72) grp_CreditCardPayment.IsPay = 1;
-                            else grp_CreditCardPayment.IsPay = 0;
+                            //if (dto.PayDId == 72) grp_CreditCardPayment.IsPay = 1;
+                            //else grp_CreditCardPayment.IsPay = 0;
+                            grp_CreditCardPayment.IsPay = 0;
 
                             grp_CreditCardPayment.PayMoney = dto.PayMoney;
                             grp_CreditCardPayment.PaymentCurrency = dto.PaymentCurrency;

+ 3 - 5
OASystem/OASystem.Infrastructure/Repositories/Groups/VisaPriceRepository.cs

@@ -333,11 +333,9 @@ From Grp_VisaInfo as v With(Nolock) left Join Grp_CreditCardPayment as c With(No
                 c.CTable = 80;
                 c.CId = dto.Id;
                 c.IsAuditGM = 0;
-                if (c.PayDId == 72)
-                {
-                    c.IsPay = 1;
-                }
-                else c.IsPay = 0;
+                //if (c.PayDId == 72) c.IsPay = 1; 
+                //else c.IsPay = 0;
+                c.IsPay = 0;
                 c.RMBPrice = c.PayMoney;
                 c.DayRate = 1;
                 Grp_TeamRate _TeamRate = _sqlSugar.Queryable<Grp_TeamRate>().First(a => a.DiId == dto.DiId && a.IsDel == 0 && a.CTable == 80);