Skip to content

Commit

Permalink
[FIX] Set type handling if rounding diff >0
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm authored Oct 2, 2018
1 parent c061a90 commit 91535c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/BuilderAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ public function fixTotals($order)
}
if ( ! $amended) {
unset($item);
if($diff_with_tax<0){
$item['type'] = 'discount';
$item['type'] = 'discount';
if ($diff_with_tax > 0) {
$item['type'] = 'handling';
}
$item['reference'] = '';
$item['name'] = 'ajuste por redondeos';
Expand Down

0 comments on commit 91535c4

Please sign in to comment.