Changeset 3105158
- Timestamp:
- 06/20/2024 01:53:32 PM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
accounting-for-woocommerce/trunk/inc/export.php
r3104459 r3105158 109 109 $gateways_libs = get_option('woocommerce_accounting_gateways_libs'); 110 110 $lib_prefix = get_option ('woocommerce_accounting_lib_prefix'); 111 112 111 113 } 112 114 113 115 foreach ($orders as $wcOrder) 114 116 { 117 118 119 120 115 121 $order = (object) array(); 116 122 $order->WCOrder = $wcOrder; … … 638 644 $wc_order = wc_get_order($order->ID); 639 645 $order->countryid = $wc_order->get_billing_country(); 640 $order_country_acc = get_option('woocommerce_accounting_countries_acc'); 641 $country_account_prod = $order_country_acc[$order->countryid]['acc']; 642 if (empty($country_account_prod)) { 643 $country_account_prod = $gen_account_prod; 646 $country_account_prod = $gen_account_prod; 647 if (!empty($order_country_acc[$order->countryid]['acc'])) { 648 $country_account_prod = $order_country_acc[$order->countryid]['acc']; 644 649 } 645 650 if (round($order->income_prodht, $rounding_precision) > 0) {
Note: See TracChangeset
for help on using the changeset viewer.