This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -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 []; }
}