salix/print/templates/email/credit-request/credit-request.js

29 lines
679 B
JavaScript
Raw Permalink Normal View History

2022-09-22 07:42:04 +00:00
const Component = require(`vn-print/core/component`);
2022-11-10 08:51:28 +00:00
const emailBody = new Component('email-body');
2021-07-19 08:16:15 +00:00
const attachment = new Component('attachment');
module.exports = {
name: 'credit-request',
components: {
2022-11-10 08:51:28 +00:00
'email-body': emailBody.build(),
2021-07-19 08:16:15 +00:00
'attachment': attachment.build()
},
data() {
2022-10-04 11:41:37 +00:00
return {
attachments: [
{
filename: 'credit-request.pdf',
type: 'pdf',
path: `Clients/${this.id}/credit-request-pdf`
}
]
};
2021-07-19 08:16:15 +00:00
},
2022-10-04 11:41:37 +00:00
props: {
id: {
type: Number,
required: true
}
}
2021-07-19 08:16:15 +00:00
};