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

@@ -36,7 +36,7 @@ export function PaymentsListPaginated({
sortedInfo: {},
filteredInfo: { text: "" },
});
const Templates = TemplateList("payment");
const { t } = useTranslation();
const columns = [
{
@@ -156,9 +156,10 @@ export function PaymentsListPaginated({
</Button>
<PrintWrapperComponent
templateObject={{
name: TemplateList("payment").payment_receipt.key,
name: Templates.payment_receipt.key,
variables: { id: record.id },
}}
messageObject={{ subject: Templates.payment_receipt.subject }}
/>
</Space>
),