$scope.removeInventoryLine = function (inventoryLine) {
        $scope.inventory.inventory_lines = $scope.inventory.inventory_lines.filter(function (invLine) {
          return invLine.id !== inventoryLine.id;
        });
      };