taxes – Asking for tourist tax to be left cash in the accommodation

Travelled in several places in Italy, reservation made either with booking.com or airbnb and the hosts asked us to leave the tourist tax in the apartment before we check out. It’s small, usually 5-10 euros.

But to me this seems like tax evasion and first time I refused to do it and got a very negative review on airbnb. Say you are on a business trip, isn’t it a rule that you should get receipt for everything? how are you going to reimburse that tourist tax?

How should I deal with the situation fairly for both. I don’t want the host to feel cheated, but I also want my invoice so that I feel good that taxes are being paid and not being pocketed by the host?

php – Can’t reset tax query using ajax sorting plugin?

I have created an ajax sorting feature that filters a custom post type “Music” and its all separated by Genres and Tags.. the sorting works fine until.. I deselect all options. I’ve tried to add “all” as the default and added in the JS that if the genre is “all” to include all the posts. Every thing else works as desired but I need to be able to reset the tax query or include all.

Here is that javascript:

jQuery(document).ready(function($){  
        
    var bgenre = $(":checkbox(name=bgenre)");
    var btags = $(":checkbox(name=btags)");
    
    jQuery.merge( bgenre, btags ).on( "change", function() {
        
    var genre;
    var tags;       
    var genrearray = ();
        var tagsarray = ();
        
        
        $(":checkbox(name=bgenre):checked").each(function() { 
            genrearray.push($(this).val());
            
            //genre = genrearray.join();    
            genre = genrearray;         
        });        
        
        $(":checkbox(name=btags):checked").each(function() { 
            tagsarray.push($(this).val()); 
            tags = tagsarray.join();            
        });         
    //  var tags = tagsarray.join();
    
    if (genrearray.length < 1) {
        genre = 'all';
    }

        data = {
            'action': 'filterlist',
            'genre': genre,
            'tags': tags
            
        };
 
        $.ajax({
            url : ajaxurl,
            data : data,
            type : 'POST',
            beforeSend : function ( xhr ) {

                $('.bplaylist').html( 'Loading...' );
                $('.js-Genre').attr( 'disabled', 'disabled' );
                
            },
            success : function( data ) {
                if ( data ) {                                   
                    $('.bplaylist').html( data.posts );
 
                    $('.js-Genre').removeAttr('disabled');
                    $( '.js-Tags' ).removeAttr('disabled');
                    
                } else {
                    $('.bplaylist').html( 'No posts found.' );
                }
            }
        });
    })
    });

and here is the php

function ajax_filterlist_handler() {           
           //$tags = esc_attr( $_POST('tags') );
           $genre = $_POST('genre'); 
           $tags = $_POST('tags');             
        

        $args = array(
            'post_type' => 'download',
            'post_status' => 'publish',
            'posts_per_page' => -1,
            'orderby' => 'date',
            'order' => 'DESC',
            'tax_query' => array(),
            'relation' => IN
        );
            


        if ( isset( $_POST('genre')) && $_POST('genre') !== 'all'   ) {
        $args('tax_query')() = array(
            'taxonomy' => 'genre',
            'field' => 'slug',
            'terms' => $genre
         ); }

         if ( isset( $_POST('genre')) && $_POST('genre') === 'all'   ) {
         $args('tax_query')() = array(
            'taxonomy' => 'genre'         
                  
            );
       
         }
    if ( !isset( $_POST('genre')) ) {
         $args('tax_query')() = array( 
            );
       
         }
   
         
         if( isset( $_POST('tags') ) ) {
        $args('tax_query')() = array(
            'taxonomy' => 'download_tag',
            'field' => 'slug',
            'terms' => $tags
        );
    }
      

        $posts = 'No Posts Available';

        $the_query = new WP_Query( $args );
     
        if ( $the_query->have_posts() ) :
            ob_start();

            while ( $the_query->have_posts() ) : $the_query->the_post();
            get_template_part( '/custom/template-parts/trackitem' );
            endwhile;

            $posts = ob_get_clean();
        endif;

        $return = array(
            'posts' => $posts
        );

        wp_send_json($return);
    }
    add_action( 'wp_ajax_filterlist', 'ajax_filterlist_handler' );
    add_action( 'wp_ajax_nopriv_filterlist', 'ajax_filterlist_handler' );   

Sorry if the code is jumbled mess at this point. I was following a tutorial and after I got it working. I kinda went on my own to try to figure out the reset and/or all option.

How to get the total excluding tax of each tax class?

I want to display the amount excluding tax for each tax class, is there a variable ?

In my example :

  • The amount excluding tax for the 20% tax must be € 10.13
  • The amount excluding tax for the 5.5% tax must be € 24.11

Invoice

get all tax rates in Magento 2 store

I’m trying to get all tax rates I set up in my store my custom plugin, I’m using Magento 2.

I found that in db all tax rates are stored in tax_calculation_rate, but I didn’t find a method to get all data from this.

Thank you for any help

Edit tax class in Woocommerce admin order details

I am trying to make select box to change tax class at admin order detail in Woo. I made column, select box with tax classes, when the product is one, it works perfectly. But when i have more than 2 products it gets tax class what have the last of the list (you can see it in video). I would like to be able to set tax class for every item separately… Thanks for help

Here is video

My code in functions.php is like that

function tax_edit_col_h($order){
  ?>
  <th class="line_changetax">
    Změna daně
  </th>
  <?php
}
add_action( 'woocommerce_admin_order_item_headers', 'tax_edit_col_h' );


function tax_change($item_id, $item, $product) {
    if('line_item' === $item->get_type()){
    ?>
        <td class="line_changetax" style="width:20%">
            <select name="change_tax" id="change_tax_select" style="width:90%; display:inline-block">
                <?php
                $arraytax = WC_Tax::get_tax_class_slugs();
                    echo '<option value="'.$item->get_tax_class().'">'.$item->get_tax_class().'</option>';
                foreach($arraytax as $tax){
                    echo '<option value="'.$tax.'">'.$tax.'</option>';
                }
                ?>
            </select>
        </td>
    <?php
    }
}
add_action( 'woocommerce_admin_order_item_values', 'tax_change', 10, 3 );


function change_order_item_tax_class( $item ) {
    if (isset($_POST('change_tax')) ) {
        $item->set_tax_class($_POST('change_tax'));
    }
}
add_action( 'woocommerce_before_save_order_item', 'change_order_item_tax_class' ); 

Vertex tax calculations

I need to understand how magento handles vertex tax calculations.
I want to know how does magento send request to vertex and what are the parameters needed.

money – I plan on travelling to USA, I have question related to +TAX and +F/S when buying something online (particulary laptop)

So I plan buying a laptop from an online shop when I’m in USA and let’s say it costs 1200$ +TAX or I even saw +F/S , so please enlighten me about what are those taxes and how is it calculated? And even if I’m not able to go to USA is there any chance of some company shipping electronic products to Europe?

Magento2: Tax rates issue – Magento Stack Exchange

TAX ZONE AND RATES

I have set 0% for active union vat and 19% for noactive union vat
https://prnt.sc/ssiam3

TAX RULES:
here I add rule:
https://prnt.sc/ssibau

Now I create customer group:
Wholesaler Active Union VAT and here I assigned tax classes Active Union VAT 0%:
https://prnt.sc/ssibpr

Now I created new user and assign to this group with VAT 0%.

Now When I try place order still magento add tax 19%
https://prnt.sc/ssickm

Any solution?

tax – Is there an importable csv for New York State Taxes?

We have a small store and are currently migrating to Magento CE 2.3.5. We are based in New York and need to charge sales tax only for New York orders because we don’t meet nexus in any other state currently. Is there anyone that has a pre-formatted CSV file I can use to import tax rates for New York or must I format my own?

If formatting my own for import, should I do each zip code individually or use the “Range_from” “Range_to” columns on the Magento export sheet and what should go in for the “Code” column?

What is Trump hiding in his tax returns?

It’s widely believed to be far worse than that. 

In the early 90s, Trump had an enormous financial loss due to failed business ventures. At the time, Forbes estimated his loss at over $1 billion. Also at the time, there was a temporary loophole in federal tax law that resulted as an unforeseen effect from a recent change in federal tax law that allowed people to roll their business losses into their personal losses, claiming them on their personal income taxes with any remaining amount of loss after adjusted gross income reducing to zero then being rolled over as a loss for the next year, and so on.  

Because of when that $1 billion loss was and because of this short-lived accidental loophole that existed at the time, it’s believed that Trump rolled that more than $1 billion loss over to his individual tax return as personal loss and has been using it to reduce his adjusted gross income to zero every year since such that he hasn’t paid a single dime in income taxes in almost 30 years.

It’s not just that Trump is hiding that he’s not as rich as he claims but that he’s hiding that he’s claimed a loss for almost 30 years running and hasn’t paid any taxes at all, meaning you and I and most voters pay more taxes than Donald Trump.