|
|
@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Mvc; |
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.Domain.Entities.Auditing; |
|
|
|
using Volo.Abp.Users; |
|
|
|
using Win_in.Sfs.Label.Application.Contracts; |
|
|
|
using Win_in.Sfs.Label.Domain; |
|
|
|
using Win_in.Sfs.Shared.Domain.Shared; |
|
|
@ -39,8 +40,8 @@ public class PurchaseReturnNoteController : AbpController |
|
|
|
public PurchaseReturnNoteController(IPurchaseReturnNoteAppService noteAppService, |
|
|
|
IInventoryLabelAppService labelAppService, |
|
|
|
IBalanceAppService balanceAppService, |
|
|
|
IPurchaseOrderAppService purchaseOrderAppService |
|
|
|
) |
|
|
|
IPurchaseOrderAppService purchaseOrderAppService |
|
|
|
) |
|
|
|
{ |
|
|
|
_noteAppService = noteAppService; |
|
|
|
this._labelAppService = labelAppService; |
|
|
@ -70,7 +71,6 @@ public class PurchaseReturnNoteController : AbpController |
|
|
|
// await this.SetDetailPoNumberAsync(input.Details);
|
|
|
|
|
|
|
|
var noteCreateInputs = await BuildNoteCreateInputsAsync(input, EnumPurchaseReturnType.BeforePuton).ConfigureAwait(false); |
|
|
|
|
|
|
|
foreach (var noteCreateInput in noteCreateInputs) |
|
|
|
{ |
|
|
|
await _noteAppService.CreateAsync(noteCreateInput).ConfigureAwait(false); |
|
|
@ -141,7 +141,6 @@ public class PurchaseReturnNoteController : AbpController |
|
|
|
|
|
|
|
createInputs.Add(returnNoteEditInput); |
|
|
|
} |
|
|
|
|
|
|
|
return createInputs; |
|
|
|
} |
|
|
|
private async Task SetDetailByPoAsync(string poNumber, PurchaseReturnNoteDetailInput createInputDetail) |
|
|
|