Plugin Directory

Changeset 2802055


Ignore:
Timestamp:
10/20/2022 05:23:26 PM (3 years ago)
Author:
kakaroto84
Message:

1.7.0 The shipping price is now taken into account in the invoice

Location:
wc-yabi/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wc-yabi/trunk/includes/ajax.php

    r2644114 r2802055  
    8282        }       
    8383        /***********/
     84       
     85        /* Shipping */     
     86        $total_shipping = $order->get_shipping_total();
     87        if( 0 < $total_shipping )
     88        {
     89            $tax_shipping = $order->get_shipping_tax();
     90           
     91            $percent = round( $tax_shipping * 100 / $total_shipping );
     92           
     93            $adjust = round( $total_shipping + $tax_shipping );
     94           
     95            $theitem = array(
     96                'id'            => '101',
     97                'description'   => 'Transporte',
     98                'value'         => $total_shipping,
     99                'tax'           => $tax_shipping,
     100                'quantity'      => 1,
     101                'percent'       => $percent,
     102                'adjust'        => $adjust,
     103            );
     104           
     105            array_push( $products, $theitem );
     106        }       
     107        /************/
    84108       
    85109        $dueDate = date( "Y-m-d" );
  • wc-yabi/trunk/readme.txt

    r2797420 r2802055  
    100100= 1.6.1 =
    101101* Tested in last WP Version
     102= 1.7.0 =
     103* The shipping price is now taken into account in the invoice
  • wc-yabi/trunk/wc-yabi.php

    r2797420 r2802055  
    99 * Plugin URI:        https://mireunion.com/yabi
    1010 * Description:       Create your electronic invoices of purchases made in woocommerce with Yabi
    11  * Version:           1.6.1
     11 * Version:           1.7.0
    1212 * Author:            Mex Avila
    1313 * Author URI:        https://datakun.com/
Note: See TracChangeset for help on using the changeset viewer.