Changeset 2855067
- Timestamp:
- 01/26/2023 10:22:08 AM (3 years ago)
- Location:
- moloni-es/trunk
- Files:
-
- 5 edited
-
README.md (modified) (3 diffs)
-
moloni_es.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/Controllers/SyncProducts.php (modified) (1 diff)
-
src/Hooks/OrderView.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
moloni-es/trunk/README.md
r2845423 r2855067 6 6  7 7  8 8  9 9 10 10  … … 15 15 **Requires PHP:** 7.2 16 16 **Tested up to:** 6.1.1 17 **WC tested up to** 7. 2.218 **Stable tag:** 1.0.3 817 **WC tested up to** 7.3.0 18 **Stable tag:** 1.0.39 19 19 **License:** GPLv2 or later 20 20 **License URI:** [https://www.gnu.org/licenses/gpl-2.0.html](https://www.gnu.org/licenses/gpl-2.0.html) … … 71 71 72 72 ## Changelog 73 74 ### 1.0.39 75 * FIX: Fixed error on product edit in older versions of WooCommerce 76 * Tested up to version 7.3.0 of WooCommerce 77 73 78 ### 1.0.38 74 79 * FIX: Small fixes and improvements -
moloni-es/trunk/moloni_es.php
r2845423 r2855067 4 4 * Plugin Name: Moloni España 5 5 * Description: Simple invoicing integration with Moloni ES 6 * Version: 1.0.3 86 * Version: 1.0.39 7 7 * Tested up to: 6.1.1 8 8 * WC tested up to: 7.2.2 -
moloni-es/trunk/readme.txt
r2845423 r2855067 3 3 Contributors: Moloni 4 4 Tags: Invoicing, Orders 5 Stable tag: 1.0.3 85 Stable tag: 1.0.39 6 6 Tested up to: 6.1.1 7 WC tested up to: 7. 2.27 WC tested up to: 7.3.0 8 8 9 9 Requires PHP: 5.6 … … 68 68 69 69 == Changelog == 70 = 1.0.39 = 71 * FIX: Fixed error on product edit in older versions of WooCommerce 72 * Tested up to version 7.3.0 of WooCommerce 73 70 74 = 1.0.38 = 71 75 * FIX: Small fixes and improvements -
moloni-es/trunk/src/Controllers/SyncProducts.php
r2845423 r2855067 67 67 Log::write(sprintf(__('Product with reference %1$s was updated from %2$s to %3$s','moloni_es'),$product['reference'],$currentStock,$newStock)); 68 68 $this->updated[$product['reference']] = sprintf(__('Product with reference %1$s was updated from %2$s to %3$s','moloni_es'),$product['reference'],$currentStock,$newStock); 69 wc_update_product_stock($wcProduct Id, $newStock);69 wc_update_product_stock($wcProduct, $newStock); 70 70 } 71 71 } else { -
moloni-es/trunk/src/Hooks/OrderView.php
r2845423 r2855067 5 5 use WP_Post; 6 6 use WC_Order; 7 use Exception; 7 8 use MoloniES\Start; 8 9 use MoloniES\Plugin; … … 36 37 public function moloni_add_meta_box() 37 38 { 38 $screen = wc_get_container()->get(CustomOrdersTableController::class)->custom_orders_table_usage_is_enabled() 39 ? wc_get_page_screen_id('shop-order') 40 : 'shop_order'; 39 $screen = 'shop_order'; 40 41 try { 42 if (class_exists(CustomOrdersTableController::class) && wc_get_container()->get(CustomOrdersTableController::class)->custom_orders_table_usage_is_enabled()) { 43 $screen = wc_get_page_screen_id('shop-order'); 44 } 45 } catch (Exception $ex) {} 41 46 42 47 add_meta_box('moloni_add_meta_box', 'Moloni', [$this, 'showMoloniView'], $screen, 'side', 'core');
Note: See TracChangeset
for help on using the changeset viewer.