includes/class-wpinv-item.php 1 location
|
@@ 431-433 (lines=3) @@
|
| 428 |
|
|
| 429 |
|
if ( ! empty( $fees ) && ! empty( $type ) && 'all' !== $type ) { |
| 430 |
|
foreach( $fees as $key => $fee ) { |
| 431 |
|
if( ! empty( $fee['type'] ) && $type != $fee['type'] ) { |
| 432 |
|
unset( $fees[ $key ] ); |
| 433 |
|
} |
| 434 |
|
} |
| 435 |
|
} |
| 436 |
|
|
includes/class-wpinv-invoice.php 1 location
|
@@ 1436-1438 (lines=3) @@
|
| 1433 |
|
|
| 1434 |
|
if ( ! empty( $this->fees ) && is_array( $this->fees ) ) { |
| 1435 |
|
foreach ( $this->fees as $fee ) { |
| 1436 |
|
if( 'all' != $type && ! empty( $fee['type'] ) && $type != $fee['type'] ) { |
| 1437 |
|
continue; |
| 1438 |
|
} |
| 1439 |
|
|
| 1440 |
|
$fee['label'] = stripslashes( $fee['label'] ); |
| 1441 |
|
$fee['amount_display'] = wpinv_price( $fee['amount'], $this->get_currency() ); |