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

19 lines
496 B
JavaScript
Raw Normal View History

2023-01-23 12:15:30 +00:00
const vnReport = require('../../../core/mixins/vn-report.js');
module.exports = {
2019-10-31 11:43:04 +00:00
name: 'claim-pickup-order',
2023-01-23 12:15:30 +00:00
mixins: [vnReport],
2019-10-29 06:46:44 +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.sales = await this.rawSqlFromDef('sales', [this.id]);
},
2019-10-31 11:43:04 +00:00
props: {
2022-09-22 07:17:14 +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 claim id'
2019-10-31 11:43:04 +00:00
}
2023-01-23 12:15:30 +00:00
},
};