|
|
|
@@ -17,7 +17,7 @@ type FormProps = { |
|
|
|
}; |
|
|
|
|
|
|
|
const schema = Yup.object().shape({ |
|
|
|
receipt_name: Yup.string().required("必須項目です"), |
|
|
|
// receipt_name: Yup.string().required("必須項目です"), |
|
|
|
}); |
|
|
|
|
|
|
|
export default function useReceiptIssuingOrderConfirm() { |
|
|
|
@@ -64,7 +64,11 @@ export default function useReceiptIssuingOrderConfirm() { |
|
|
|
}, |
|
|
|
}); |
|
|
|
|
|
|
|
const handleSubmit = () => { |
|
|
|
const handleSubmit = (data: FormProps) => { |
|
|
|
if (data.receipt_name === "") { |
|
|
|
form.setValue("receipt_name", " "); |
|
|
|
} |
|
|
|
|
|
|
|
confirmDialog.setShow(true); |
|
|
|
}; |
|
|
|
|
|
|
|
|