|
|
@ -105,7 +105,6 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
[HttpPost] |
|
|
|
public virtual async Task<IActionResult> GenerateInvoice(List<string> p_invs) |
|
|
|
{ |
|
|
|
|
|
|
|
var issucess=await _invMng.SetForwardState(p_invs, SettleBillState.商务已审核); |
|
|
|
if (issucess == true) |
|
|
|
{ |
|
|
@ -122,11 +121,7 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
[HttpPost] |
|
|
|
public virtual async Task<IActionResult> ReissueInvoice([FromBody] string input) |
|
|
|
{ |
|
|
|
|
|
|
|
// await _invMng.SetForwardState(input.InvGroupNum, SettleBillState.商务已审核);
|
|
|
|
|
|
|
|
return new JsonResult(new { Code = 200, Message = "重开成功" }); |
|
|
|
|
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// 主表查询
|
|
|
@ -144,7 +139,6 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
{ |
|
|
|
itm.TaxAmtDiff = itm.TaxAmt + itm.TaxDiff; |
|
|
|
} |
|
|
|
|
|
|
|
return new PagedResultDto<INVOICE_GRP_DTO>(totalCount, dtos); |
|
|
|
} |
|
|
|
/// <summary>
|
|
|
@ -314,8 +308,6 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
{ |
|
|
|
itm.TaxAmtDiff = itm.TaxAmt + itm.TaxDiff; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var classDisplayName = typeof(INVOICE_GRP_DTO).GetCustomAttribute<DisplayAttribute>()?.Name ?? typeof(INVOICE_GRP_DTO).Name; |
|
|
|
string _fileName = $"{classDisplayName}_{Guid.NewGuid().ToString()}.xlsx"; |
|
|
|
byte[] result = null; |
|
|
@ -354,12 +346,9 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
{ |
|
|
|
return new JsonResult(new { Code = 200, Message = "退回成功" }); |
|
|
|
} |
|
|
|
|
|
|
|
return new JsonResult(new { Code = 400, Message = "退回失败" }); |
|
|
|
} |
|
|
|
|
|
|
|
[HttpPost] |
|
|
|
|
|
|
|
public virtual async Task<IActionResult> ReceivedAsync(List<string> p_ins) |
|
|
|
{ |
|
|
|
|
|
|
@ -479,7 +468,6 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
return true; |
|
|
|
} |
|
|
|
throw new BusinessException("8989", "生成失败,请检查调整表和旧发票内容"); |
|
|
|
|
|
|
|
} |
|
|
|
[UnitOfWork(false)] |
|
|
|
/// <summary>
|
|
|
@ -526,9 +514,11 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 检查是否有重复
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="p_list">调整明细数据</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
protected async Task<List<ERR_EXP_DTO>> CheckRepeat(List<PUB_ADJ_DETAIL_DTO> p_list) |
|
|
|
{ |
|
|
|
var errorlist = p_list.GroupBy(p => new { p.PN, p.LU }).Where(p => p.Count() > 1).Select(p => new { p.Key.PN, p.Key.LU }).ToList(); |
|
|
@ -544,9 +534,6 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 校验规则
|
|
|
|
/// </summary>
|
|
|
|