Plugin Directory

Changeset 2419894


Ignore:
Timestamp:
11/17/2020 09:46:39 AM (5 years ago)
Author:
Easify
Message:

Version 4.23

Location:
easify-server-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • easify-server-woocommerce/trunk/easify.php

    r2349123 r2419894  
    55 * Plugin URI: http://www.easify.co.uk/wordpress/
    66 * Description: Connects Easify Business Management, EPOS (Electronic Point of Sale) and invoicing software to your WooCommerce enabled WordPress website. Allowing you to keep your online and offline shop's orders and stock control synchronised.
    7  * Version: 4.22
     7 * Version: 4.23
    88 * License: GPL2
    99 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1212 * Requires at least: 4.0
    1313 * Tested up to: 5.4
    14  * WC tested up to: 4.3
     14 * WC tested up to: 4.6
    1515 */
    1616
  • easify-server-woocommerce/trunk/includes/class-easify-wc-send-order-to-easify.php

    r2349123 r2419894  
    3131 *
    3232 * @class       Easify_WC_Send_Order_To_Easify
    33  * @version     4.22
     33 * @version     4.23
    3434 * @package     easify-woocommerce-connector
    3535 * @author      Easify
     
    126126        // that reflected in the Easify order.       
    127127        if ($this->easify_options->is_payment_method_enabled($this->woocommerce_order->payment_method)) {
    128             $this->easify_order_model->Paid = true;
     128            Easify_Logging::Log("Easify_WC_Send_Order_To_Easify.do_order() - payment method " .
     129                    $this->woocommerce_order->payment_method . " enabled, marking order as paid.");
     130           
     131            $this->easify_order_model->Paid = 'true'; // Set as string otherwise true in PHP becomes 1 and the WebAPI mapper in CloudAPI thinks it's an int
    129132            $this->easify_order_model->DatePaid = $this->get_formatted_date();
    130133        } else {
     
    133136            // Record payment method in internal notes to let Easify know how the
    134137            // customer intends to pay for the order...
    135             $this->easify_order_model->Paid = false;
     138            Easify_Logging::Log("Easify_WC_Send_Order_To_Easify.do_order() - payment method " .
     139                    $this->woocommerce_order->payment_method . " NOT enabled, NOT marking order as paid.");
     140           
     141            $this->easify_order_model->Paid = 'false';
    136142            $this->easify_order_model->DatePaid = NULL;
    137143            $this->easify_order_model->Notes = "Payment to follow - Payment method: " . $this->woocommerce_order->payment_method . ". ";
     
    139145
    140146        $this->easify_order_model->CustomerRef = "";
    141         $this->easify_order_model->Invoiced = true;
     147        $this->easify_order_model->Invoiced = 'true';
    142148        $this->easify_order_model->DateInvoiced = $this->get_formatted_date();
    143149        $this->easify_order_model->Comments = $this->easify_options->get_easify_order_comment() . " " . $this->woocommerce_order->order_no;
     
    150156        $this->easify_order_model->DueDate = $this->get_formatted_date();
    151157        $this->easify_order_model->DueTime = $this->get_formatted_date();
    152         $this->easify_order_model->Scheduled = false;
     158        $this->easify_order_model->Scheduled = 'false';
    153159        $this->easify_order_model->Duration = 0;
    154160        $this->easify_order_model->Priority = 0;
    155         $this->easify_order_model->Recurring = false;
     161        $this->easify_order_model->Recurring = 'false';
    156162        $this->easify_order_model->RecurTimePeriod = 0;
    157163        $this->easify_order_model->DueDate2 = $this->get_formatted_date();
     
    247253            $easify_order_detail->ExtOrderDetailsId = $woocommerce_product['product_id'];
    248254            $easify_order_detail->ExtOrderNo = $this->woocommerce_order->order_no;
    249             $easify_order_detail->AutoAllocateStock = true;
     255            $easify_order_detail->AutoAllocateStock = 'true';
    250256
    251257            // Add the order detail to the Easify order model
     
    277283            $easify_order_detail->ExtParentId = 0;
    278284            $easify_order_detail->ExtOrderNo = $this->woocommerce_order->order_no;
    279             $easify_order_detail->AutoAllocateStock = false;
     285            $easify_order_detail->AutoAllocateStock = 'false';
    280286
    281287            // Add the order detail to the Easify order model
     
    368374                $easify_order_detail->ExtOrderDetailsId = 0;
    369375                $easify_order_detail->ExtOrderNo = $this->woocommerce_order->order_no;
    370                 $easify_order_detail->AutoAllocateStock = true;
     376                $easify_order_detail->AutoAllocateStock = 'true';
    371377
    372378                // Add the order detail to the Easify order model
  • easify-server-woocommerce/trunk/readme.txt

    r2349123 r2419894  
    55Requires at least: 4.0
    66Tested up to: 5.4
    7 Stable tag: 4.22
     7Stable tag: 4.23
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 WC tested up to: 4.3
     10WC tested up to: 4.6
    1111
    1212Connects Easify V4.x Small Business Software to your WooCommerce online shop,
     
    101101
    102102== Changelog ==
     103= 4.23 =
     104* Fixed issue whereby orders sent to Easify were not being marked as paid under
     105certain conditions.
    103106= 4.22 =
    104107* Fixed issue with default payment method not being sent to Easify when an order
     
    172175
    173176== Upgrade Notice ==
    174 = 4.22 =
    175 * Fixed issue with default payment method not being sent to Easify when an order
    176 is placed with a non standard payment method.
     177= 4.23 =
     178* Fixed issue whereby orders sent to Easify were not being marked as paid under
     179certain conditions.
Note: See TracChangeset for help on using the changeset viewer.