feat: inject default message value to sales forms

This commit is contained in:
Ahmed Bouhuolia
2023-12-15 20:15:42 +02:00
parent 217321380a
commit ad53ddb9dd
6 changed files with 89 additions and 54 deletions

View File

@@ -7,7 +7,6 @@ import { omit, first } from 'lodash';
import { useFormikContext } from 'formik';
import {
defaultFastFieldShouldUpdate,
transactionNumber,
repeatValue,
transformToForm,
formattedAmount,
@@ -50,7 +49,7 @@ export const defaultReceipt = {
receipt_date: moment(new Date()).format('YYYY-MM-DD'),
reference_no: '',
receipt_message: '',
statement: '',
terms_conditions: '',
closed: '',
branch_id: '',
warehouse_id: '',