new trim system, capacity available added

This commit is contained in:
zino
2021-04-29 19:07:36 +02:00
parent a22728a802
commit 62b7b22f4c
5 changed files with 67 additions and 129 deletions

View File

@@ -176,7 +176,7 @@ function enterSeatsInMatrix(inRows: I.LayoutRow2[], inArrMatrix: string[][], inP
inRows.forEach(element => {
const row: I.LayoutRow2 = element;
const Y: number = parseInt(row.y_cell_coord[0]);
const Y: number = parseInt(row.y_cell_coord[0]) - 1;
const seatsArr: string[] = row.seats[0].split("|");
seatsArr.forEach(element => {
@@ -198,7 +198,7 @@ function enterSeatsInMatrix(inRows: I.LayoutRow2[], inArrMatrix: string[][], inP
return;
// const X: number = parseInt(seatArr[5]);
const X: number = parseInt(seatArr[2]);
const X: number = parseInt(seatArr[2]) - 1;
const seatsKey = getSeatsKey(seatArr[0], inPricescaleArr);
if (seatsKey)