ti2-tourplan 1.0.78 → 1.0.79

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 +8 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -995,6 +995,14 @@ class BuyerPlugin {
995
995
  ...(puRemark ? { puRemark } : {}),
996
996
  ...(doTime ? { doTime } : {}),
997
997
  ...(doRemark ? { doRemark } : {}),
998
+ ...(extras && extras.filter(e => e.selectedExtra && e.selectedExtra.id).length ? {
999
+ ExtraQuantities: {
1000
+ ExtraQuantityItem: extras.filter(e => e.selectedExtra && e.selectedExtra.id).map(e => ({
1001
+ SequenceNumber: e.selectedExtra.id,
1002
+ ExtraQuantity: e.quantity,
1003
+ })),
1004
+ },
1005
+ } : {}),
998
1006
  Remarks: this.escapeInvalidXmlChars(notes).slice(0, 220),
999
1007
  Opt: optionId,
1000
1008
  DateFrom: startDate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {