|
|
@ -31,7 +31,6 @@ public class PurchaseReturnNoteController : AbpController |
|
|
|
|
|
|
|
private readonly IBalanceAppService _balanceAppService; |
|
|
|
private readonly IPurchaseOrderAppService _purchaseOrderAppService; |
|
|
|
private readonly ICurrentUser _currentUser; |
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
@ -41,14 +40,13 @@ public class PurchaseReturnNoteController : AbpController |
|
|
|
public PurchaseReturnNoteController(IPurchaseReturnNoteAppService noteAppService, |
|
|
|
IInventoryLabelAppService labelAppService, |
|
|
|
IBalanceAppService balanceAppService, |
|
|
|
IPurchaseOrderAppService purchaseOrderAppService, |
|
|
|
ICurrentUser currentUser) |
|
|
|
IPurchaseOrderAppService purchaseOrderAppService |
|
|
|
) |
|
|
|
{ |
|
|
|
_noteAppService = noteAppService; |
|
|
|
this._labelAppService = labelAppService; |
|
|
|
this._balanceAppService = balanceAppService; |
|
|
|
_purchaseOrderAppService = purchaseOrderAppService; |
|
|
|
_currentUser = currentUser; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
@ -75,10 +73,6 @@ public class PurchaseReturnNoteController : AbpController |
|
|
|
var noteCreateInputs = await BuildNoteCreateInputsAsync(input, EnumPurchaseReturnType.BeforePuton).ConfigureAwait(false); |
|
|
|
foreach (var noteCreateInput in noteCreateInputs) |
|
|
|
{ |
|
|
|
if (noteCreateInput.Worker.IsNullOrEmpty()) |
|
|
|
{ |
|
|
|
noteCreateInput.Worker = _currentUser.UserName; |
|
|
|
} |
|
|
|
await _noteAppService.CreateAsync(noteCreateInput).ConfigureAwait(false); |
|
|
|
} |
|
|
|
|
|
|
|