Delete selected line items even if does not lead to order cancellation

This commit is contained in:
Jean-Baptiste Bellet
2023-02-15 11:49:53 +01:00
parent cf8d9c6d07
commit e5ca8b0ee1
2 changed files with 19 additions and 0 deletions

View File

@@ -150,6 +150,8 @@ angular.module("admin.lineItems").controller 'LineItemsCtrl', ($scope, $timeout,
else
Promise.all(LineItems.delete(item) for item in items).then(-> $scope.refreshData())
, "js.admin.deleting_item_will_cancel_order")
else
Promise.all(LineItems.delete(item) for item in lineItemsToDelete).then(-> $scope.refreshData())
$scope.allBoxesChecked = ->
checkedCount = $scope.filteredLineItems.reduce (count,lineItem) ->