diff --git a/src/Validator/Constraints/ValidPartLotValidator.php b/src/Validator/Constraints/ValidPartLotValidator.php
index e6c27976..f89cf726 100644
--- a/src/Validator/Constraints/ValidPartLotValidator.php
+++ b/src/Validator/Constraints/ValidPartLotValidator.php
@@ -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();
}
diff --git a/translations/validators.en.xlf b/translations/validators.en.xlf
index 448fa5c7..bbcbee74 100644
--- a/translations/validators.en.xlf
+++ b/translations/validators.en.xlf
@@ -197,5 +197,23 @@
Can not add new parts to this location as it is marked as "Only Existing"
+
+
+ validator.part_lot.location_full.no_increase
+ Location is full. Amount can not be increased (new value must be smaller than {{ old_amount }}).
+
+
+
+
+ validator.part_lot.location_full
+ Location is full. Can not add new parts to it.
+
+
+
+
+ validator.part_lot.single_part
+ This location can only contain a single part and it is already full!
+
+