mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 15:25:46 +00:00
fix(FE): adding select injection type for positive and negative value
This commit is contained in:
@@ -5,6 +5,7 @@ import * as Yup from 'yup';
|
||||
export type InjectionFormValues = {
|
||||
bank_id_option: OptionType | null;
|
||||
adjustment_date: string;
|
||||
injection_type?: OptionType | null | undefined;
|
||||
nominal: string;
|
||||
note: string;
|
||||
};
|
||||
@@ -18,6 +19,7 @@ export const InjectionFormSchema = Yup.object<InjectionFormValues>({
|
||||
(value) => value !== null && value !== undefined
|
||||
),
|
||||
adjustment_date: Yup.string().required('Tanggal penyesuaian wajib diisi'),
|
||||
injection_type: Yup.mixed().nullable().required('Tipe injeksi wajib diisi'),
|
||||
nominal: Yup.string().required('Nominal wajib diisi'),
|
||||
note: Yup.string().required('Catatan wajib diisi'),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user