@pisell/pisellos 3.0.11 → 3.0.12
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.
|
@@ -1865,7 +1865,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1865
1865
|
if ((resourcesUseableMap === null || resourcesUseableMap === void 0 ? void 0 : resourcesUseableMap[m.id]) !== false && res.reason !== 'capacityOnly') {
|
|
1866
1866
|
resourcesUseableMap[m.id] = res.usable;
|
|
1867
1867
|
}
|
|
1868
|
-
if (res.usable && res.remainingCapacity >= count) {
|
|
1868
|
+
if (res.usable && res.remainingCapacity >= count && !m.onlyComputed) {
|
|
1869
1869
|
count = res.remainingCapacity;
|
|
1870
1870
|
}
|
|
1871
1871
|
});
|
|
@@ -1234,7 +1234,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
1234
1234
|
if ((resourcesUseableMap == null ? void 0 : resourcesUseableMap[m.id]) !== false && res.reason !== "capacityOnly") {
|
|
1235
1235
|
resourcesUseableMap[m.id] = res.usable;
|
|
1236
1236
|
}
|
|
1237
|
-
if (res.usable && res.remainingCapacity >= count) {
|
|
1237
|
+
if (res.usable && res.remainingCapacity >= count && !m.onlyComputed) {
|
|
1238
1238
|
count = res.remainingCapacity;
|
|
1239
1239
|
}
|
|
1240
1240
|
});
|