init
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Esun\CustomerVat\Setup\Patch\Data;
|
||||
|
||||
use Magento\Framework\Setup\ModuleDataSetupInterface;
|
||||
use Magento\Framework\Setup\Patch\DataPatchInterface;
|
||||
|
||||
class FixTaxRatePostcodeFlags implements DataPatchInterface
|
||||
{
|
||||
public function __construct(private readonly ModuleDataSetupInterface $moduleDataSetup)
|
||||
{
|
||||
}
|
||||
|
||||
public function apply(): self
|
||||
{
|
||||
$connection = $this->moduleDataSetup->getConnection();
|
||||
$connection->update(
|
||||
$this->moduleDataSetup->getTable('tax_calculation_rate'),
|
||||
['zip_is_range' => null, 'zip_from' => null, 'zip_to' => null],
|
||||
['code LIKE ?' => 'ESUN-%']
|
||||
);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getDependencies(): array { return [ConfigureTaxRules::class]; }
|
||||
public function getAliases(): array { return []; }
|
||||
}
|
||||
Reference in New Issue
Block a user