Changeset 2389903
- Timestamp:
- 09/28/2020 08:24:11 PM (5 years ago)
- Location:
- taxjar-simplified-taxes-for-woocommerce/trunk
- Files:
-
- 5 edited
-
CHANGELOG.md (modified) (1 diff)
-
includes/class-wc-taxjar-nexus.php (modified) (3 diffs)
-
includes/class-wc-taxjar-transaction-sync.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
taxjar-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
taxjar-simplified-taxes-for-woocommerce/trunk/CHANGELOG.md
r2374160 r2389903 1 # 3.2.3 (2020-09-28) 2 * Add filter to nexus check 3 * Decouple tax calculation and transaction sync settings 4 1 5 # 3.2.2 (2020-09-02) 2 6 * Fix international store address validation -
taxjar-simplified-taxes-for-woocommerce/trunk/includes/class-wc-taxjar-nexus.php
r2168437 r2389903 51 51 52 52 public function has_nexus_check( $country, $state = null ) { 53 $has_nexus = false; 53 54 $store_settings = $this->integration->get_store_settings(); 54 55 $from_country = $store_settings['country']; … … 58 59 59 60 if ( count( $nexus_areas ) == 0 ) { 60 returntrue;61 $has_nexus = true; 61 62 } 62 63 … … 72 73 if ( isset( $nexus->country_code ) && isset( $nexus->region_code ) && 'US' == $nexus->country_code ) { 73 74 if ( $country == $nexus->country_code && $state == $nexus->region_code ) { 74 returntrue;75 $has_nexus = true; 75 76 } 76 77 } elseif ( isset( $nexus->country_code ) ) { 77 78 if ( $country == $nexus->country_code ) { 78 returntrue;79 $has_nexus = true; 79 80 } 80 81 81 82 if ( 'GB' == $country && 'UK' == $nexus->country_code ) { 82 returntrue;83 $has_nexus = true; 83 84 } 84 85 85 86 if ( 'GR' == $country && 'EL' == $nexus->country_code ) { 86 returntrue;87 $has_nexus = true; 87 88 } 88 89 } 89 90 } 90 91 91 return false;92 return apply_filters( 'taxjar_nexus_check', $has_nexus, $country, $state, $nexus_areas ); 92 93 } 93 94 -
taxjar-simplified-taxes-for-woocommerce/trunk/includes/class-wc-taxjar-transaction-sync.php
r2235442 r2389903 30 30 */ 31 31 public function init() { 32 if ( apply_filters( 'taxjar_enabled', isset( $this->taxjar_integration->settings['enabled'] ) && 'yes' == $this->taxjar_integration->settings['enabled'] ) ) { 32 $sales_tax_enabled = apply_filters( 'taxjar_enabled', isset( $this->taxjar_integration->settings['enabled'] ) && 'yes' == $this->taxjar_integration->settings['enabled'] ); 33 $transaction_sync_enabled = isset( $this->taxjar_integration->settings['taxjar_download'] ) && 'yes' == $this->taxjar_integration->settings['taxjar_download']; 34 35 if ( $sales_tax_enabled || $transaction_sync_enabled ) { 33 36 add_action( 'init', array( __CLASS__, 'schedule_process_queue' ) ); 34 37 add_action( self::PROCESS_QUEUE_HOOK, array( $this, 'process_queue' ) ); 35 36 if ( isset( $this->taxjar_integration->settings['taxjar_download'] ) && 'yes' == $this->taxjar_integration->settings['taxjar_download'] ) { 37 add_action( 'woocommerce_new_order', array( __CLASS__, 'order_updated' ) );38 add_action( 'woocommerce_update_order', array( __CLASS__, 'order_updated' ) );39 40 add_action( 'woocommerce_order_refunded', array( __CLASS__, 'refund_created' ), 10, 2 ); 41 42 add_filter( 'woocommerce_order_actions', array( $this, 'add_order_meta_box_action' ) ); 43 add_action( 'woocommerce_order_action_taxjar_sync_action', array( $this, 'manual_order_sync' ) );44 45 add_action( 'wp_trash_post', array( $this, 'maybe_delete_transaction_from_taxjar' ), 9, 1 ); 46 add_action( 'before_delete_post', array( $this, 'maybe_delete_transaction_from_taxjar' ), 9, 1 );47 add_action( 'before_delete_post', array( $this, 'maybe_delete_refund_from_taxjar' ), 9, 1 );48 add_action( 'untrashed_post', array( $this, 'untrash_post' ), 11 );49 50 add_action( 'woocommerce_order_status_cancelled', array( $this, 'order_cancelled' ), 10, 2 ); 51 52 add_action( 'woocommerce_product_options_tax', array( $this, 'display_notice_after_product_options_tax' ), 5 ); 53 add_action( 'woocommerce_variation_options_tax', array( $this, 'display_notice_after_product_options_tax' ), 5 );54 }38 } 39 40 if ( $transaction_sync_enabled ) { 41 add_action( 'woocommerce_new_order', array( __CLASS__, 'order_updated' ) ); 42 add_action( 'woocommerce_update_order', array( __CLASS__, 'order_updated' ) ); 43 44 add_action( 'woocommerce_order_refunded', array( __CLASS__, 'refund_created' ), 10, 2 ); 45 46 add_filter( 'woocommerce_order_actions', array( $this, 'add_order_meta_box_action' ) ); 47 add_action( 'woocommerce_order_action_taxjar_sync_action', array( $this, 'manual_order_sync' ) ); 48 49 add_action( 'wp_trash_post', array( $this, 'maybe_delete_transaction_from_taxjar' ), 9, 1 ); 50 add_action( 'before_delete_post', array( $this, 'maybe_delete_transaction_from_taxjar' ), 9, 1 ); 51 add_action( 'before_delete_post', array( $this, 'maybe_delete_refund_from_taxjar' ), 9, 1 ); 52 add_action( 'untrashed_post', array( $this, 'untrash_post' ), 11 ); 53 54 add_action( 'woocommerce_order_status_cancelled', array( $this, 'order_cancelled' ), 10, 2 ); 55 56 add_action( 'woocommerce_product_options_tax', array( $this, 'display_notice_after_product_options_tax' ), 5 ); 57 add_action( 'woocommerce_variation_options_tax', array( $this, 'display_notice_after_product_options_tax' ), 5 ); 55 58 } 56 59 } -
taxjar-simplified-taxes-for-woocommerce/trunk/readme.txt
r2374160 r2389903 4 4 Requires at least: 4.2 5 5 Tested up to: 5.5.1 6 Stable tag: 3.2. 26 Stable tag: 3.2.3 7 7 License: GPLv2 or later 8 8 URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 WC requires at least: 3.2.0 10 WC tested up to: 4. 4.110 WC tested up to: 4.5.2 11 11 12 12 Trusted by more than 20,000 businesses, TaxJar’s award-winning solution makes it easy to automate sales tax reporting and filing, and determine economic nexus with a single click. … … 96 96 97 97 == Changelog == 98 99 = 3.2.3 (2020-09-28) 100 * Add filter to nexus check 101 * Decouple tax calculation and transaction sync settings 98 102 99 103 = 3.2.2 (2020-09-02) -
taxjar-simplified-taxes-for-woocommerce/trunk/taxjar-woocommerce.php
r2374160 r2389903 4 4 * Plugin URI: https://www.taxjar.com/woocommerce-sales-tax-plugin/ 5 5 * Description: Save hours every month by putting your sales tax on autopilot. Automated, multi-state sales tax calculation, collection, and filing. 6 * Version: 3.2. 26 * Version: 3.2.3 7 7 * Author: TaxJar 8 8 * Author URI: https://www.taxjar.com 9 9 * WC requires at least: 3.2.0 10 * WC tested up to: 4. 4.110 * WC tested up to: 4.5.2 11 11 * 12 12 * Copyright: © 2014-2019 TaxJar. TaxJar is a trademark of TPS Unlimited, Inc. … … 43 43 final class WC_Taxjar { 44 44 45 static $version = '3.2. 2';45 static $version = '3.2.3'; 46 46 public static $minimum_woocommerce_version = '3.2.0'; 47 47
Note: See TracChangeset
for help on using the changeset viewer.