|
|
@ -143,18 +143,14 @@ public class PurchaseReceiptNoteEventHandler |
|
|
|
private async Task CreateTransactionsAsync(PurchaseReceiptNote entity, |
|
|
|
Dictionary<string, EnumInspectType> dictionary) |
|
|
|
{ |
|
|
|
if (entity.Details.Any(p => |
|
|
|
p.PurchaseReceiptInspectStatus == EnumPurchaseReceiptInspect.OK)) |
|
|
|
{ |
|
|
|
var inboundTransactions = new List<TransactionEditInput>(); |
|
|
|
var inboundTransactions = new List<TransactionEditInput>(); |
|
|
|
|
|
|
|
//创建需要创建库存的 库存事务
|
|
|
|
inboundTransactions.AddRange(await BuildTransactionsAsync(entity, dictionary).ConfigureAwait(false)); |
|
|
|
//创建需要创建库存的 库存事务
|
|
|
|
inboundTransactions.AddRange(await BuildTransactionsAsync(entity, dictionary).ConfigureAwait(false)); |
|
|
|
|
|
|
|
if (inboundTransactions.Any()) |
|
|
|
{ |
|
|
|
await TransactionAppService.AddManyAsync(inboundTransactions).ConfigureAwait(false); |
|
|
|
} |
|
|
|
if (inboundTransactions.Any()) |
|
|
|
{ |
|
|
|
await TransactionAppService.AddManyAsync(inboundTransactions).ConfigureAwait(false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|