Changeset 3447688
- Timestamp:
- 01/27/2026 09:44:06 AM (2 months ago)
- Location:
- wintouch-cloud
- Files:
-
- 9 edited
- 10 copied
-
tags/0.0.4 (copied) (copied from wintouch-cloud/trunk)
-
tags/0.0.4/README.md (copied) (copied from wintouch-cloud/trunk/README.md) (1 diff)
-
tags/0.0.4/assets/css/style.css (copied) (copied from wintouch-cloud/trunk/assets/css/style.css)
-
tags/0.0.4/readme.txt (copied) (copied from wintouch-cloud/trunk/readme.txt) (1 diff)
-
tags/0.0.4/src/Api.php (modified) (1 diff)
-
tags/0.0.4/src/Authentication.php (modified) (1 diff)
-
tags/0.0.4/src/Menu.php (copied) (copied from wintouch-cloud/trunk/src/Menu.php)
-
tags/0.0.4/src/Order.php (copied) (copied from wintouch-cloud/trunk/src/Order.php) (2 diffs)
-
tags/0.0.4/views/Account.php (copied) (copied from wintouch-cloud/trunk/views/Account.php)
-
tags/0.0.4/views/General.php (copied) (copied from wintouch-cloud/trunk/views/General.php)
-
tags/0.0.4/views/Settings.php (copied) (copied from wintouch-cloud/trunk/views/Settings.php) (1 diff)
-
tags/0.0.4/wintouch-cloud.php (copied) (copied from wintouch-cloud/trunk/wintouch-cloud.php) (1 diff)
-
trunk/README.md (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/src/Api.php (modified) (1 diff)
-
trunk/src/Authentication.php (modified) (1 diff)
-
trunk/src/Order.php (modified) (2 diffs)
-
trunk/views/Settings.php (modified) (1 diff)
-
trunk/wintouch-cloud.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wintouch-cloud/tags/0.0.4/README.md
r3447059 r3447688 8 8 **Requires at least:** 5.0 9 9 **Tested up to:** 6.9 10 **Stable tag:** 0.0. 310 **Stable tag:** 0.0.4 11 11 **Requires PHP:** 7.2 12 12 **License:** GPLv2 or later -
wintouch-cloud/tags/0.0.4/readme.txt
r3447059 r3447688 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 0.0. 36 Stable tag: 0.0.4 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later -
wintouch-cloud/tags/0.0.4/src/Api.php
r3443376 r3447688 179 179 if ($parsed['errors'][0]['code'] == '12004') { 180 180 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.');183 181 } else { 184 182 throw new ApiException(esc_html($parsed['errors'][0]['message'])); -
wintouch-cloud/tags/0.0.4/src/Authentication.php
r3443376 r3447688 36 36 delete_option('wintouch_enterpriseid'); 37 37 delete_option('wintouch_apikey'); 38 delete_option('wintouch_lastsync'); 38 39 } 39 40 -
wintouch-cloud/tags/0.0.4/src/Order.php
r3447059 r3447688 30 30 if ($send_with_payload) { 31 31 $data['OrderPayload'] = [ 32 'Notes' => $order->get_customer_note(), 32 33 'TotalPrice' => $order->get_total(), 33 34 'TotalTax' => $order->get_total_tax(), 34 35 'TotalDiscount' => $order->get_total_discount(), 35 'TotalShipping' => $order->get_ total_shipping()36 'TotalShipping' => $order->get_shipping_total() + $order->get_shipping_tax() 36 37 ]; 37 38 … … 64 65 'Title' => $product->get_name(), 65 66 'SKU' => $product->get_sku(), 66 'Price' => $ product->get_price(),67 'Price' => $item->get_subtotal() + $item->get_subtotal_tax() / $item->get_quantity(), 67 68 'Quantity' => $item->get_quantity(), 68 69 'TaxRate' => round(($item->get_subtotal_tax() / $item->get_subtotal()) * 100) -
wintouch-cloud/tags/0.0.4/views/Settings.php
r3447059 r3447688 364 364 $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'" selected>'.esc_html($wintouch_serie['Serie']['Name']).'</option>'; 365 365 } else { 366 $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'">'.esc s_html($wintouch_serie['Serie']['Name']).'</option>';366 $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'">'.esc_html($wintouch_serie['Serie']['Name']).'</option>'; 367 367 } 368 368 } -
wintouch-cloud/tags/0.0.4/wintouch-cloud.php
r3447059 r3447688 3 3 * Plugin Name: WINTOUCH Cloud 4 4 * Description: Uma ferramenta de faturação para o seu negócio. 5 * Version: 0.0. 35 * Version: 0.0.4 6 6 * Author: WINTOUCH 7 7 * Author URI: https://wintouchcloud.com -
wintouch-cloud/trunk/README.md
r3447059 r3447688 8 8 **Requires at least:** 5.0 9 9 **Tested up to:** 6.9 10 **Stable tag:** 0.0. 310 **Stable tag:** 0.0.4 11 11 **Requires PHP:** 7.2 12 12 **License:** GPLv2 or later -
wintouch-cloud/trunk/readme.txt
r3447059 r3447688 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 0.0. 36 Stable tag: 0.0.4 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later -
wintouch-cloud/trunk/src/Api.php
r3443376 r3447688 179 179 if ($parsed['errors'][0]['code'] == '12004') { 180 180 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.');183 181 } else { 184 182 throw new ApiException(esc_html($parsed['errors'][0]['message'])); -
wintouch-cloud/trunk/src/Authentication.php
r3443376 r3447688 36 36 delete_option('wintouch_enterpriseid'); 37 37 delete_option('wintouch_apikey'); 38 delete_option('wintouch_lastsync'); 38 39 } 39 40 -
wintouch-cloud/trunk/src/Order.php
r3447059 r3447688 30 30 if ($send_with_payload) { 31 31 $data['OrderPayload'] = [ 32 'Notes' => $order->get_customer_note(), 32 33 'TotalPrice' => $order->get_total(), 33 34 'TotalTax' => $order->get_total_tax(), 34 35 'TotalDiscount' => $order->get_total_discount(), 35 'TotalShipping' => $order->get_ total_shipping()36 'TotalShipping' => $order->get_shipping_total() + $order->get_shipping_tax() 36 37 ]; 37 38 … … 64 65 'Title' => $product->get_name(), 65 66 'SKU' => $product->get_sku(), 66 'Price' => $ product->get_price(),67 'Price' => $item->get_subtotal() + $item->get_subtotal_tax() / $item->get_quantity(), 67 68 'Quantity' => $item->get_quantity(), 68 69 'TaxRate' => round(($item->get_subtotal_tax() / $item->get_subtotal()) * 100) -
wintouch-cloud/trunk/views/Settings.php
r3447059 r3447688 364 364 $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'" selected>'.esc_html($wintouch_serie['Serie']['Name']).'</option>'; 365 365 } else { 366 $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'">'.esc s_html($wintouch_serie['Serie']['Name']).'</option>';366 $wintouch_stockEntrySerieOptions .= '<option value="'.esc_attr($wintouch_serie['ID']).'">'.esc_html($wintouch_serie['Serie']['Name']).'</option>'; 367 367 } 368 368 } -
wintouch-cloud/trunk/wintouch-cloud.php
r3447059 r3447688 3 3 * Plugin Name: WINTOUCH Cloud 4 4 * Description: Uma ferramenta de faturação para o seu negócio. 5 * Version: 0.0. 35 * Version: 0.0.4 6 6 * Author: WINTOUCH 7 7 * Author URI: https://wintouchcloud.com
Note: See TracChangeset
for help on using the changeset viewer.