Support » Plugin: WooCommerce » fee with VAT and without VAT on the invoice

  • Resolved allsmart

    (@allsmart)


    fee with VAT and without VAT on the invoice
    Please advise I have a problem in the invoice, my cash on delivery is not broken down and can the cash on delivery with VAT be advised by anyone?

     // fee
                            $order_fee = '0.00';
                            $fee_lines = $order_data['fee_lines'];
                            if( $fee_lines ) {
                                foreach( $fee_lines as $f ) {
                                    $t = $f['total'] + $f['total_tax'];
                                    $order_fee = $order_fee + $t;
                                }
                            }
                            $order_fee = wc_format_decimal( $order_fee );
    
    

    <tbody>
    <tr>
    <td style='”.$product_table_body_style.”‘>”.__(‘Cena s DPH’, ‘pdf-invoices-and-packing-slips-for-woocommerce’).”</td>
    <td style='”.$product_table_body_style.”text-align: right;’>”.wc_price($cart_subtotal).”</td>
    </tr>
    <tr>
    <td style='”.$product_table_body_style.”‘>”.__(‘Dobírka’, ‘pdf-invoices-and-packing-slips-for-woocommerce’).”</td>
    <td style='”.$product_table_body_style.”text-align: right;’>”.wc_price($order_fee).”</td>
    </tr>
    <tr>
    <td style='”.$product_table_body_style.”‘>”.__(‘Dobírka DPH’, ‘pdf-invoices-and-packing-slips-for-woocommerce’).”</td>
    <td style='”.$product_table_body_style.”text-align: right;’>”.wc_price($order_fee).”</td>
    </tr>
    <tr>
    <td style='”.$product_table_body_style.”‘>”.__(‘Doprava’, ‘pdf-invoices-and-packing-slips-for-woocommerce’).”</td>
    <td style='”.$product_table_body_style.”text-align: right;’>”.wc_price($order_data[‘total_shipping’]).”</td>
    </tr>
    <tr>
    <td style='”.$product_table_body_style.”‘>”.__(‘Dopava DPH’, ‘pdf-invoices-and-packing-slips-for-woocommerce’).”</td>
    <td style='”.$product_table_body_style.”text-align: right;’>”.wc_price($order_data[‘shipping_tax’]).”</td>
    </tr>
    <tr>
    <td style='”.$product_table_body_style.”‘>”.__(‘Celkem včetně DPH’, ‘pdf-invoices-and-packing-slips-for-woocommerce’).”</td>
    <td style='”.$product_table_body_style.”text-align: right;’>”.wc_price($order_data[‘total’]).”</td>
    </tr>
    </tbody>`

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘fee with VAT and without VAT on the invoice’ is closed to new replies.