|
@@ -379,7 +379,7 @@ namespace OA2021.finance
|
|
|
cTemp.DeleteTime = "";
|
|
|
cTemp.Remark = "";
|
|
|
cTemp.IsDel = 0;
|
|
|
- //if (cTemp.Money!=0)
|
|
|
+ if (cTemp.Money!=0)
|
|
|
{
|
|
|
new Fin_CommissionService().add(cTemp);
|
|
|
}
|
|
@@ -488,12 +488,25 @@ namespace OA2021.finance
|
|
|
cTemp.Detail = "";
|
|
|
//机票
|
|
|
List<AirTicketReservations> listAir = new AirTicketReservationsService().GetAirTicketReservationsByDIIDAndUId(dele.Id, cTemp.Personnel);
|
|
|
+ if (listAir==null)
|
|
|
+ {
|
|
|
+ listAir = new List<AirTicketReservations>();
|
|
|
+ }
|
|
|
//酒店
|
|
|
List<HotelReservations> listHotel = new HotelReservationsService().GetByDIIdUId(dele.Id, cTemp.Personnel);
|
|
|
+ if (listHotel == null)
|
|
|
+ {
|
|
|
+ listHotel = new List<HotelReservations>();
|
|
|
+ }
|
|
|
//地接
|
|
|
List<CarTouristGuideGroundReservations> listOP = new CarTouristGuideGroundReservationsService().GetCarTouristGuideGroundReservationsByDIID(dele.Id);
|
|
|
+ if (listOP == null)
|
|
|
+ {
|
|
|
+ listOP = new List<CarTouristGuideGroundReservations>();
|
|
|
+ }
|
|
|
//签证
|
|
|
List<Visa> listVisa = new VisaService().GetVisaByDIIDAndUserId(dele.Id, cTemp.Personnel);
|
|
|
+
|
|
|
//if (Profitstr > 0)
|
|
|
{
|
|
|
cTemp.IsMakeLoss = 0;
|
|
@@ -990,7 +1003,8 @@ namespace OA2021.finance
|
|
|
}
|
|
|
}
|
|
|
cTemp.Detail += "额外提成为" + comMoney + ",";
|
|
|
- cTemp.Detail += "总提成为" + comMoney + cost + "。";
|
|
|
+ cTemp.Detail += "总提成为" + (comMoney + cost) + "。";
|
|
|
+ comMoney = (comMoney + cost);
|
|
|
}
|
|
|
}
|
|
|
else
|
|
@@ -1042,6 +1056,7 @@ namespace OA2021.finance
|
|
|
{
|
|
|
int count1 = 0;
|
|
|
int count2 = 0;
|
|
|
+
|
|
|
foreach (Visa visa in listVisa)
|
|
|
{
|
|
|
CreditCardPayment c = new CreditCardPaymentService().GetCreditCardPaymentByCid(visa.Id, 80);
|