Skip to content

Commit

Permalink
fix(customs): conform to minimum item value of api (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanveen authored Aug 10, 2023
1 parent ff42c6c commit 67141e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin/class-wcmp-export-consignments.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private function getValueOfItem(WC_Order_Item $item): int
$total = (int) $item['line_total'];
$tax = (int) $item['line_tax'];

return ($total + $tax) * 100;
return max(($total + $tax) * 100, 100);
}

/**
Expand Down

0 comments on commit 67141e8

Please sign in to comment.