diff --git a/Controller/ApiController.php b/Controller/ApiController.php index ab1f86c..b5eb1d8 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -194,6 +194,8 @@ final class ApiController extends Controller // stock changes // all other changes ignore! // check availability again, if not available abort bill + // maybe from an algorithmic point of view first set quantity to zero + // and then do normal algorithm like for a new element } else { StockMovementMapper::delete()->execute($transactions);