feat: payment received mail preview

This commit is contained in:
Ahmed Bouhuolia
2024-11-24 13:19:26 +02:00
parent da47418f17
commit 3537a05ea2
19 changed files with 438 additions and 49 deletions

View File

@@ -40,7 +40,7 @@ export function ReceiptSendMailForm({ children }: ReceiptSendMailFormProps) {
{ setSubmitting }: FormikHelpers<ReceiptSendMailFormValues>,
) => {
setSubmitting(true);
sendReceiptMail({ id: receiptId, values: { ...values } })
sendReceiptMail([receiptId, values])
.then(() => {
AppToaster.show({
message: 'The receipt mail has been sent to the customer.',