Skip to content

Commit 477341b

Browse files
authored
Merge pull request #57 from jdaehne/patch-4
Fix creating EstimateItems with unitPrice equal to 0 (zero)
2 parents 6d21c03 + 4a41f87 commit 477341b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Estimate/EstimateItemEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function getXmlData(): array
8484
{
8585
$xmlData = [];
8686
foreach (self::XML_FIELD_MAPPING as $key => $value) {
87-
if ($this->$key) {
87+
if ($this->$key || ($key === 'unitPrice' && $this->$key === 0)) {
8888
$xmlData[$value] = $this->$key;
8989
}
9090
}

0 commit comments

Comments
 (0)