salix/print/templates/reports/zone/zone.js

18 lines
407 B
JavaScript
Executable File

const vnReport = require('../../../core/mixins/vn-report.js');
module.exports = {
name: 'zone',
mixins: [vnReport],
async serverPrefetch() {
this.zone = await this.findOneFromDef('zone', [this.id]);
this.checkMainEntity(this.zone);
},
props: {
id: {
type: Number,
required: true,
description: 'The zone id'
}
}
};