feat: assign default default messages on sales transactions

This commit is contained in:
Ahmed Bouhuolia
2023-12-16 19:26:41 +02:00
parent ad53ddb9dd
commit 6953f7c4a3
12 changed files with 189 additions and 137 deletions

View File

@@ -4,11 +4,7 @@ import { Form } from 'formik';
import { Button, Intent } from '@blueprintjs/core';
import { useHistory } from 'react-router-dom';
import {
FormattedMessage as T,
FFormGroup,
FTextArea,
} from '@/components';
import { FormattedMessage as T, FFormGroup, FTextArea } from '@/components';
/**
* Preferences general form.
@@ -23,6 +19,20 @@ export function PreferencesReceiptsForm({ isSubmitting }) {
return (
<Form>
{/* ---------- Customer Notes ---------- */}
<FFormGroup
name={'receiptMessage'}
label={<T id={'pref.receipts.receiptMessage.field'} />}
fastField={true}
>
<FTextArea
medium={'true'}
name={'receiptMessage'}
fastField={true}
fill={true}
/>
</FFormGroup>
{/* ---------- Terms & Conditions ---------- */}
<FFormGroup
name={'termsConditions'}
@@ -37,20 +47,6 @@ export function PreferencesReceiptsForm({ isSubmitting }) {
/>
</FFormGroup>
{/* ---------- Customer Notes ---------- */}
<FFormGroup
name={'customerNotes'}
label={<T id={'pref.receipts.customerNotes.field'} />}
fastField={true}
>
<FTextArea
medium={'true'}
name={'tax_number'}
fastField={true}
fill={true}
/>
</FFormGroup>
<CardFooterActions>
<Button loading={isSubmitting} intent={Intent.PRIMARY} type="submit">
<T id={'save'} />