| | |
| | | prop: "taxInclusiveTotalPrice", |
| | | width: 200, |
| | | formatData: (cell) => { |
| | | return cell ? parseFloat(cell).toFixed(2) : 0; |
| | | return cell ? parseFloat(cell).toFixed(3) : 0; |
| | | }, |
| | | }, |
| | | { |
| | |
| | | prop: "ticketsAmount", |
| | | width: 200, |
| | | formatData: (cell) => { |
| | | return cell ? parseFloat(cell).toFixed(2) : 0; |
| | | return cell ? parseFloat(cell).toFixed(3) : 0; |
| | | }, |
| | | }, |
| | | { |
| | |
| | | prop: "unTicketsPrice", |
| | | width: 200, |
| | | formatData: (cell) => { |
| | | return cell ? parseFloat(cell).toFixed(2) : 0; |
| | | return cell ? parseFloat(cell).toFixed(3) : 0; |
| | | }, |
| | | }, |
| | | { |
| | |
| | | param, |
| | | ["ticketsAmount", "unTicketsPrice", "invoiceAmount"], |
| | | { |
| | | ticketsAmount: { decimalPlaces: 3 }, |
| | | unTicketsPrice: { decimalPlaces: 3 }, |
| | | invoiceAmount: { decimalPlaces: 3 }, |
| | | ticketsNum: { noDecimal: true }, |
| | | futureTickets: { noDecimal: true }, |
| | | } |
| | |
| | | (c) => c.property === "taxInclusiveTotalPrice" |
| | | ); |
| | | if (taxInclusiveIndex !== -1) { |
| | | sums[taxInclusiveIndex] = taxInclusiveSum.toFixed(2); |
| | | sums[taxInclusiveIndex] = taxInclusiveSum.toFixed(3); |
| | | } |
| | | return sums; |
| | | }; |