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

18 lines
407 B
JavaScript
Raw Permalink Normal View History

2023-01-23 12:15:30 +00:00
const vnReport = require('../../../core/mixins/vn-report.js');
2022-11-10 07:57:42 +00:00
2019-11-04 12:55:20 +00:00
module.exports = {
name: 'zone',
2023-01-23 12:15:30 +00:00
mixins: [vnReport],
2019-11-04 12:55:20 +00:00
async serverPrefetch() {
2023-01-23 12:15:30 +00:00
this.zone = await this.findOneFromDef('zone', [this.id]);
this.checkMainEntity(this.zone);
2022-11-10 07:57:42 +00:00
},
2019-11-04 12:55:20 +00:00
props: {
2022-09-26 11:33:27 +00:00
id: {
2022-10-28 13:53:57 +00:00
type: Number,
2022-09-26 11:33:27 +00:00
required: true,
description: 'The zone id'
2019-11-04 12:55:20 +00:00
}
}
};