mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: mail notifications of sales transactions
This commit is contained in:
@@ -29,6 +29,7 @@ function PaymentMailDialogBoot({
|
||||
const provider = {
|
||||
mailOptions,
|
||||
isMailOptionsLoading,
|
||||
paymentReceiveId
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -28,7 +28,7 @@ export function PaymentMailDialogFormRoot({
|
||||
// #withDialogActions
|
||||
closeDialog,
|
||||
}) {
|
||||
const { mailOptions, paymentId } = usePaymentMailDialogBoot();
|
||||
const { mailOptions, paymentReceiveId } = usePaymentMailDialogBoot();
|
||||
const { mutateAsync: sendPaymentMail } = useSendPaymentReceiveMail();
|
||||
|
||||
const initialValues = transformMailFormToInitialValues(
|
||||
@@ -43,7 +43,7 @@ export function PaymentMailDialogFormRoot({
|
||||
const reqValues = transformMailFormToRequest(values);
|
||||
|
||||
setSubmitting(true);
|
||||
sendPaymentMail([paymentId, reqValues])
|
||||
sendPaymentMail([paymentReceiveId, reqValues])
|
||||
.then(() => {
|
||||
AppToaster.show({
|
||||
message: 'The mail notification has been sent successfully.',
|
||||
|
||||
Reference in New Issue
Block a user