|
|
@ -118,12 +118,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
/// 提交到QAD
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// 已扣减发票提交到QAD
|
|
|
|
/// 查询状态为已扣减的数据
|
|
|
|
/// 判断ParentInvbillNum是否有数据
|
|
|
|
/// 有数据查询出对应发票数据状态为已提交QAD(置换成负数据)需要提交到QAD
|
|
|
|
/// 已扣减的数据提交到QAD
|
|
|
|
/// 成功提交后修改状态为已提交QAD
|
|
|
|
/// * 已扣减发票提交到QAD
|
|
|
|
/// * 查询状态为已扣减的数据
|
|
|
|
/// * 判断ParentInvbillNum是否有数据
|
|
|
|
/// * 有数据查询出对应发票数据状态为已提交QAD(置换成负数据)需要提交到QAD
|
|
|
|
/// * 已扣减的数据提交到QAD
|
|
|
|
/// * 成功提交后修改状态为已提交QAD
|
|
|
|
/// </remarks>
|
|
|
|
[HttpPost] |
|
|
|
public virtual async Task<IActionResult> SubmitToQad(List<string> invbillNums) |
|
|
@ -587,11 +587,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
.GroupBy(p => new { p.LU, p.SettleGroupNum }) |
|
|
|
.Select(p => new JIT_UNSETTLED_DETAIL_DTO { LU = p.Key.LU, GroupNum = p.Key.SettleGroupNum, Qty = p.Sum(itm => itm.Qty.Value) }); |
|
|
|
entity.JIT_UNSETTLED_DETAIL = unsettledList.ToList().OrderBy(p => p.GroupNum).ThenBy(p => p.LU).ToList(); |
|
|
|
|
|
|
|
entity.INVOICE_MAP_GROUP =mdtos; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
if (first.BusinessType == EnumBusinessType.JisHBPO || first.BusinessType == EnumBusinessType.JisBBAC || first.BusinessType == EnumBusinessType.ZhiGongJianHBPO) |
|
|
|
{ |
|
|
@ -755,13 +750,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
{ |
|
|
|
_excel.Append(jitunsettle, "未结零件汇总"); |
|
|
|
} |
|
|
|
if (m != null) |
|
|
|
{ |
|
|
|
_excel.Append(m, "发票结算分组对应"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
//jis业务,发票分组对应关系,未结数据,调整数据
|
|
|
|
if (first.BusinessType == EnumBusinessType.JisBBAC || first.BusinessType == EnumBusinessType.JisHBPO || first.BusinessType == EnumBusinessType.ZhiGongJianHBPO) |
|
|
|