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