-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
158 additions
and
53 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
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
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
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
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
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
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
51 changes: 51 additions & 0 deletions
51
app/code/community/Ess/M2ePro/sql/Update/y22_m03/SetPrecisionInVatRateColumns.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,51 @@ | ||
<?php | ||
|
||
// @codingStandardsIgnoreFile | ||
|
||
class Ess_M2ePro_Sql_Update_y22_m03_SetPrecisionInVatRateColumns extends | ||
Ess_M2ePro_Model_Upgrade_Feature_AbstractFeature | ||
{ | ||
//######################################## | ||
|
||
public function execute() | ||
{ | ||
$this->_installer->getTableModifier('ebay_template_selling_format') | ||
->changeColumn( | ||
'vat_percent', | ||
'decimal(10,2) unsigned not null', | ||
'0', | ||
null, | ||
false | ||
) | ||
->commit(); | ||
|
||
$this->_installer->getTableModifier('amazon_template_selling_format') | ||
->changeColumn( | ||
'regular_price_vat_percent', | ||
'decimal(10,2) unsigned', | ||
null, | ||
null, | ||
false | ||
) | ||
->changeColumn( | ||
'business_price_vat_percent', | ||
'decimal(10,2) unsigned', | ||
null, | ||
null, | ||
false | ||
) | ||
->commit(); | ||
|
||
$this->_installer->getTableModifier('walmart_template_selling_format') | ||
->changeColumn( | ||
'price_vat_percent', | ||
'decimal(10,2) unsigned', | ||
null, | ||
null, | ||
false | ||
) | ||
->commit(); | ||
} | ||
|
||
//######################################## | ||
} |
21 changes: 21 additions & 0 deletions
21
app/code/community/Ess/M2ePro/sql/Upgrade/v6_21_0__v6_21_1/Config.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,21 @@ | ||
<?php | ||
|
||
/* | ||
* @author M2E Pro Developers Team | ||
* @copyright M2E LTD | ||
* @license Commercial use is forbidden | ||
*/ | ||
|
||
class Ess_M2ePro_Sql_Upgrade_v6_21_0__v6_21_1_Config extends Ess_M2ePro_Model_Upgrade_Feature_AbstractConfig | ||
{ | ||
//######################################## | ||
|
||
public function getFeaturesList() | ||
{ | ||
return array( | ||
'@y22_m03/SetPrecisionInVatRateColumns' | ||
); | ||
} | ||
|
||
//######################################## | ||
} |
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