|
@@ 326-336 (lines=11) @@
|
| 323 |
|
|
| 324 |
|
// Checks if the current post type is 'item' |
| 325 |
|
if ( $typenow == 'wpi_item') { |
| 326 |
|
if ( $wpinv_euvat->allow_vat_rules() ) { |
| 327 |
|
echo wpinv_html_select( array( |
| 328 |
|
'options' => array_merge( array( '' => __( 'All VAT rules', 'invoicing' ) ), $wpinv_euvat->get_rules() ), |
| 329 |
|
'name' => 'vat_rule', |
| 330 |
|
'id' => 'vat_rule', |
| 331 |
|
'selected' => ( isset( $_GET['vat_rule'] ) ? $_GET['vat_rule'] : '' ), |
| 332 |
|
'show_option_all' => false, |
| 333 |
|
'show_option_none' => false, |
| 334 |
|
'class' => 'gdmbx2-text-medium', |
| 335 |
|
) ); |
| 336 |
|
} |
| 337 |
|
|
| 338 |
|
if ( $wpinv_euvat->allow_vat_classes() ) { |
| 339 |
|
echo wpinv_html_select( array( |
|
@@ 338-348 (lines=11) @@
|
| 335 |
|
) ); |
| 336 |
|
} |
| 337 |
|
|
| 338 |
|
if ( $wpinv_euvat->allow_vat_classes() ) { |
| 339 |
|
echo wpinv_html_select( array( |
| 340 |
|
'options' => array_merge( array( '' => __( 'All VAT classes', 'invoicing' ) ), $wpinv_euvat->get_all_classes() ), |
| 341 |
|
'name' => 'vat_class', |
| 342 |
|
'id' => 'vat_class', |
| 343 |
|
'selected' => ( isset( $_GET['vat_class'] ) ? $_GET['vat_class'] : '' ), |
| 344 |
|
'show_option_all' => false, |
| 345 |
|
'show_option_none' => false, |
| 346 |
|
'class' => 'gdmbx2-text-medium', |
| 347 |
|
) ); |
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
echo wpinv_html_select( array( |
| 351 |
|
'options' => array_merge( array( '' => __( 'All item types', 'invoicing' ) ), wpinv_get_item_types() ), |