feat(FE): Add transaction type and subtype options to constants

This commit is contained in:
rstubryan
2026-02-26 09:11:05 +07:00
parent 0031a65f97
commit 5a67901722
+17
View File
@@ -545,3 +545,20 @@ export const MARKETING_DATE_FILTER_TYPE_OPTIONS = [
value: 'so_date',
},
];
export const TRANSACTION_TYPE_OPTIONS = [
{ label: 'Pembelian', value: 'PEMBELIAN' },
{ label: 'Penjualan', value: 'PENJUALAN' },
{ label: 'Biaya', value: 'BIAYA' },
];
export const TRANSACTION_SUBTYPE_OPTIONS = {
PEMBELIAN: [{ label: 'Pembelian', value: 'PURCHASE_IN' }],
PENJUALAN: [{ label: 'Penjualan', value: 'MARKETING_OUT' }],
RECORDING: [
{ label: 'Recording Stock Out', value: 'RECORDING_STOCK_OUT' },
{ label: 'Recording Depletion Out', value: 'RECORDING_DEPLETION_OUT' },
{ label: 'Recording Depletion In', value: 'RECORDING_DEPLETION_IN' },
{ label: 'Recording Egg In', value: 'RECORDING_EGG_IN' },
],
};