Skip to content

Commit 6d21c03

Browse files
authored
Merge pull request #56 from jdaehne/patch-3
Fix creating EstimateItems with unitPrice equal to 0 (zero)
2 parents 822e083 + f6a5ea2 commit 6d21c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Estimate/EstimateItemValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function checkDescription(EstimateItemEntity $entity)
4141

4242
public function checkUnitPrice(EstimateItemEntity $entity)
4343
{
44-
if (!$entity->unitPrice) {
44+
if (!$entity->unitPrice && $entity->unitPrice !== 0) {
4545
throw new MissingPropertyException($entity->articleNumber . ': The property unitPrice is not valid!');
4646
}
4747
}

0 commit comments

Comments
 (0)