@recras/online-booking-js 2.0.0 → 2.0.1

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  [![Build Status](https://travis-ci.org/Recras/online-booking-js.svg?branch=master)](https://travis-ci.org/Recras/online-booking-js)
2
2
 
3
3
  # Recras JS Integration Library
4
- Version: 2.0.0
4
+ Version: 2.0.1
5
5
 
6
6
  JS library for easy online booking, contact form, and voucher integration
7
7
 
package/changelog.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.1 (2022-06-22)
4
+ * "Number of people" on a package line was incorrectly used as minimum quantity - fixed
5
+
3
6
  ## 2.0.0 (2022-05-16)
4
7
  * Fix GA4 events
5
8
  * Support for Google Analytics v2 has been dropped
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recras/online-booking-js",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "JS library for easy integration of Recras online booking and voucher sales",
5
5
  "main": "dist/onlinebooking.js",
6
6
  "scripts": {
package/src/booking.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*******************************
2
2
  * Recras integration library *
3
- * v 2.0.0 *
3
+ * v 2.0.1 *
4
4
  *******************************/
5
5
 
6
6
  class RecrasBooking {
@@ -538,8 +538,6 @@ class RecrasBooking {
538
538
 
539
539
  if (product.aantal < packageLine.product.minimum_aantal) {
540
540
  this.setMinMaxAmountWarning(input.id, packageLine.product.minimum_aantal, 'minimum');
541
- } else if (product.aantal < packageLine.aantal_personen) {
542
- this.setMinMaxAmountWarning(input.id, packageLine.aantal_personen, 'minimum');
543
541
  } else if (packageLine.min !== undefined && product.aantal < packageLine.min) {
544
542
  this.setMinMaxAmountWarning(input.id, packageLine.min, 'minimum');
545
543
  } else if (packageLine.max !== null && product.aantal > packageLine.max) {