mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 05:22:02 +00:00
refactor(FE): Improve vehicle number validation message and set
expedition flag on supplier
This commit is contained in:
@@ -160,6 +160,7 @@ const PurchaseOrderAcceptApprovalForm = ({
|
||||
hasMore: hasMoreExpeditions,
|
||||
} = useSelect<Supplier>(SupplierApi.basePath, 'id', 'name', 'search', {
|
||||
category: 'BOP',
|
||||
flag: 'EKSPEDISI',
|
||||
});
|
||||
|
||||
// ===== FORM CONFIGURATION =====
|
||||
|
||||
@@ -186,7 +186,7 @@ const PurchaseAcceptApprovalItemObjectSchema: Yup.ObjectSchema<PurchaseAcceptApp
|
||||
vehicle_number: Yup.string()
|
||||
.nullable()
|
||||
.optional()
|
||||
.typeError('Nomor kendaraan harus berupa string!'),
|
||||
.typeError('Nomor kendaraan harus berupa plat nomor!'),
|
||||
expedition_vendor: Yup.object({
|
||||
value: Yup.number().min(1).required(),
|
||||
label: Yup.string().required(),
|
||||
|
||||
Reference in New Issue
Block a user