From 9a00d4b98eeaac8eea05870d7b0bcea86d59dc9d Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Tue, 27 Jan 2026 16:59:10 +0700 Subject: [PATCH] refactor: adjust APPROVAL_WORKFLOWS structure --- src/config/constant.ts | 61 +++++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/src/config/constant.ts b/src/config/constant.ts index eb271b9b..78a80249 100644 --- a/src/config/constant.ts +++ b/src/config/constant.ts @@ -403,34 +403,39 @@ export const FINANCE_INITIAL_BALANCE_STATUS = ['SALDO_AWAL']; export const FINANCE_INJECTION_STATUS = ['INJECTION']; -export const APPROVAL_WORKFLOWS = [ - { - key: 'PROJECT_FLOCKS', - steps: [ - { - step_number: 1, - step_name: 'Pengajuan', - }, - { - step_number: 2, - step_name: 'Aktif', - }, - ], - }, - { - key: 'RECORDINGS', - steps: [ - { - step_number: 1, - step_name: 'Pengajuan', - }, - { - step_number: 2, - step_name: 'Disetujui', - }, - ], - }, -]; +export const APPROVAL_WORKFLOWS = { + PROJECT_FLOCKS: [ + { + step_number: 1, + step_name: 'Pengajuan', + }, + { + step_number: 2, + step_name: 'Aktif', + }, + ], + RECORDINGS: [ + { + step_number: 1, + step_name: 'Pengajuan', + }, + { + step_number: 2, + step_name: 'Disetujui', + }, + ], + + TRANSFER_TO_LAYINGS: [ + { + step_number: 1, + step_name: 'Pengajuan', + }, + { + step_number: 2, + step_name: 'Disetujui', + }, + ], +}; export const ACCEPTED_FILE_TYPE = { PDF: {