diff --git a/src/config/Paths.tsx b/src/config/Paths.tsx index 9ac18a5..7b4bd93 100644 --- a/src/config/Paths.tsx +++ b/src/config/Paths.tsx @@ -54,6 +54,7 @@ export const Paths = { list: '/invoice/list', create: '/invoice/create', detail: '/invoice/', + update: '/invoice/update/', }, newOrder: '/new-order', orderDetails: '/order/', diff --git a/src/pages/invoice/Create.tsx b/src/pages/invoice/Create.tsx index 4ea71b1..65a7368 100644 --- a/src/pages/invoice/Create.tsx +++ b/src/pages/invoice/Create.tsx @@ -40,13 +40,13 @@ const CreateInvoice: FC = () => { const [items, setItems] = useState([createEmptyItem()]); const [attachmentFiles, setAttachmentFiles] = useState([]); - const formik = useFormik>({ + const formik = useFormik>({ initialValues: { userId: "", enableTax: false, approvalDeadline: "", paymentMethod: "", - notes: "", + description: "", }, validationSchema: Yup.object({ userId: !requestId @@ -87,7 +87,7 @@ const CreateInvoice: FC = () => { enableTax: values.enableTax, approvalDeadline: moment(values.approvalDeadline, 'jYYYY/jMM/jDD').format('YYYY-MM-DD'), ...(values.paymentMethod ? { paymentMethod: values.paymentMethod } : {}), - notes: values.notes, + description: values.description, ...(attachments.length ? { attachments } : {}), }; @@ -243,10 +243,10 @@ const CreateInvoice: FC = () => {