Plugin Directory

Changeset 3105158

Timestamp:
06/20/2024 01:53:32 PM (3 weeks ago)
Author:
bastho
Message:

Merge branch 'v1.6.4' into 'master'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • accounting-for-woocommerce/trunk/inc/export.php

    r3104459 r3105158  
    109109        $gateways_libs = get_option('woocommerce_accounting_gateways_libs');
    110110        $lib_prefix = get_option ('woocommerce_accounting_lib_prefix');
     111
     112
    111113    }
    112114
    113115    foreach ($orders as $wcOrder)
    114116    {
     117
     118
     119
     120
    115121        $order = (object) array();
    116122        $order->WCOrder = $wcOrder;
     
    638644                $wc_order = wc_get_order($order->ID);
    639645                $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'];
    644649                }
    645650                if (round($order->income_prodht, $rounding_precision) > 0) {
Note: See TracChangeset for help on using the changeset viewer.