From 5f77ccf1d0c5e579b5c9911dc04b2fbf41dd3915 Mon Sep 17 00:00:00 2001 From: Ludwik Kowalewski Date: Fri, 28 Aug 2026 10:07:07 +0200 Subject: [PATCH] feat(db): add PLN to supported currencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Deals sold to Polish public-sector and SMB customers are invoiced in złoty; without PLN on the list a deal amount cannot be recorded in its actual currency. The keyless rate feed (open.er-api.com) already quotes PLN, so no other change is needed. --- packages/db/src/currency.ts | 1 + packages/db/test/currency.spec.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/db/src/currency.ts b/packages/db/src/currency.ts index af53f60ff..695b7b7cd 100644 --- a/packages/db/src/currency.ts +++ b/packages/db/src/currency.ts @@ -17,6 +17,7 @@ const CURRENCY_LIST: readonly CurrencyMeta[] = [ { code: "CHF", name: "Swiss Franc", minorUnits: 2 }, { code: "HKD", name: "Hong Kong Dollar", minorUnits: 2 }, { code: "SGD", name: "Singapore Dollar", minorUnits: 2 }, + { code: "PLN", name: "Polish Złoty", minorUnits: 2 }, { code: "ZAR", name: "South African Rand", minorUnits: 2 }, ] as const; diff --git a/packages/db/test/currency.spec.ts b/packages/db/test/currency.spec.ts index de9043ab3..a325b01ef 100644 --- a/packages/db/test/currency.spec.ts +++ b/packages/db/test/currency.spec.ts @@ -74,6 +74,7 @@ describe("normalizeCurrency and isCurrencyCode", () => { "CHF", "HKD", "SGD", + "PLN", "ZAR", ]); });