* Further improvements
This commit is contained in:
@@ -11,4 +11,5 @@ public interface IMaterialTransactionService
|
||||
Task<IEnumerable<MaterialTransactionDto>> GetOrderNumbersByWz(ISet<string> wzNumbers);
|
||||
Task<IEnumerable<MaterialTransactionDto>> GetByCustomerNumber(string customerNumber, int customerSequence);
|
||||
Task<MaterialTransactionDto?> GetByPartNumber(string partNumber);
|
||||
Task<IEnumerable<MaterialTransactionDto>> GetWithPartNumber();
|
||||
}
|
||||
@@ -90,4 +90,11 @@ public class MaterialTransactionService(SytelineSaAppDbContext context, IMapper
|
||||
.Where(x => x.NR_KARTY_KONTROLNEJ == partNumber)
|
||||
.Select(x => mapper.Map<MaterialTransactionDto>(x)).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<MaterialTransactionDto>> GetWithPartNumber()
|
||||
{
|
||||
return await context.MaterialTransactions
|
||||
.Where(x => x.NR_KARTY_KONTROLNEJ != null)
|
||||
.Select(x => mapper.Map<MaterialTransactionDto>(x)).ToListAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user