P5-5929 Adjust delivery prices to account for VAT (#124)

This commit is contained in:
fredrikphotowall
2020-10-06 13:20:41 +02:00
committed by GitHub
parent ae0fa9c4ec
commit 9d7acd8c09
+25
View File
@@ -0,0 +1,25 @@
-- 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';