Plugin Directory

Changeset 3447688


Ignore:
Timestamp:
01/27/2026 09:44:06 AM (2 months ago)
Author:
wntcloud
Message:

Bugs fix

Location:
wintouch-cloud
Files:
9 edited
10 copied

Legend:

Unmodified
Added
Removed
  • wintouch-cloud/tags/0.0.4/README.md

    r3447059 r3447688  
    88**Requires at least:** 5.0 
    99**Tested up to:** 6.9 
    10 **Stable tag:** 0.0.3 
     10**Stable tag:** 0.0.4 
    1111**Requires PHP:** 7.2 
    1212**License:** GPLv2 or later 
  • wintouch-cloud/tags/0.0.4/readme.txt

    r3447059 r3447688  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 0.0.3
     6Stable tag: 0.0.4
    77Requires PHP: 7.2
    88License: GPLv2 or later
  • wintouch-cloud/tags/0.0.4/src/Api.php

    r3443376 r3447688  
    179179        if ($parsed['errors'][0]['code'] == '12004') {
    180180            throw new ApiException('Existem configurações por definir!');
    181         } elseif ($parsed['errors'][0]['code'] == '12005') {
    182             throw new ApiException('Não foi possível criar o documento.');
    183181        } else {
    184182            throw new ApiException(esc_html($parsed['errors'][0]['message']));
  • wintouch-cloud/tags/0.0.4/src/Authentication.php

    r3443376 r3447688  
    3636            delete_option('wintouch_enterpriseid');
    3737            delete_option('wintouch_apikey');
     38            delete_option('wintouch_lastsync');
    3839        }
    3940
  • wintouch-cloud/tags/0.0.4/src/Order.php

    r3447059 r3447688  
    3030        if ($send_with_payload) {
    3131            $data['OrderPayload'] = [
     32                'Notes' => $order->get_customer_note(),
    3233                'TotalPrice' => $order->get_total(),
    3334                'TotalTax' => $order->get_total_tax(),
    3435                'TotalDiscount' => $order->get_total_discount(),
    35                 'TotalShipping' => $order->get_total_shipping()
     36                'TotalShipping' => $order->get_shipping_total() + $order->get_shipping_tax()
    3637            ];
    3738
     
    6465                    'Title' => $product->get_name(),
    6566                    'SKU' => $product->get_sku(),
    66                     'Price' => $product->get_price(),
     67                    'Price' => $item->get_subtotal() + $item->get_subtotal_tax() / $item->get_quantity(),
    6768                    'Quantity' => $item->get_quantity(),
    6869                    'TaxRate' => round(($item->get_subtotal_tax() / $item->get_subtotal()) * 100)
  • wintouch-cloud/tags/0.0.4/views/Settings.php

    r3447059 r3447688  
    364364                                $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'" selected>'.esc_html($wintouch_serie['Serie']['Name']).'</option>';
    365365                            } else {
    366                                 $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'">'.escs_html($wintouch_serie['Serie']['Name']).'</option>';
     366                                $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'">'.esc_html($wintouch_serie['Serie']['Name']).'</option>';
    367367                            }
    368368                        }
  • wintouch-cloud/tags/0.0.4/wintouch-cloud.php

    r3447059 r3447688  
    33 * Plugin Name: WINTOUCH Cloud
    44 * Description: Uma ferramenta de faturação para o seu negócio.
    5  * Version: 0.0.3
     5 * Version: 0.0.4
    66 * Author: WINTOUCH
    77 * Author URI: https://wintouchcloud.com
  • wintouch-cloud/trunk/README.md

    r3447059 r3447688  
    88**Requires at least:** 5.0 
    99**Tested up to:** 6.9 
    10 **Stable tag:** 0.0.3 
     10**Stable tag:** 0.0.4 
    1111**Requires PHP:** 7.2 
    1212**License:** GPLv2 or later 
  • wintouch-cloud/trunk/readme.txt

    r3447059 r3447688  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 0.0.3
     6Stable tag: 0.0.4
    77Requires PHP: 7.2
    88License: GPLv2 or later
  • wintouch-cloud/trunk/src/Api.php

    r3443376 r3447688  
    179179        if ($parsed['errors'][0]['code'] == '12004') {
    180180            throw new ApiException('Existem configurações por definir!');
    181         } elseif ($parsed['errors'][0]['code'] == '12005') {
    182             throw new ApiException('Não foi possível criar o documento.');
    183181        } else {
    184182            throw new ApiException(esc_html($parsed['errors'][0]['message']));
  • wintouch-cloud/trunk/src/Authentication.php

    r3443376 r3447688  
    3636            delete_option('wintouch_enterpriseid');
    3737            delete_option('wintouch_apikey');
     38            delete_option('wintouch_lastsync');
    3839        }
    3940
  • wintouch-cloud/trunk/src/Order.php

    r3447059 r3447688  
    3030        if ($send_with_payload) {
    3131            $data['OrderPayload'] = [
     32                'Notes' => $order->get_customer_note(),
    3233                'TotalPrice' => $order->get_total(),
    3334                'TotalTax' => $order->get_total_tax(),
    3435                'TotalDiscount' => $order->get_total_discount(),
    35                 'TotalShipping' => $order->get_total_shipping()
     36                'TotalShipping' => $order->get_shipping_total() + $order->get_shipping_tax()
    3637            ];
    3738
     
    6465                    'Title' => $product->get_name(),
    6566                    'SKU' => $product->get_sku(),
    66                     'Price' => $product->get_price(),
     67                    'Price' => $item->get_subtotal() + $item->get_subtotal_tax() / $item->get_quantity(),
    6768                    'Quantity' => $item->get_quantity(),
    6869                    'TaxRate' => round(($item->get_subtotal_tax() / $item->get_subtotal()) * 100)
  • wintouch-cloud/trunk/views/Settings.php

    r3447059 r3447688  
    364364                                $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'" selected>'.esc_html($wintouch_serie['Serie']['Name']).'</option>';
    365365                            } else {
    366                                 $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'">'.escs_html($wintouch_serie['Serie']['Name']).'</option>';
     366                                $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'">'.esc_html($wintouch_serie['Serie']['Name']).'</option>';
    367367                            }
    368368                        }
  • wintouch-cloud/trunk/wintouch-cloud.php

    r3447059 r3447688  
    33 * Plugin Name: WINTOUCH Cloud
    44 * Description: Uma ferramenta de faturação para o seu negócio.
    5  * Version: 0.0.3
     5 * Version: 0.0.4
    66 * Author: WINTOUCH
    77 * Author URI: https://wintouchcloud.com
Note: See TracChangeset for help on using the changeset viewer.