Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

feat: Add new currency (#829)

Mars288ad456564c
diff --git a/endpoints/admin/adduser.php b/endpoints/admin/adduser.php
index 8869493..1692590 100644
--- a/endpoints/admin/adduser.php
+++ b/endpoints/admin/adduser.php
@@ -50,6 +50,7 @@ $currencies = [
['id' => 31, 'name' => 'Thai Baht', 'symbol' => '฿', 'code' => 'THB'],
['id' => 32, 'name' => 'South African Rand', 'symbol' => 'R', 'code' => 'ZAR'],
['id' => 33, 'name' => 'Ukrainian Hryvnia', 'symbol' => '₴', 'code' => 'UAH'],
+ ['id' => 34, 'name' => 'New Taiwan Dollar', 'symbol' => 'NT$', 'code' => 'NTD'],
];
$categories = [
diff --git a/endpoints/cronjobs/createdatabase.php b/endpoints/cronjobs/createdatabase.php
index 477960b..00dc61b 100644
--- a/endpoints/cronjobs/createdatabase.php
+++ b/endpoints/cronjobs/createdatabase.php
@@ -194,7 +194,8 @@ if (!file_exists($databaseFile)) {
('Singapore Dollar', 'S$', 'SGD', 1),
('Thai Baht', '฿', 'THB', 1),
('South African Rand', 'R', 'ZAR', 1),
- ('Ukrainian Hryvnia', '₴', 'UAH', 1)");
+ ('Ukrainian Hryvnia', '₴', 'UAH', 1),
+ ('New Taiwan Dollar', 'NT$', 'NTD', 1)");
$db->exec("INSERT INTO payment_methods (id, name, icon) VALUES
(1, 'PayPal', 'paypal.png'),
diff --git a/registration.php b/registration.php
index 2c4f9aa..f5e645b 100644
--- a/registration.php
+++ b/registration.php
@@ -96,6 +96,7 @@ $currencies = [
['id' => 31, 'name' => 'Thai Baht', 'symbol' => '฿', 'code' => 'THB'],
['id' => 32, 'name' => 'South African Rand', 'symbol' => 'R', 'code' => 'ZAR'],
['id' => 33, 'name' => 'Ukrainian Hryvnia', 'symbol' => '₴', 'code' => 'UAH'],
+ ['id' => 34, 'name' => 'New Taiwan Dollar', 'symbol' => 'NT$', 'code' => 'NTD'],
];
$categories = [