tripstorekrabi-shared 1.18.2 → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/utils.js +6 -1
package/package.json
CHANGED
package/utils.js
CHANGED
|
@@ -361,7 +361,12 @@ export function isNumeric(n) {
|
|
|
361
361
|
export function getBookingSummary(booking, options = {}) {
|
|
362
362
|
let summary = '';
|
|
363
363
|
if (!options.excludeReferenceNumber) {
|
|
364
|
-
|
|
364
|
+
if (options.html) {
|
|
365
|
+
summary += `<a href="https://hero.tripstorekrabi.com/Bookings/${booking.id}">${booking.referenceNumber}</a>`;
|
|
366
|
+
} else {
|
|
367
|
+
summary += booking.referenceNumber;
|
|
368
|
+
}
|
|
369
|
+
|
|
365
370
|
if (booking.code) {
|
|
366
371
|
summary += ', Code: ' + booking.code;
|
|
367
372
|
}
|