|
|
|
@ -153,11 +153,11 @@ namespace DS.WMS.FeeApi.Controllers
|
|
|
|
|
/// <param name="idModel">开票的发票ID</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost, Route("Initiate")]
|
|
|
|
|
public async Task<DataResult<JObject>> InitiateAsync([FromServices] IInvoiceIssuanceService issuanceService,
|
|
|
|
|
public async Task<DataResult> InitiateAsync([FromServices] IInvoiceIssuanceService issuanceService,
|
|
|
|
|
[FromBody] IdModel idModel)
|
|
|
|
|
{
|
|
|
|
|
if (!ModelState.IsValid)
|
|
|
|
|
return DataResult<JObject>.Failed(ModelState.GetErrorMessage(), MultiLanguageConst.IllegalRequest);
|
|
|
|
|
return DataResult.Failed(ModelState.GetErrorMessage(), MultiLanguageConst.IllegalRequest);
|
|
|
|
|
|
|
|
|
|
return await issuanceService.InitiateAsync(idModel.Ids);
|
|
|
|
|
}
|
|
|
|
@ -169,7 +169,7 @@ namespace DS.WMS.FeeApi.Controllers
|
|
|
|
|
/// <param name="request">请求参数</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost, Route("Reverse")]
|
|
|
|
|
public async Task<DataResult<JObject>> ReverseAsync([FromServices] IInvoiceIssuanceService issuanceService,
|
|
|
|
|
public async Task<DataResult> ReverseAsync([FromServices] IInvoiceIssuanceService issuanceService,
|
|
|
|
|
[FromBody] InvoiceReversalRequest request)
|
|
|
|
|
{
|
|
|
|
|
return await issuanceService.ReverseAsync(request);
|
|
|
|
|