diff --git a/Block/Adminhtml/System/Config/Fieldset/CountryInsuredAmount.php b/Block/Adminhtml/System/Config/Fieldset/CountryInsuredAmount.php index 0b84735..4a009b0 100755 --- a/Block/Adminhtml/System/Config/Fieldset/CountryInsuredAmount.php +++ b/Block/Adminhtml/System/Config/Fieldset/CountryInsuredAmount.php @@ -5,6 +5,12 @@ use Magento\Framework\View\Element\Template; Use Magento\Framework\View\Element\Template\Context; +/** + * Class CountryInsuredAmount + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus + * @package Improntus\PedidosYa\Block\Adminhtml\System\Config\Fieldset + */ class CountryInsuredAmount extends Template { /** @@ -32,5 +38,4 @@ public function __construct( public function getCountryInsuredAmount(){ return json_encode($this->helper::PEDIDOSYA_DEFAULT_VALUES_COUNTRY,JSON_NUMERIC_CHECK); } - } diff --git a/Block/Adminhtml/Waypoint/Edit/Container.php b/Block/Adminhtml/Waypoint/Edit/Container.php index 9d9b87d..c83334a 100755 --- a/Block/Adminhtml/Waypoint/Edit/Container.php +++ b/Block/Adminhtml/Waypoint/Edit/Container.php @@ -8,6 +8,8 @@ /** * Class Container + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Block\Adminhtml\Waypoint\Edit */ class Container extends \Magento\Backend\Block\Widget\Form\Container @@ -94,4 +96,4 @@ public function getDeleteUrl() { return $this->getUrl('pedidosya/waypoint/delete', [$this->_objectId => $this->getRequest()->getParam($this->_objectId)]); } -} \ No newline at end of file +} diff --git a/Block/Adminhtml/Waypoint/Edit/Form.php b/Block/Adminhtml/Waypoint/Edit/Form.php index 1c12515..36b3118 100755 --- a/Block/Adminhtml/Waypoint/Edit/Form.php +++ b/Block/Adminhtml/Waypoint/Edit/Form.php @@ -14,6 +14,8 @@ /** * Class Form + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Block\Adminhtml\Waypoint\Edit */ class Form extends Generic diff --git a/Block/Order/Info.php b/Block/Order/Info.php index a26dbe3..6280665 100755 --- a/Block/Order/Info.php +++ b/Block/Order/Info.php @@ -11,6 +11,8 @@ /** * Class Info + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Block\Order */ class Info extends \Magento\Sales\Block\Order\Info diff --git a/Controller/Adminhtml/Shipment/Cancel.php b/Controller/Adminhtml/Shipment/Cancel.php index de3f033..26b8915 100755 --- a/Controller/Adminhtml/Shipment/Cancel.php +++ b/Controller/Adminhtml/Shipment/Cancel.php @@ -18,6 +18,8 @@ /** * Class Cancel + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Controller\Adminhtml\Shipment */ class Cancel extends Action @@ -165,4 +167,4 @@ protected function _isAllowed() return $this->_authorization->isAllowed('Improntus_PedidosYa::shipment_cancel'); } -} \ No newline at end of file +} diff --git a/Controller/Adminhtml/Shipment/Create.php b/Controller/Adminhtml/Shipment/Create.php index 853791b..c06968a 100755 --- a/Controller/Adminhtml/Shipment/Create.php +++ b/Controller/Adminhtml/Shipment/Create.php @@ -17,6 +17,8 @@ /** * Class Create + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Controller\Adminhtml\Shipment */ class Create extends Action diff --git a/Controller/Adminhtml/Waypoint/Create.php b/Controller/Adminhtml/Waypoint/Create.php index 17ee0fd..a7822cc 100755 --- a/Controller/Adminhtml/Waypoint/Create.php +++ b/Controller/Adminhtml/Waypoint/Create.php @@ -8,6 +8,8 @@ /** * Class Create + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Controller\Adminhtml\Waypoint */ class Create extends Action @@ -46,4 +48,4 @@ protected function _isAllowed() return $this->_authorization->isAllowed('Improntus_PedidosYa::waypoint_create'); } -} \ No newline at end of file +} diff --git a/Controller/Adminhtml/Waypoint/Delete.php b/Controller/Adminhtml/Waypoint/Delete.php index 22eff01..d34c21a 100644 --- a/Controller/Adminhtml/Waypoint/Delete.php +++ b/Controller/Adminhtml/Waypoint/Delete.php @@ -11,6 +11,8 @@ /** * Class Delete + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Controller\Adminhtml\Waypoint */ class Delete extends Action diff --git a/Controller/Adminhtml/Waypoint/Edit.php b/Controller/Adminhtml/Waypoint/Edit.php index b676ebe..34d8de6 100755 --- a/Controller/Adminhtml/Waypoint/Edit.php +++ b/Controller/Adminhtml/Waypoint/Edit.php @@ -13,6 +13,8 @@ /** * Class Edit + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Controller\Adminhtml\Waypoint */ class Edit extends Action @@ -86,4 +88,4 @@ protected function _isAllowed() { return $this->_authorization->isAllowed('Improntus_PedidosYa::waypoint_edit'); } -} \ No newline at end of file +} diff --git a/Controller/Adminhtml/Waypoint/Save.php b/Controller/Adminhtml/Waypoint/Save.php index f16b714..4443914 100755 --- a/Controller/Adminhtml/Waypoint/Save.php +++ b/Controller/Adminhtml/Waypoint/Save.php @@ -8,6 +8,8 @@ /** * Class Save + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Controller\Adminhtml\Waypoint */ class Save extends \Magento\Backend\App\Action @@ -75,4 +77,4 @@ protected function _isAllowed() { return $this->_authorization->isAllowed('Improntus_PedidosYa::waypoint_save'); } -} \ No newline at end of file +} diff --git a/Helper/Data.php b/Helper/Data.php index 6827efe..0fd25a2 100755 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -23,6 +23,8 @@ /** * Class Data + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Helper */ class Data extends AbstractHelper diff --git a/Model/Carrier/PedidosYa.php b/Model/Carrier/PedidosYa.php index 48a82ba..a4b9916 100755 --- a/Model/Carrier/PedidosYa.php +++ b/Model/Carrier/PedidosYa.php @@ -30,6 +30,10 @@ /** * Class PedidosYa + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\Carrier */ class PedidosYa extends AbstractCarrierOnline implements CarrierInterface diff --git a/Model/Config/Source/CatalogProductOption.php b/Model/Config/Source/CatalogProductOption.php index 16aac2c..f7a3639 100755 --- a/Model/Config/Source/CatalogProductOption.php +++ b/Model/Config/Source/CatalogProductOption.php @@ -8,6 +8,8 @@ /** * Class CatalogProductOption + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\Config\Source */ class CatalogProductOption implements ArrayInterface diff --git a/Model/Config/Source/CategoryOption.php b/Model/Config/Source/CategoryOption.php index 7471372..298ae0f 100755 --- a/Model/Config/Source/CategoryOption.php +++ b/Model/Config/Source/CategoryOption.php @@ -7,6 +7,8 @@ /** * Class CategoryOption + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\Config\Source */ class CategoryOption implements ArrayInterface diff --git a/Model/Config/Source/CountryOption.php b/Model/Config/Source/CountryOption.php index ea0227e..23b04b0 100755 --- a/Model/Config/Source/CountryOption.php +++ b/Model/Config/Source/CountryOption.php @@ -6,6 +6,8 @@ /** * Class ModeOption + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\Config\Source */ class CountryOption implements ArrayInterface diff --git a/Model/Config/Source/ModeOption.php b/Model/Config/Source/ModeOption.php index ef6af10..9e9f286 100755 --- a/Model/Config/Source/ModeOption.php +++ b/Model/Config/Source/ModeOption.php @@ -6,6 +6,8 @@ /** * Class ModeOption + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\Config\Source */ class ModeOption implements ArrayInterface diff --git a/Model/Config/Source/StatusOrderOption.php b/Model/Config/Source/StatusOrderOption.php index 6b83a11..5a58f8c 100755 --- a/Model/Config/Source/StatusOrderOption.php +++ b/Model/Config/Source/StatusOrderOption.php @@ -7,6 +7,8 @@ /** * Class StatusOrderOption + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\Config\Source */ class StatusOrderOption implements ArrayInterface diff --git a/Model/Config/Source/TimeOption.php b/Model/Config/Source/TimeOption.php index 1b7792e..92b7eb9 100755 --- a/Model/Config/Source/TimeOption.php +++ b/Model/Config/Source/TimeOption.php @@ -6,6 +6,8 @@ /** * Class TimeOption + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\Config\Source */ class TimeOption implements ArrayInterface diff --git a/Model/CreateShipment.php b/Model/CreateShipment.php index e315df4..662ae9b 100755 --- a/Model/CreateShipment.php +++ b/Model/CreateShipment.php @@ -14,6 +14,8 @@ /** * Class CreateShipment + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model */ class CreateShipment diff --git a/Model/PedidosYa.php b/Model/PedidosYa.php index 7c934e7..a967e56 100755 --- a/Model/PedidosYa.php +++ b/Model/PedidosYa.php @@ -10,6 +10,8 @@ /** * Class PedidosYa + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model */ class PedidosYa extends AbstractModel @@ -50,4 +52,4 @@ protected function _construct() { $this->_init('Improntus\PedidosYa\Model\ResourceModel\PedidosYa'); } -} \ No newline at end of file +} diff --git a/Model/ResourceModel/PedidosYa.php b/Model/ResourceModel/PedidosYa.php index e9228e9..ad5880b 100755 --- a/Model/ResourceModel/PedidosYa.php +++ b/Model/ResourceModel/PedidosYa.php @@ -7,6 +7,8 @@ /** * Class PedidosYa + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\ResourceModel */ class PedidosYa extends AbstractDb @@ -26,4 +28,4 @@ public function _construct() { $this->_init('improntus_pedidosya','entity_id'); } -} \ No newline at end of file +} diff --git a/Model/ResourceModel/PedidosYa/Collection.php b/Model/ResourceModel/PedidosYa/Collection.php index 275d7e8..69e1ac6 100755 --- a/Model/ResourceModel/PedidosYa/Collection.php +++ b/Model/ResourceModel/PedidosYa/Collection.php @@ -12,6 +12,8 @@ /** * Class Collection + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\ResourceModel\PedidosYa */ class Collection extends AbstractCollection diff --git a/Model/ResourceModel/Token.php b/Model/ResourceModel/Token.php index 2d52026..88f3ac4 100755 --- a/Model/ResourceModel/Token.php +++ b/Model/ResourceModel/Token.php @@ -7,6 +7,8 @@ /** * Class Token + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\ResourceModel */ class Token extends AbstractDb @@ -26,4 +28,4 @@ public function _construct() { $this->_init('improntus_pedidosya_token','entity_id'); } -} \ No newline at end of file +} diff --git a/Model/ResourceModel/Token/Collection.php b/Model/ResourceModel/Token/Collection.php index 9cc366f..b0b69ac 100755 --- a/Model/ResourceModel/Token/Collection.php +++ b/Model/ResourceModel/Token/Collection.php @@ -12,6 +12,8 @@ /** * Class Collection + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\ResourceModel\Token */ class Collection extends AbstractCollection diff --git a/Model/ResourceModel/Waypoint.php b/Model/ResourceModel/Waypoint.php index 2adc83c..8fa8ece 100755 --- a/Model/ResourceModel/Waypoint.php +++ b/Model/ResourceModel/Waypoint.php @@ -7,6 +7,8 @@ /** * Class Waypoint + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\ResourceModel */ class Waypoint extends AbstractDb @@ -26,4 +28,4 @@ public function _construct() { $this->_init('improntus_pedidosya_waypoint','entity_id'); } -} \ No newline at end of file +} diff --git a/Model/ResourceModel/Waypoint/Collection.php b/Model/ResourceModel/Waypoint/Collection.php index 8415dda..0ebd01f 100755 --- a/Model/ResourceModel/Waypoint/Collection.php +++ b/Model/ResourceModel/Waypoint/Collection.php @@ -12,6 +12,8 @@ /** * Class Collection + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model\ResourceModel\Waypoint */ class Collection extends AbstractCollection diff --git a/Model/Token.php b/Model/Token.php index c5e96b3..06b1d32 100755 --- a/Model/Token.php +++ b/Model/Token.php @@ -10,6 +10,8 @@ /** * Class Token + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model */ class Token extends AbstractModel @@ -50,4 +52,4 @@ protected function _construct() { $this->_init('Improntus\PedidosYa\Model\ResourceModel\Token'); } -} \ No newline at end of file +} diff --git a/Model/Waypoint.php b/Model/Waypoint.php index dd06577..5649d65 100755 --- a/Model/Waypoint.php +++ b/Model/Waypoint.php @@ -10,6 +10,8 @@ /** * Class Waypoint + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model */ class Waypoint extends AbstractModel @@ -48,4 +50,4 @@ protected function _construct() { $this->_init('Improntus\PedidosYa\Model\ResourceModel\Waypoint'); } -} \ No newline at end of file +} diff --git a/Model/Webservice.php b/Model/Webservice.php index 3b66c45..6134f95 100755 --- a/Model/Webservice.php +++ b/Model/Webservice.php @@ -6,6 +6,8 @@ /** * Class Webservice + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Model */ class Webservice diff --git a/Observer/SalesOrderPlaceBefore.php b/Observer/SalesOrderPlaceBefore.php index 8c852ac..b4aa213 100755 --- a/Observer/SalesOrderPlaceBefore.php +++ b/Observer/SalesOrderPlaceBefore.php @@ -8,6 +8,8 @@ /** * Class SalesOrderPlaceBefore + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Observer */ class SalesOrderPlaceBefore implements ObserverInterface diff --git a/Observer/SalesOrderSaveAfter.php b/Observer/SalesOrderSaveAfter.php index 491a776..37bdfc2 100755 --- a/Observer/SalesOrderSaveAfter.php +++ b/Observer/SalesOrderSaveAfter.php @@ -8,6 +8,8 @@ /** * Class SalesOrderSaveAfter + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Observer */ class SalesOrderSaveAfter implements ObserverInterface diff --git a/Plugin/Widget/Context.php b/Plugin/Widget/Context.php index 5644477..de449b2 100755 --- a/Plugin/Widget/Context.php +++ b/Plugin/Widget/Context.php @@ -9,6 +9,8 @@ /** * Class Context + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Plugin\Widget */ class Context @@ -118,4 +120,4 @@ public function afterGetButtonList( } return $buttonList; } -} \ No newline at end of file +} diff --git a/Setup/InstallData.php b/Setup/InstallData.php index 376e682..d87e5a8 100644 --- a/Setup/InstallData.php +++ b/Setup/InstallData.php @@ -10,6 +10,8 @@ /** * Class InstallData + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Setup */ class InstallData implements InstallDataInterface @@ -58,4 +60,4 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $setup->endSetup(); } -} \ No newline at end of file +} diff --git a/Setup/InstallSchema.php b/Setup/InstallSchema.php index c53cbd5..8585c79 100755 --- a/Setup/InstallSchema.php +++ b/Setup/InstallSchema.php @@ -10,6 +10,8 @@ /** * Class InstallSchema + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Setup */ class InstallSchema implements InstallSchemaInterface @@ -300,4 +302,4 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con $installer->getConnection()->createTable($pedidosYaWaypoint); $installer->endSetup(); } -} \ No newline at end of file +} diff --git a/Setup/UpgradeSchema.php b/Setup/UpgradeSchema.php index 46d3ea3..a6906b0 100644 --- a/Setup/UpgradeSchema.php +++ b/Setup/UpgradeSchema.php @@ -2,13 +2,15 @@ namespace Improntus\PedidosYa\Setup; -use Magento\Framework\DB\Ddl\Table; +use Magento\Framework\DB\Adapter\AdapterInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\Setup\UpgradeSchemaInterface; /** * Class UpgradeSchema + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Setup */ class UpgradeSchema implements UpgradeSchemaInterface @@ -20,10 +22,14 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con { $installer = $setup; $installer->startSetup(); - $connection = $installer->getConnection(); if (version_compare($context->getVersion(), '1.0.17', '<=')) { - $connection->query("ALTER TABLE `improntus_pedidosya` ADD UNIQUE INDEX `improntus_pedidosya_order_id` (`order_id`);"); + $setup->getConnection()->addIndex( + $setup->getTable('improntus_pedidosya'), + 'improntus_pedidosya_order_id', + 'order_id', + AdapterInterface::INDEX_TYPE_UNIQUE + ); } $setup->endSetup(); diff --git a/Ui/Component/Listing/Column/Actions.php b/Ui/Component/Listing/Column/Actions.php index fd38b34..de3d55a 100755 --- a/Ui/Component/Listing/Column/Actions.php +++ b/Ui/Component/Listing/Column/Actions.php @@ -9,6 +9,8 @@ /** * Class Actions + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Ui\Component\Listing\Column */ class Actions extends Column diff --git a/Ui/Component/Listing/Column/Days.php b/Ui/Component/Listing/Column/Days.php index 7644a11..8a8910d 100644 --- a/Ui/Component/Listing/Column/Days.php +++ b/Ui/Component/Listing/Column/Days.php @@ -9,6 +9,8 @@ /** * Class Days + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Ui\Component\Listing\Column */ class Days extends Column diff --git a/Ui/DataProvider/Waypoint/Listing/Collection.php b/Ui/DataProvider/Waypoint/Listing/Collection.php index 80f29f1..6d323a5 100755 --- a/Ui/DataProvider/Waypoint/Listing/Collection.php +++ b/Ui/DataProvider/Waypoint/Listing/Collection.php @@ -6,6 +6,8 @@ /** * Class Collection + * @author Improntus - Ecommerce done right + * @copyright Copyright (c) 2022 Improntus * @package Improntus\PedidosYa\Ui\DataProvider\Waypoint\Listing */ class Collection extends SearchResult diff --git a/composer.json b/composer.json index 7b125b9..912cb92 100755 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "improntus/module-pedidosya-magento-2", "description": "Pedidos Ya module", "type": "magento2-module", - "version": "1.0.22", + "version": "1.0.23", "require": { }, "autoload": { diff --git a/etc/module.xml b/etc/module.xml index c7c1ad6..c2c1343 100755 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,6 +1,6 @@ - + diff --git a/view/adminhtml/templates/system/config/fieldset/CountryInsuredAmount.phtml b/view/adminhtml/templates/system/config/fieldset/CountryInsuredAmount.phtml index c633a9f..955c190 100755 --- a/view/adminhtml/templates/system/config/fieldset/CountryInsuredAmount.phtml +++ b/view/adminhtml/templates/system/config/fieldset/CountryInsuredAmount.phtml @@ -1,6 +1,6 @@ getCountryInsuredAmount(); /** * Get Maximum Insured by Country */ - let countryJson = ''; + let countryJson = ''; $("#carriers_pedidosya_country").on("change",function(){ /** * Get Selected Country