Commit Graph

43 Commits

Author SHA1 Message Date
Afiq Hamzah 8fe42c1d9f Refactor tenant database configuration to use dynamic config values
- Replace hardcoded database names (online_arrahn, master_krk, kaunterpkb)
  with configurable values across the codebase
- Rename tennant_master.php to tennant_database.php for clearer naming
- Update config keys: 'database' → 'master_db', add 'kaunter_db'
- Update env variables: TENNANT_MASTER_DB and TENNANT_KAUNTER_DB
- Modify Helper.php to use dynamic database references in
  getOnlineArrahnConnection(), getActiveCawanganDbConnection(),
  and getInactiveCawanganDbConnection() methods
- Update database JOIN queries in CustomerController and MarhunController
  to use config values instead of hardcoded database names
- Simplify migration logic by removing redundant hardcoded database checks
- Update debug messages in CawanganDebugConnections to show actual
  configured database name
- Update bootstrap/app.php to load tennant_database config

This change improves multi-environment flexibility and eliminates
environment-specific hardcoded values, making the application more
configurable for different deployment scenarios (KRK, KGMK, etc).
2026-01-20 11:36:41 +08:00
Afiq Hamzah 0ac42331d4 Add krk changes to prod 2026-01-19 16:41:10 +08:00
aiman 1f27d90698 Tukar step pampasan v3 ke v2: 2025-09-14 16:03:49 +08:00
hayatie 5605d01065 db 2024-11-17 12:04:53 +08:00
Amirah e3747a5bbe Remove duplicate mysql37 2024-10-14 12:00:33 +08:00
Amirah b19a29bee6 Add mysql38 for branch putatan 2 2024-10-14 11:50:16 +08:00
Afiq Hamzah 85b9d64dea Fix viewing log page returning error 500 2024-07-03 09:58:55 +08:00
Afiq Hamzah 91c6041e08 Make api arrahnbid url configurable 2024-06-24 18:45:02 +08:00
Afiq Hamzah cbf6bd5f1f Fix multiple notifications send to PIC at one time
- fix by removing previous scheduled notifications job before updating the notification configurations
2024-06-11 08:41:12 +08:00
Afiq Hamzah 967fbf1da3 Add changes to report keseluruhan stokaudit
- Change header columns
- Change column positions
- Add config to exclude certain cawangan in report stok audit
2024-04-22 11:24:18 +08:00
Afiq Hamzah 681c86f31d Fix tennant config 2024-03-20 11:06:59 +08:00
Ainie Hayatie a98657a826 add tennant for master db 2024-02-26 09:26:53 +08:00
Amirah 95bd37da82 add config tennant_master erahn 2024-02-20 09:43:02 +08:00
Amirah 878129c4c7 fix database config 2024-01-30 14:09:18 +08:00
Ainie Hayatie 36cb48b261 panjar_uiupdate 2024-01-16 16:29:51 +08:00
Amir 1133c6a2d2 enable config database 2023-12-31 16:49:51 +08:00
Server 8579d5feea server staging 2023-12-17 11:40:57 +08:00
Hafifie PKB e768060ca9 add helpers in composer 2023-11-23 16:29:43 +08:00
Hafifie PKB 26730ced83 fix conflict, fix marhun harga, add faker in gadai and fix composer 2023-11-23 16:24:38 +08:00
Afiq Hamzah 8ee79c985c Add laravel/tinker 2023-11-19 10:03:14 +08:00
Afiq Hamzah 40a3178de9 Add new columns to komuditi_transaksi 2023-11-15 11:56:59 +08:00
Hafifie PKB d17507447d fix migration in config 2023-11-08 14:52:59 +08:00
Afiq 6881aaa2a8 fix 2022-03-01 22:24:42 +08:00
e.arrahn 261477762e server 2022-01-18 02:56:44 +08:00
e.arrahn fc6401dc09 server 2021-12-01 08:15:07 +08:00
afiq 1db358001b Blacklist 2021-08-20 04:23:48 +08:00
MUHD HAFIFIE 65931b6c77 fix skit2 2021-08-12 23:43:34 +08:00
e.arrahn 4712b6d2d2 server latest 2021-08-08 01:08:36 +08:00
MUHD HAFIFIE 8db8f17ed8 fix lejer am 2021-07-04 15:32:26 +08:00
MUHD HAFIFIE 50c4a5ffba config 2021-04-22 14:41:54 +08:00
MUHD HAFIFIE e4bb2b1fb6 fix last keuntungan_rebet 2021-04-22 14:36:57 +08:00
Afiq Zakwan Hamdan eda96aca11 merge 2021-04-20 14:11:23 +08:00
fariz aab122dc8a edit config/database.php 2021-04-19 10:02:31 +08:00
fariz c1ca79dce2 added to 33 branch db 2021-04-19 09:47:25 +08:00
fariz 51825fa8aa update Transaksi_Keuntungan Controller 2021-04-17 00:25:29 +08:00
MUHD HAFIFIE dacdbc222b database.php 2021-04-13 09:03:35 +08:00
Afiq Zakwan Hamdan c2fd40f4c7 connection to cawangan 2021-04-12 08:48:57 +08:00
MUHD HAFIFIE 73d7587ce4 fix skit2 2021-04-11 17:36:00 +08:00
Afiq da8e0bfa73 add cawangan 2021-01-18 15:52:07 +08:00
Afiq 27155b739c add new db 2021-01-11 17:59:46 +08:00
LAPTOP-DGCU80CH\user1 4f463412b0 add api 2020-11-08 15:59:21 +08:00
Zakwan Hamdan 94eb988dd5 add cawangan api 2020-10-22 11:25:26 +08:00
Zakwan Hamdan 5c7bbe3a19 initial commit 2020-10-19 10:28:31 +08:00