partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit e1a247c7bf80ba6757e1ed3f4fc337386a0503c7
parent cd209c7cf72a284be666dcb94dc8d9c0b73789b6
Author: Felicitus <felicitus@felicitus.org>
Date:   Fri, 18 Dec 2015 14:44:32 +0100

Fixed stock level adders

Diffstat:
Msrc/PartKeepr/PartBundle/Action/AddStockAction.php | 2+-
Msrc/PartKeepr/PartBundle/Action/RemoveStockAction.php | 2+-
Msrc/PartKeepr/PartBundle/Action/SetStockAction.php | 2+-
Msrc/PartKeepr/PartBundle/Controller/PartController.php | 2+-
4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/PartKeepr/PartBundle/Action/AddStockAction.php b/src/PartKeepr/PartBundle/Action/AddStockAction.php @@ -77,7 +77,7 @@ class AddStockAction $stock->setComment($request->request->get("comment")); } - $part->addStockEntry($stock); + $part->addStockLevel($stock); $this->registry->getManager()->persist($stock); $this->registry->getManager()->flush(); diff --git a/src/PartKeepr/PartBundle/Action/RemoveStockAction.php b/src/PartKeepr/PartBundle/Action/RemoveStockAction.php @@ -72,7 +72,7 @@ class RemoveStockAction $stock->setComment($request->request->get("comment")); } - $part->addStockEntry($stock); + $part->addStockLevel($stock); $this->registry->getManager()->persist($stock); $this->registry->getManager()->flush(); diff --git a/src/PartKeepr/PartBundle/Action/SetStockAction.php b/src/PartKeepr/PartBundle/Action/SetStockAction.php @@ -77,7 +77,7 @@ class SetStockAction $stock->setComment($request->request->get("comment")); } - $part->addStockEntry($stock); + $part->addStockLevel($stock); $this->registry->getManager()->persist($stock); $this->registry->getManager()->flush(); } diff --git a/src/PartKeepr/PartBundle/Controller/PartController.php b/src/PartKeepr/PartBundle/Controller/PartController.php @@ -55,7 +55,7 @@ class PartController extends FOSRestController $stock->setComment($removal->comment); } - $part->addStockEntry($stock); + $part->addStockLevel($stock); } $this->get("doctrine.orm.entity_manager")->flush();