this.dateLimiter.initialDate = new Date();
this.fetchData = (limiter: 'resource' | 'type', id: number) => {
- this.resources = [];
+ this.resources = [];
let where = {};
if ('type' === limiter) {
where = {type: id};
} else if ('resource' === limiter) {
where = {id: id};
}
- this.pcrud.search('brsrc', where, {
+ this.pcrud.search('brsrc', where, {
order_by: 'barcode ASC',
flesh: 1,
flesh_fields: {'brsrc': ['curr_rsrcs']},
}
current_time.minute = (current_time.minute + this.granularity) % 60;
}
- }
+ };
this.isBooked = (row: any, col: any) => {
if ((col.name !== 'time') && (row[col.name])) {