Changeset 2802055
- Timestamp:
- 10/20/2022 05:23:26 PM (3 years ago)
- Location:
- wc-yabi/trunk
- Files:
-
- 3 edited
-
includes/ajax.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
wc-yabi.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wc-yabi/trunk/includes/ajax.php
r2644114 r2802055 82 82 } 83 83 /***********/ 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 /************/ 84 108 85 109 $dueDate = date( "Y-m-d" ); -
wc-yabi/trunk/readme.txt
r2797420 r2802055 100 100 = 1.6.1 = 101 101 * 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 9 9 * Plugin URI: https://mireunion.com/yabi 10 10 * Description: Create your electronic invoices of purchases made in woocommerce with Yabi 11 * Version: 1. 6.111 * Version: 1.7.0 12 12 * Author: Mex Avila 13 13 * Author URI: https://datakun.com/
Note: See TracChangeset
for help on using the changeset viewer.