1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00

workaround pending for UI

This commit is contained in:
Sylvain 2021-12-20 17:19:43 +01:00
parent d6b30875a4
commit 4a8fa65e5f

View File

@ -461,7 +461,7 @@ Application.Controllers.controller('EditPricingController', ['$scope', '$state',
*/
$scope.findPriceBy = function (prices, machineId, groupId) {
for (const price of Array.from(prices)) {
if ((price.priceable_id === machineId) && (price.group_id === groupId)) {
if ((price.priceable_id === machineId) && (price.group_id === groupId) && (price.duration === 60)) {
return price;
}
}