@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 +1 -1
- package/changelog.md +3 -0
- package/package.json +1 -1
- package/src/booking.js +1 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[](https://travis-ci.org/Recras/online-booking-js)
|
|
2
2
|
|
|
3
3
|
# Recras JS Integration Library
|
|
4
|
-
Version: 2.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
package/package.json
CHANGED
package/src/booking.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*******************************
|
|
2
2
|
* Recras integration library *
|
|
3
|
-
* v 2.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) {
|