|
|
@@ -4285,6 +4285,16 @@ namespace OASystem.API.OAMethodLib
|
|
|
|
|
|
#region 汇率
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 三公费用实时汇率调差
|
|
|
+ /// </summary>
|
|
|
+ private readonly static decimal _xchgRateAdj = 0.00M;
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 三公费用实时汇率上浮比例
|
|
|
+ /// </summary>
|
|
|
+ private readonly static decimal _fxRateRise = 1.0350M;
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 出入境费用 初始化汇率
|
|
|
/// </summary>
|
|
|
@@ -4310,13 +4320,9 @@ namespace OASystem.API.OAMethodLib
|
|
|
if (rateInfo != null)
|
|
|
{
|
|
|
decimal rate1 = Convert.ToDecimal(rateInfo.FSellPri) / 100.00M;
|
|
|
+ rate1 *= _fxRateRise;
|
|
|
|
|
|
- //if (rateInfo.Name.Equals("日元")) rate1 *= 1.3700M; //rate1 = rate1 * 1;
|
|
|
- //else rate1 *= 1.035M;
|
|
|
-
|
|
|
- rate1 *= 1.035M;
|
|
|
-
|
|
|
- item.Rate = rate1.TruncDecimals(4) + 0.01M;
|
|
|
+ item.Rate = rate1.TruncDecimals(4) + _xchgRateAdj;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -4350,13 +4356,7 @@ namespace OASystem.API.OAMethodLib
|
|
|
{
|
|
|
item.Rate = Convert.ToDecimal((Convert.ToDecimal(rateInfo.FSellPri == null ? 0.00M : rateInfo.FSellPri) / 100.00M).ToString("#0.0000"));
|
|
|
|
|
|
- //currency == usd 上浮比例 1.0300
|
|
|
- decimal increaseRate = 1.0350M;
|
|
|
-
|
|
|
- //if (item.CurrencyCode.ToUpper().equals("USD")) increaseRate = 1.0300M;
|
|
|
-
|
|
|
- decimal rate1 = item.Rate * increaseRate;
|
|
|
- //rate1 += 0.01M;
|
|
|
+ decimal rate1 = item.Rate * _fxRateRise + _xchgRateAdj;
|
|
|
|
|
|
reteInfos.Add(new
|
|
|
{
|
|
|
@@ -4409,7 +4409,7 @@ namespace OASystem.API.OAMethodLib
|
|
|
|
|
|
var cacheRateInfos = CommonFun.GetCurrencyChinaToList(info.CurrencyRemark);
|
|
|
|
|
|
- var isSendMsg = false;
|
|
|
+ var isSendMsg = true;
|
|
|
var msgContent = new StringBuilder();
|
|
|
|
|
|
//去掉费用未使用得币种
|
|
|
@@ -4420,19 +4420,20 @@ namespace OASystem.API.OAMethodLib
|
|
|
|
|
|
if (cacheRateInfos.Any())
|
|
|
{
|
|
|
- decimal rowthRate = 1.0350M;
|
|
|
+ decimal rowthRate = _fxRateRise;
|
|
|
foreach (var cacheRate in cacheRateInfos)
|
|
|
{
|
|
|
var liveRate = liveRates.Find(x => x.CurrencyName.Equals(cacheRate.CurrencyName));
|
|
|
if (liveRate == null) continue;
|
|
|
|
|
|
- var currRate = (rowthRate * liveRate.Rate).TruncDecimals(4);
|
|
|
- if (cacheRate.Rate != currRate)
|
|
|
- {
|
|
|
- isSendMsg = true;
|
|
|
+ var currRate = (rowthRate * liveRate.Rate).TruncDecimals(4) + _xchgRateAdj;
|
|
|
+
|
|
|
+ //if (cacheRate.Rate != currRate)
|
|
|
+ //{
|
|
|
+ // isSendMsg = true;
|
|
|
//>团组归属:<font color='info'>{groupName}</font>
|
|
|
msgContent.AppendLine($">- {cacheRate.CurrencyName}汇率(页面保存):{cacheRate.Rate:#0.0000} / 实时汇率(接口保存,已上浮1.0350):{currRate:#0.0000}【原接口输出汇率为:{liveRate.Rate:#0.0000}】");
|
|
|
- }
|
|
|
+ //}
|
|
|
}
|
|
|
return (isSendMsg, msgContent.ToString(), liveRates);
|
|
|
}
|
|
|
@@ -4514,7 +4515,7 @@ namespace OASystem.API.OAMethodLib
|
|
|
List<Grp_DayAndCost> dac4 = dayAndCosts.Where(it => it.Type == 4).ToList(); //培训费
|
|
|
|
|
|
var _CurrDatas = _sqlSugar.Queryable<Sys_SetData>().Where(it => it.IsDel == 0 && it.STid == 66).ToList();
|
|
|
- var _DelegationInfo = _sqlSugar.Queryable<Grp_DelegationInfo>().Where(it => it.IsDel == 0 && it.Id == dto.DiId).First();
|
|
|
+ var _DelegationInfo = _sqlSugar.Queryable<Grp_DelegationInfo>().Where(it => it.Id == dto.DiId).First();
|
|
|
var DeleClientList = _sqlSugar.Queryable<Grp_TourClientList>()
|
|
|
.LeftJoin<Crm_DeleClient>((tcl, dc) => tcl.ClientId == dc.Id && dc.IsDel == 0)
|
|
|
.LeftJoin<Crm_CustomerCompany>((tcl, dc, cc) => dc.CrmCompanyId == cc.Id && dc.IsDel == 0)
|
|
|
@@ -4533,8 +4534,7 @@ namespace OASystem.API.OAMethodLib
|
|
|
var placeData = _sqlSugar.Queryable<Grp_NationalTravelFee>().Where(it => it.IsDel == 0).ToList();
|
|
|
var rateDatas = await enterExitCosts.CurrencyRemark.SplitExchangeRate();
|
|
|
|
|
|
-
|
|
|
- _DelegationInfo.VisitCountry = _DelegationInfo.VisitCountry.Replace("|", "、");
|
|
|
+ _DelegationInfo.VisitCountry = _DelegationInfo?.VisitCountry?.Replace("|", "、") ?? "";
|
|
|
|
|
|
if (dto.ExportType == 1) //明细表
|
|
|
{
|