salix/print/templates/reports/balance-compensation/balance-compensation.js

19 lines
504 B
JavaScript
Raw Normal View History

2023-01-23 12:15:30 +00:00
const vnReport = require('../../../core/mixins/vn-report.js');
2022-10-28 12:49:22 +00:00
module.exports = {
2022-11-02 14:54:23 +00:00
name: 'balance-compensation',
2023-01-23 12:15:30 +00:00
mixins: [vnReport],
2022-10-28 12:49:22 +00:00
async serverPrefetch() {
2023-01-23 12:15:30 +00:00
this.client = await this.findOneFromDef('client', [this.id]);
this.checkMainEntity(this.client);
this.company = await this.findOneFromDef('company', [this.id]);
2022-10-28 12:49:22 +00:00
},
props: {
id: {
2022-11-02 14:54:23 +00:00
type: Number,
2022-10-28 12:49:22 +00:00
required: true,
description: 'The receipt id'
}
}
};