Included subject on document generation
This commit is contained in:
@@ -118,10 +118,10 @@ function BillEnterModalContainer({
|
||||
} else {
|
||||
notification["error"]({ message: t("payments.errors.payment") });
|
||||
}
|
||||
|
||||
const Templates = TemplateList("payment");
|
||||
GenerateDocument(
|
||||
{
|
||||
name: TemplateList("payment").payment_receipt.key,
|
||||
name: Templates.payment_receipt.key,
|
||||
variables: {
|
||||
id: newPayment.data.insert_payments.returning[0].id,
|
||||
},
|
||||
@@ -129,6 +129,7 @@ function BillEnterModalContainer({
|
||||
{
|
||||
// to: [appData.email],
|
||||
replyTo: bodyshop.email,
|
||||
subject: Templates.payment_receipt.subject,
|
||||
},
|
||||
sendby === "email" ? "e" : "p"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user