fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-22 23:39:43 +00:00
parent fa9497a258
commit 5a8d4a2f4b

View File

@ -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