19 lines
504 B
JavaScript
19 lines
504 B
JavaScript
const vnReport = require('../../../core/mixins/vn-report.js');
|
|
|
|
module.exports = {
|
|
name: 'balance-compensation',
|
|
mixins: [vnReport],
|
|
async serverPrefetch() {
|
|
this.client = await this.findOneFromDef('client', [this.id]);
|
|
this.checkMainEntity(this.client);
|
|
this.company = await this.findOneFromDef('company', [this.id]);
|
|
},
|
|
props: {
|
|
id: {
|
|
type: Number,
|
|
required: true,
|
|
description: 'The receipt id'
|
|
}
|
|
}
|
|
};
|