Perubahan yang dilakukan: - Menambahkan fungsi `calculatePeriodDates` di `helpers.php` untuk menghitung tanggal awal dan akhir berdasarkan periode. - Mendukung periode khusus seperti `202505`, dengan aturan tanggal mulai dari tanggal 9 hingga akhir bulan. - Menambahkan logging di `calculatePeriodDates` untuk memudahkan debugging saat proses penentuan tanggal. - Memperbaiki validasi di `PrintStatementRequest` dengan menyesuaikan tipe data dan aturan logika. - Merapikan aturan validasi pada `account_number` agar lebih konsisten dan mudah dibaca. - Menambahkan `helpers.php` ke properti `files` di `module.json` agar dapat diakses secara global. Tujuan perubahan: - Mendukung logika tanggal periode khusus dengan aturan tertentu. - Menyelaraskan validasi permintaan dengan standar internal yang lebih baik dan lebih stabil. Signed-off-by: Daeng Deni Mardaeni <ddeni05@gmail.com>
157 lines
4.9 KiB
JSON
157 lines
4.9 KiB
JSON
{
|
|
"name": "Webstatement",
|
|
"alias": "webstatement",
|
|
"database": "",
|
|
"description": "",
|
|
"keywords": [],
|
|
"priority": 0,
|
|
"providers": [
|
|
"Modules\\Webstatement\\Providers\\WebstatementServiceProvider"
|
|
],
|
|
"files": [
|
|
"app/Helpers/helpers.php"
|
|
],
|
|
"menu": {
|
|
"main": [
|
|
{
|
|
"title": "Create Periode",
|
|
"path": "periode-statements",
|
|
"icon": "ki-filled ki-calendar text-lg text-primary",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": [
|
|
"administrator"
|
|
]
|
|
},
|
|
{
|
|
"title": "Statement",
|
|
"path": "statements",
|
|
"icon": "ki-filled ki-printer text-lg text-primary",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": [
|
|
"administrator",
|
|
"customer_service"
|
|
]
|
|
},
|
|
{
|
|
"title": "Kartu ATM",
|
|
"path": "kartu-atm",
|
|
"icon": "ki-filled ki-credit-cart text-lg text-primary",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": [
|
|
"administrator"
|
|
]
|
|
},
|
|
{
|
|
"title": "Nasabah",
|
|
"path": "customer",
|
|
"icon": "ki-filled ki-people text-lg text-primary",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": []
|
|
},
|
|
{
|
|
"title": "Email Blast",
|
|
"path": "emailblast",
|
|
"icon": "ki-filled ki-sms text-lg text-primary",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": []
|
|
}
|
|
],
|
|
"laporan": [
|
|
{
|
|
"title": "Laporan Transaksi ATM",
|
|
"path": "atm-reports",
|
|
"icon": "ki-filled ki-printer text-lg text-primary",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": [
|
|
"administrator"
|
|
]
|
|
}
|
|
],
|
|
"master": [
|
|
{
|
|
"title": "Basic Data",
|
|
"path": "basicdata",
|
|
"icon": "ki-filled ki-category text-lg text-primary",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": [
|
|
"administrator",
|
|
"admin"
|
|
],
|
|
"sub": [
|
|
{
|
|
"title": "Jenis Kartu",
|
|
"path": "jenis-kartu",
|
|
"icon": "ki-filled ki-category text-lg",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": [
|
|
"administrator"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Pesan Sponsor",
|
|
"path": "migrasi",
|
|
"icon": "ki-filled ki-category text-lg",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": []
|
|
}
|
|
],
|
|
"system": [
|
|
{
|
|
"title": "Logs",
|
|
"path": "logs",
|
|
"icon": "ki-filled ki-tablet-text-down text-lg text-primary",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": [
|
|
"administrator"
|
|
],
|
|
"sub": [
|
|
{
|
|
"title": "Log Biaya Kartu",
|
|
"path": "sync-logs",
|
|
"icon": "ki-filled ki-credit-cart text-lg",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": [
|
|
"administrator"
|
|
]
|
|
},
|
|
{
|
|
"title": "Log Email Statement",
|
|
"path": "email-statement-logs",
|
|
"icon": "ki-filled ki-message-text-2 text-lg text-primary",
|
|
"classes": "",
|
|
"attributes": [],
|
|
"permission": "",
|
|
"roles": [
|
|
"administrator"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|