* Added Lot table and service
* Changed behaviour of scanning to scan first PartNumber, select specific record and then scan MeylePartNumber
This commit is contained in:
@@ -83,4 +83,11 @@ public class MaterialTransactionService(SytelineSaAppDbContext context, IMapper
|
||||
|
||||
return result.OrderByDescending(x => x.CreateDate);
|
||||
}
|
||||
|
||||
public async Task<MaterialTransactionDto?> GetByPartNumber(string partNumber)
|
||||
{
|
||||
return await context.MaterialTransactions
|
||||
.Where(x => x.NR_KARTY_KONTROLNEJ == partNumber)
|
||||
.Select(x => mapper.Map<MaterialTransactionDto>(x)).FirstOrDefaultAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user