includes/class-wpinv-item.php 1 location
|
@@ 372-374 (lines=3) @@
|
| 369 |
|
|
| 370 |
|
if ( ! empty( $fees ) && ! empty( $type ) && 'all' !== $type ) { |
| 371 |
|
foreach( $fees as $key => $fee ) { |
| 372 |
|
if( ! empty( $fee['type'] ) && $type != $fee['type'] ) { |
| 373 |
|
unset( $fees[ $key ] ); |
| 374 |
|
} |
| 375 |
|
} |
| 376 |
|
} |
| 377 |
|
|
includes/class-wpinv-invoice.php 1 location
|
@@ 1424-1426 (lines=3) @@
|
| 1421 |
|
|
| 1422 |
|
if ( ! empty( $this->fees ) && is_array( $this->fees ) ) { |
| 1423 |
|
foreach ( $this->fees as $fee ) { |
| 1424 |
|
if( 'all' != $type && ! empty( $fee['type'] ) && $type != $fee['type'] ) { |
| 1425 |
|
continue; |
| 1426 |
|
} |
| 1427 |
|
|
| 1428 |
|
$fee['label'] = stripslashes( $fee['label'] ); |
| 1429 |
|
$fee['amount_display'] = wpinv_price( $fee['amount'], $this->get_currency() ); |