refactor(FE): Improve vehicle number validation message and set

expedition flag on supplier
This commit is contained in:
rstubryan
2026-01-15 19:32:09 +07:00
parent 228e79bb31
commit 45700be730
2 changed files with 2 additions and 1 deletions
@@ -160,6 +160,7 @@ const PurchaseOrderAcceptApprovalForm = ({
hasMore: hasMoreExpeditions, hasMore: hasMoreExpeditions,
} = useSelect<Supplier>(SupplierApi.basePath, 'id', 'name', 'search', { } = useSelect<Supplier>(SupplierApi.basePath, 'id', 'name', 'search', {
category: 'BOP', category: 'BOP',
flag: 'EKSPEDISI',
}); });
// ===== FORM CONFIGURATION ===== // ===== FORM CONFIGURATION =====
@@ -186,7 +186,7 @@ const PurchaseAcceptApprovalItemObjectSchema: Yup.ObjectSchema<PurchaseAcceptApp
vehicle_number: Yup.string() vehicle_number: Yup.string()
.nullable() .nullable()
.optional() .optional()
.typeError('Nomor kendaraan harus berupa string!'), .typeError('Nomor kendaraan harus berupa plat nomor!'),
expedition_vendor: Yup.object({ expedition_vendor: Yup.object({
value: Yup.number().min(1).required(), value: Yup.number().min(1).required(),
label: Yup.string().required(), label: Yup.string().required(),