salix/print/templates/reports/claim-pickup-order/claim-pickup-order.js

19 lines
496 B
JavaScript
Executable File

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