Skip to content

Commit 91535c4

Browse files
authored
[FIX] Set type handling if rounding diff >0
1 parent c061a90 commit 91535c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/BuilderAbstract.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,9 @@ public function fixTotals($order)
231231
}
232232
if ( ! $amended) {
233233
unset($item);
234-
if($diff_with_tax<0){
235-
$item['type'] = 'discount';
234+
$item['type'] = 'discount';
235+
if ($diff_with_tax > 0) {
236+
$item['type'] = 'handling';
236237
}
237238
$item['reference'] = '';
238239
$item['name'] = 'ajuste por redondeos';

0 commit comments

Comments
 (0)