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.
Files changed (2) hide show
  1. package/index.js +5 -3
  2. 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
- ...(extras && extras.length ? {
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {