Files
database/migrations/000.241.sql
T

26 lines
1.8 KiB
SQL

-- P5-5929 Adjust delivery prices to account for VAT
-- Update DHL Express in countries with VAT for default currency
UPDATE "delivery-methods_prices" SET price = (7 / 1.16) WHERE method = 14 and territory = 'DE' and currency = 'EUR';
UPDATE "delivery-methods_prices" SET price = (7 / 1.20) WHERE method = 14 and territory = 'AT' and currency = 'EUR';
UPDATE "delivery-methods_prices" SET price = (7 / 1.20) WHERE method = 14 and territory = 'FR' and currency = 'EUR';
UPDATE "delivery-methods_prices" SET price = (7 / 1.20) WHERE method = 14 and territory = 'GB' and currency = 'GBP';
UPDATE "delivery-methods_prices" SET price = (7 / 1.21) WHERE method = 14 and territory = 'ES' and currency = 'EUR';
UPDATE "delivery-methods_prices" SET price = (7 / 1.21) WHERE method = 14 and territory = 'NL' and currency = 'EUR';
UPDATE "delivery-methods_prices" SET price = (7 / 1.23) WHERE method = 14 and territory = 'PL' and currency = 'EUR';
UPDATE "delivery-methods_prices" SET price = (7 / 1.24) WHERE method = 14 and territory = 'FI' and currency = 'EUR';
-- Remaining EU countries with 25% VAT (7/1.25 = 5.6)
UPDATE "delivery-methods_prices" SET price = 5.6 WHERE method = 14 and currency = 'EUR'
AND territory in ('BE','BG','CY','CZ','EE','EU','GR','HR','HU','IE','IT','LT','LU','LV','MT','PT','RO','SI','SK');
-- British resellers to various countries
UPDATE "delivery-methods_prices" SET price = (7 / 1.20) WHERE method = 14 and currency = 'GBP'
AND territory IN ('DE','PT','NL','PL','FR','ES');
-- A EURO reseller shipping to UK:
UPDATE "delivery-methods_prices" SET price = 5.6 WHERE method = 14 and territory = 'GB' and currency = 'EUR';
-- Update previously incorrect DHL Express price for Denmark (59/1.25 = 47.2)
UPDATE "delivery-methods_prices" SET price = 47.2 WHERE method = 14 and territory = 'DK' and currency = 'DKK';