New currencies YEN and NZD (#383)

This commit is contained in:
Fredrik Ringqvist
2024-03-15 12:11:44 +01:00
committed by GitHub
parent c502b58e91
commit 2e710f0e24
+17
View File
@@ -0,0 +1,17 @@
INSERT INTO "i18n-currencies" (iso3char, symbol, fractional_parts, exchange_rate, locale) VALUES
('NZD', '$', 0, 0.16, 'en_NZ.UTF-8'),
('JPY', '¥', 0, 14.45, 'ja_JP.UTF-8');
INSERT INTO "product-currencies" (iso3char, exchange_rate) VALUES ('NZD', 0.16), ('JPY', 14.45);
UPDATE markets SET currency = 'NZD' WHERE name = 'NZ';
UPDATE markets SET currency = 'JPY' WHERE name = 'JP';
INSERT INTO "delivery-methods_prices" (territory, currency, option, option_value, price, method) VALUES
('NZ', 'NZD', '', '', 0, (select id from "delivery-methods" where name = 'samplesDelivery')),
('NZ', 'NZD', '', '', 0, (select id from "delivery-methods" where name = 'fedexStandardWorld')),
('NZ', 'NZD', '', '', 11, (select id from "delivery-methods" where name = 'fedexExpressWorld')),
('JP', 'JPY', '', '', 0, (select id from "delivery-methods" where name = 'samplesDelivery')),
('JP', 'JPY', '', '', 4600, (select id from "delivery-methods" where name = 'fedexStandardWorld')),
('JP', 'JPY', '', '', 5800, (select id from "delivery-methods" where name = 'fedexExpressWorld'));