Add stock items, groups and movements at a moving average cost

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:18:59 +02:00
co-authored by Claude Sonnet 5.5
parent 361a2974cf
commit 30132deb0e
81 changed files with 4968 additions and 115 deletions
@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace App\Modules\Inventory\Domain\Enums;
/**
* What a stock movement is (spec 19.2): a purchase adds stock, use and a
* write-off take it, a stock count adjusts it either way, and a reversal
* cancels an earlier movement with the opposite quantity.
*/
enum StockMovementKind: string
{
case Purchase = 'purchase';
case Consumption = 'consumption';
case WriteOff = 'write_off';
case Adjustment = 'adjustment';
case Reversal = 'reversal';
}
@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace App\Modules\Inventory\Domain\Enums;
/**
* The unit a stock item is counted in (spec 19.1). Labels are in
* lang/*\/inventory.php under units.
*/
enum StockUnit: string
{
case Piece = 'piece';
case Sheet = 'sheet';
case Roll = 'roll';
case Metre = 'metre';
case SquareMetre = 'square_metre';
case Litre = 'litre';
case Package = 'package';
}