-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MM-8: Add logic for tax class dictionary synchronization (#45)
- Added support multi-page requests - Added support search request to Magento 2 - Fixed issue with incorrect page data on "taxClasses\search" endpoint - Added logic to support product tax class sync
- Loading branch information
1 parent
e2ebbb0
commit 854eab6
Showing
4 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/Marello/Bundle/TaxBundle/Migrations/Schema/v1_4/MarelloTaxBundle.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Marello\Bundle\TaxBundle\Migrations\Schema\v1_4; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
|
||
use Oro\Bundle\MigrationBundle\Migration\Migration; | ||
use Oro\Bundle\MigrationBundle\Migration\QueryBag; | ||
|
||
class MarelloTaxBundle implements Migration | ||
{ | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function up(Schema $schema, QueryBag $queries) | ||
{ | ||
/** Tables generation **/ | ||
$this->updateMarelloTaxCodeTable($schema); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
protected function updateMarelloTaxCodeTable(Schema $schema) | ||
{ | ||
$table = $schema->getTable('marello_tax_tax_code'); | ||
$table->changeColumn('code', ['length' => 255]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Marello\Bundle\TaxBundle\Model; | ||
|
||
class ExtendTaxCode | ||
{ | ||
/** | ||
* Constructor | ||
* | ||
* The real implementation of this method is auto generated. | ||
* | ||
* IMPORTANT: If the derived class has own constructor it must call parent constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
} | ||
} |