ti2-tourplan 1.0.34 → 1.0.35
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/index.js +5 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -577,8 +577,12 @@ class Plugin {
|
|
|
577
577
|
extras,
|
|
578
578
|
puInfo,
|
|
579
579
|
doInfo,
|
|
580
|
+
notes,
|
|
580
581
|
},
|
|
581
582
|
}) {
|
|
583
|
+
const extraText = extras && extras.length
|
|
584
|
+
? extras.map((e, i) => `Extra ${i + 1}: ${e.name} x ${e.quantity}`).join(`\n`)
|
|
585
|
+
: '';
|
|
582
586
|
const model = {
|
|
583
587
|
AddServiceRequest: {
|
|
584
588
|
AgentID: hostConnectAgentID,
|
|
@@ -610,9 +614,7 @@ class Plugin {
|
|
|
610
614
|
Flight: ${doInfo.flightDetails || 'NA'},
|
|
611
615
|
`,
|
|
612
616
|
} : {}),
|
|
613
|
-
|
|
614
|
-
Remarks: extras.map((e, i) => `Extra ${i + 1}: ${e.name} x ${e.quantity}`).join(`\n`),
|
|
615
|
-
} : {}),
|
|
617
|
+
Remarks: `${notes || ''} ${extraText ? `\nExtras: ${extraText}` : ''}`,
|
|
616
618
|
Opt: optionId,
|
|
617
619
|
DateFrom: startDate,
|
|
618
620
|
RateId: 'Default',
|