2022-09-22 07:42:04 +00:00
|
|
|
const Component = require(`vn-print/core/component`);
|
2021-07-20 07:09:46 +00:00
|
|
|
const emailHeader = new Component('email-header');
|
|
|
|
const emailFooter = new Component('email-footer');
|
|
|
|
const attachment = new Component('attachment');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
name: 'client-debt-statement',
|
|
|
|
components: {
|
|
|
|
'email-header': emailHeader.build(),
|
|
|
|
'email-footer': emailFooter.build(),
|
|
|
|
'attachment': attachment.build()
|
|
|
|
},
|
|
|
|
data() {
|
2022-10-04 11:41:37 +00:00
|
|
|
return {
|
|
|
|
attachments: [
|
|
|
|
{
|
|
|
|
filename: 'client-debt-statement.pdf',
|
|
|
|
type: 'pdf',
|
|
|
|
path: `Clients/${this.id}/client-debt-statement-pdf`
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
2021-07-20 07:09:46 +00:00
|
|
|
},
|
|
|
|
props: {
|
2022-09-22 07:42:04 +00:00
|
|
|
id: {
|
2022-10-28 13:53:57 +00:00
|
|
|
type: Number,
|
2021-07-20 07:09:46 +00:00
|
|
|
required: true
|
|
|
|
},
|
|
|
|
from: {
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|