Commit 64ec7ef7 authored by liudong1993's avatar liudong1993

1

parent c338822a
...@@ -1218,6 +1218,30 @@ namespace REBORN.Module.FinanceModule ...@@ -1218,6 +1218,30 @@ namespace REBORN.Module.FinanceModule
} }
if (SetNextAuditor(list, null, userInfo, financeModel)) if (SetNextAuditor(list, null, userInfo, financeModel))
{ {
#region 合并审核 默认需要发票
//全是支出单
if (flist.Where(x => x.Type == WFTempLateClassEnum.OUT).Count() == flist.Count()) {
if (flist.Any(x => x.KingdeeInvoice == 0)) {
foreach (var fitem in flist.Where(x => x.KingdeeInvoice == 0))
{
//修改为 需要发票
Dictionary<string, object> keyValues = new Dictionary<string, object>() {
{ nameof(RB_Finance_Extend.KingdeeInvoice), 1}
};
List<WhereHelper> wheres = new List<WhereHelper>()
{
new WhereHelper()
{
FiledName = nameof(RB_Finance_Extend.FrID),
FiledValue = fitem.FrID,
OperatorEnum = OperatorEnum.Equal
}
};
RB_FinanceRepository.Update(keyValues, wheres);
}
}
}
#endregion
return ApiResult.Success("操作成功"); return ApiResult.Success("操作成功");
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment