Skip to content

Commit

Permalink
Merge pull request #35 from teiling88/ntr/master/fix-unitPrice
Browse files Browse the repository at this point in the history
ntr - allow zero unit prices #33
  • Loading branch information
teiling88 authored Jan 5, 2021
2 parents 104c23e + e7882ff commit 52256bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Item/ItemEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function getXmlData(): array
{
$xmlData = [];
foreach (self::XML_FIELD_MAPPING as $key => $value) {
if ($this->$key) {
if ($this->$key || ($key ==='unitPrice' && $this->$key === 0)) {
$xmlData[$value] = $this->$key;
}
}
Expand Down

0 comments on commit 52256bf

Please sign in to comment.