Included subject on document generation

This commit is contained in:
Patrick Fic
2021-02-25 15:57:45 -08:00
parent efa4a3f42b
commit c9fb2bc074
6 changed files with 17 additions and 19 deletions

View File

@@ -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"
);