add multi-currency master CRUD (Phase 2)

- add currencyadapter.js: list (with pagination+keyword), detail, history, create, update (auto-log rate change to tbl_currency_log), delete (soft), convertAmount helper
- add controllers/currency.js and routes/currency.js, auto-mounted at /currency
- update dbproc.js: configurable port via HOSTPORT env variable

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Rizki
2026-03-23 20:52:29 +07:00
parent b2c866d793
commit 26d22355fa
4 changed files with 415 additions and 1 deletions

View File

@ -7,7 +7,8 @@ const dbcon = mysql.createConnection({
database : process.env.DBHOST,
acquireTimeout: 30000,
insecureAuth: true,
timezone: 'utc'
timezone: 'utc',
port : process.env.HOSTPORT ?? 3306
});
dbcon.connect(function(err) {