Plugin Directory

Changeset 1457180


Ignore:
Timestamp:
07/19/2016 08:27:55 PM (10 years ago)
Author:
drumba
Message:

Release 1.4.2, see readme.txt for the changelog.

Location:
edd-fastbill
Files:
2 added
8 deleted
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • edd-fastbill/tags/1.4.2/edd-fastbill.php

    r1448802 r1457180  
    66Author: Markus Drubba
    77Author URI: http://markusdrubba.de
    8 Version: 1.4.1
     8Version: 1.4.2
    99Text Domain: edd-fastbill
    1010Domain Path: /languages
  • edd-fastbill/tags/1.4.2/includes/fastbill-functions.php

    r1448780 r1457180  
    2828    $user_info    = $payment_meta['user_info'];
    2929    $cart_items   = isset( $payment_meta['cart_details'] ) ? maybe_unserialize( $payment_meta['cart_details'] ) : false;
    30 
     30    $user_country = isset( $user_info['address']['country'] ) ? maybe_unserialize( $user_info['address']['country'] ) : false;
    3131
    3232    drubba_fastbill_addlog( 'START - Creating invoice for order #' . $payment_id );
     
    122122            $xml .= "<QUANTITY>" . $cart_item['quantity'] . "</QUANTITY>";
    123123            if ( edd_use_taxes() ) {
    124                 $tax_rate = edd_get_tax_rate() * 100;
     124                $tax_rate = edd_get_tax_rate( $user_country ) * 100;
    125125                $xml .= "<VAT_PERCENT>" . $tax_rate . "</VAT_PERCENT>";
    126126            }
  • edd-fastbill/tags/1.4.2/readme.txt

    r1448806 r1457180  
    55Requires at least: 4.5
    66Tested up to: 4.5.3
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.2
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    3434
    3535== Changelog ==
     36
     37= 2016-07-04 1.4.2 =
     38
     39* Fix: optimize usage of tax country when creating invoice
    3640
    3741= 2016-07-04 1.4.1 =
  • edd-fastbill/trunk/edd-fastbill.php

    r1448802 r1457180  
    66Author: Markus Drubba
    77Author URI: http://markusdrubba.de
    8 Version: 1.4.1
     8Version: 1.4.2
    99Text Domain: edd-fastbill
    1010Domain Path: /languages
  • edd-fastbill/trunk/includes/fastbill-functions.php

    r1448780 r1457180  
    2828    $user_info    = $payment_meta['user_info'];
    2929    $cart_items   = isset( $payment_meta['cart_details'] ) ? maybe_unserialize( $payment_meta['cart_details'] ) : false;
    30 
     30    $user_country = isset( $user_info['address']['country'] ) ? maybe_unserialize( $user_info['address']['country'] ) : false;
    3131
    3232    drubba_fastbill_addlog( 'START - Creating invoice for order #' . $payment_id );
     
    122122            $xml .= "<QUANTITY>" . $cart_item['quantity'] . "</QUANTITY>";
    123123            if ( edd_use_taxes() ) {
    124                 $tax_rate = edd_get_tax_rate() * 100;
     124                $tax_rate = edd_get_tax_rate( $user_country ) * 100;
    125125                $xml .= "<VAT_PERCENT>" . $tax_rate . "</VAT_PERCENT>";
    126126            }
  • edd-fastbill/trunk/readme.txt

    r1448806 r1457180  
    55Requires at least: 4.5
    66Tested up to: 4.5.3
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.2
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    3434
    3535== Changelog ==
     36
     37= 2016-07-04 1.4.2 =
     38
     39* Fix: optimize usage of tax country when creating invoice
    3640
    3741= 2016-07-04 1.4.1 =
Note: See TracChangeset for help on using the changeset viewer.