Added translations for PartLot Validation errors.

This commit is contained in:
Jan Böhmer 2020-06-13 22:29:32 +02:00
parent 50cca40f77
commit 92cc73774c
2 changed files with 20 additions and 2 deletions

View file

@ -92,8 +92,8 @@ class ValidPartLotValidator extends ConstraintValidator
//Amount increasment is not allowed
if ($db_lot && $value->getAmount() > $db_lot['amount']) {
$this->context->buildViolation('validator.part_lot.location_full.no_increasment')
->setParameter('{{ old_amount }}', $db_lot['amount'])
$this->context->buildViolation('validator.part_lot.location_full.no_increase')
->setParameter('{{ old_amount }}', (string) $db_lot['amount'])
->atPath('amount')->addViolation();
}