From 5a8d4a2f4b52f4b91de265204a81ec7995b99b44 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 22 Sep 2023 23:39:43 +0000 Subject: [PATCH] fix tests --- Controller/ApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 48f9c7b..ab1f86c 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -134,12 +134,12 @@ final class ApiController extends Controller /** @var \Modules\Billing\Models\BillElement $new */ $transaction->billElement = $new->id; - $transaction->state = StockMovementState::DRAFT; + $transaction->state = StockMovementState::DRAFT; // @todo: load default stock movement for bill type/organization settings (default stock location, default lot order e.g. FIFO/LIFO) // @todo: find stock candidates - $transaction->type = StockMovementType::TRANSFER; // @todo: depends on bill type + $transaction->type = StockMovementType::TRANSFER; // @todo: depends on bill type $transaction->quantity = $new->getQuantity(); // @todo may require split quantity if not sufficient available from one lost // @todo: allow consignment bills