We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 822e083 + f6a5ea2 commit 6d21c03Copy full SHA for 6d21c03
src/Estimate/EstimateItemValidator.php
@@ -41,7 +41,7 @@ public function checkDescription(EstimateItemEntity $entity)
41
42
public function checkUnitPrice(EstimateItemEntity $entity)
43
{
44
- if (!$entity->unitPrice) {
+ if (!$entity->unitPrice && $entity->unitPrice !== 0) {
45
throw new MissingPropertyException($entity->articleNumber . ': The property unitPrice is not valid!');
46
}
47
0 commit comments