turf-common 1.2.1-beta.15 → 1.2.1-beta.16
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.
|
@@ -73,7 +73,7 @@ var ChargesModel = /** @class */ (function () {
|
|
|
73
73
|
discountAmount = parseFloat(couponCode);
|
|
74
74
|
}
|
|
75
75
|
else if (code && code[0] === "PHU") {
|
|
76
|
-
if (
|
|
76
|
+
if (totalBookingHours === undefined) {
|
|
77
77
|
throw new app_badrequest_exception_1.AppBadRequestException({
|
|
78
78
|
key: "totalBookingHours",
|
|
79
79
|
message: [
|
|
@@ -192,7 +192,6 @@ var ChargesModel = /** @class */ (function () {
|
|
|
192
192
|
return that;
|
|
193
193
|
};
|
|
194
194
|
ChargesModel.prototype.modifyDelete = function (bookingCode, cancellationUnit) {
|
|
195
|
-
this.couponCode = "";
|
|
196
195
|
var newChargeModel = this.clone();
|
|
197
196
|
newChargeModel.couponCode = "";
|
|
198
197
|
var costDifference = bookingCode.getCost();
|