mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 23:30:32 +00:00
BIG-12: fix reset button with invoice number.
This commit is contained in:
@@ -25,10 +25,7 @@ export default function InvoiceFloatingActions() {
|
|||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
|
||||||
// Formik context.
|
// Formik context.
|
||||||
const { isSubmitting } = useFormikContext();
|
const { resetForm, submitForm, isSubmitting } = useFormikContext();
|
||||||
|
|
||||||
// Formik context.
|
|
||||||
const { resetForm, submitForm } = useFormikContext();
|
|
||||||
|
|
||||||
// Invoice form context.
|
// Invoice form context.
|
||||||
const { setSubmitPayload, invoice } = useInvoiceFormContext();
|
const { setSubmitPayload, invoice } = useInvoiceFormContext();
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ export default compose(
|
|||||||
withSettings(({ invoiceSettings }) => ({
|
withSettings(({ invoiceSettings }) => ({
|
||||||
invoiceNextNumber: invoiceSettings?.nextNumber,
|
invoiceNextNumber: invoiceSettings?.nextNumber,
|
||||||
invoiceNumberPrefix: invoiceSettings?.numberPrefix,
|
invoiceNumberPrefix: invoiceSettings?.numberPrefix,
|
||||||
invoiceIncrementMode: invoiceSettings?.incrementMode,
|
invoiceIncrementMode: invoiceSettings?.autoIncrement,
|
||||||
})),
|
})),
|
||||||
withCurrentOrganization(),
|
withCurrentOrganization(),
|
||||||
)(InvoiceForm);
|
)(InvoiceForm);
|
||||||
|
|||||||
Reference in New Issue
Block a user