Changeset 2369311
- Timestamp:
- 08/26/2020 09:28:21 AM (6 years ago)
- Location:
- smartaccounts/trunk
- Files:
-
- 4 edited
-
SmartAccountsArticle.php (modified) (2 diffs)
-
SmartAccountsSalesInvoice.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
smartaccounts.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smartaccounts/trunk/SmartAccountsArticle.php
r2001667 r2369311 1 1 <?php 2 2 3 if ( !defined('ABSPATH')) {3 if (!defined('ABSPATH')) { 4 4 exit; 5 5 } // Exit if accessed directly … … 21 21 $articles = $this->api->sendRequest($body, $getApiUrl, "code=" . urlencode($row->code)); 22 22 $settings = json_decode(get_option("sa_settings")); 23 if ( !(array_key_exists("articles", $articles) && count($articles["articles"]) == 1)) {23 if (!(array_key_exists("articles", $articles) && count($articles["articles"]) == 1)) { 24 24 $body = new stdClass(); 25 25 $body->code = $row->code; 26 $body->description = $row->description;26 $body->description = preg_replace('/[\xF0-\xF7].../s', '_', $row->description); 27 27 $body->type = $row->code == $settings->defaultShipping ? "SERVICE" : "PRODUCT"; 28 28 $body->activeSales = true; -
smartaccounts/trunk/SmartAccountsSalesInvoice.php
r2275740 r2369311 129 129 $row->description = $code; 130 130 } 131 // Remove unsupported UTF-8 multibyte characters. 132 $row->description = preg_replace('/[\xF0-\xF7].../s', '_', $row->description); 131 133 132 134 $row->code = $code; -
smartaccounts/trunk/readme.txt
r2328274 r2369311 59 59 == Changelog == 60 60 61 = 3.2 = 62 Strip unsupported characters when creating invoices. 61 63 62 64 = 3.1 = -
smartaccounts/trunk/smartaccounts.php
r2328274 r2369311 4 4 * Plugin URI: https://github.com/smartman/woocommerce_smartaccounts 5 5 * Description: This plugin creates sales invoices in the smartaccounts.ee Online Accounting Software after Woocommerce order creation 6 * Version: 3. 16 * Version: 3.2 7 7 * Author: Margus Pala 8 8 * Author URI: https://marguspala.com … … 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 * Requires at least: 4.8.0 12 * Tested up to: 5. 4.212 * Tested up to: 5.5 13 13 */ 14 14
Note: See TracChangeset
for help on using the changeset viewer.