fix : added venue in place of race number
This commit is contained in:
parent
05d356626f
commit
52118ee0f6
@ -871,7 +871,13 @@ printTicket() {
|
||||
const timeStr = now.toTimeString().slice(0, 8).replace(/:/g, '');
|
||||
const millis = now.getMilliseconds().toString().padStart(3, '0');
|
||||
// const ticketId = `${venue}/${fullYear}${month}${day}/1`;
|
||||
const ticketId = `${venue}/${fullYear}${month}${day}/${this.selectedRaceNumber}`;
|
||||
// For multi-leg pools (TRE, MJP, JKP), show the pool name (trb1, trb2, mjp1, jkp1) instead of race number
|
||||
let ticketId: string;
|
||||
if (['TRE', 'MJP', 'JKP'].includes(this.selectedLabel || '') && this.currentPool) {
|
||||
ticketId = `${venue}/${fullYear}${month}${day}/${this.currentPool}`;
|
||||
} else {
|
||||
ticketId = `${venue}/${fullYear}${month}${day}/${this.selectedRaceNumber}`;
|
||||
}
|
||||
const barcodeId = `1111${day}${month}${year}${timeStr}${millis}`;
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user