|
@ -145,8 +145,6 @@ public class TransactionAppService |
|
|
if (!itemCodes.Any()) |
|
|
if (!itemCodes.Any()) |
|
|
{ |
|
|
{ |
|
|
var itemBasicDtos_t = await _repository.GetListAsync().ConfigureAwait(false); |
|
|
var itemBasicDtos_t = await _repository.GetListAsync().ConfigureAwait(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
allTransactions = itemBasicDtos_t; |
|
|
allTransactions = itemBasicDtos_t; |
|
|
|
|
|
|
|
|
itemCodes.AddRange(itemBasicDtos_i.Select(p => p.Code)); |
|
|
itemCodes.AddRange(itemBasicDtos_i.Select(p => p.Code)); |
|
@ -155,6 +153,11 @@ public class TransactionAppService |
|
|
itemCodes=itemCodes.Distinct().ToList(); |
|
|
itemCodes=itemCodes.Distinct().ToList(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
var itemBasicDtos_t = await _repository.GetListAsync(p=> itemCodes.Contains(p.ItemCode)).ConfigureAwait(false); |
|
|
|
|
|
allTransactions = itemBasicDtos_t; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
foreach (var itemCode in itemCodes) |
|
|
foreach (var itemCode in itemCodes) |
|
|
{ |
|
|
{ |
|
|