13-05-2026 Waren Wirtschaft

This commit is contained in:
Kevin Adametz 2026-05-13 18:09:20 +02:00
parent 9ce711d6b2
commit ca3eb663fe
40 changed files with 1000 additions and 189 deletions

View file

@ -82,6 +82,7 @@ test('admin creates pending stock entry with unit gram', function () {
$ingredient = phase3MakeIngredient();
$location = Location::factory()->create();
$supplier = Supplier::factory()->create();
$quality = MaterialQuality::factory()->create();
$this->actingAs($admin, 'user');
@ -90,6 +91,7 @@ test('admin creates pending stock entry with unit gram', function () {
'ingredient_id' => (string) $ingredient->id,
'supplier_id' => (string) $supplier->id,
'location_id' => (string) $location->id,
'quality_id' => (string) $quality->id,
'ordered_at' => '2026-03-27',
'ordered_quantity' => '1000',
'price_per_kg' => '12,50',
@ -180,6 +182,7 @@ test('listForIndex sorts pending before received', function () {
$ingredient = phase3MakeIngredient();
$location = Location::factory()->create();
$supplier = Supplier::factory()->create();
$quality = MaterialQuality::factory()->create();
$this->actingAs($admin, 'user');
@ -188,6 +191,7 @@ test('listForIndex sorts pending before received', function () {
'ingredient_id' => (string) $ingredient->id,
'supplier_id' => (string) $supplier->id,
'location_id' => (string) $location->id,
'quality_id' => (string) $quality->id,
'ordered_at' => '2026-01-01',
'ordered_quantity' => '100',
'price_per_kg' => '1',
@ -198,6 +202,7 @@ test('listForIndex sorts pending before received', function () {
'ingredient_id' => (string) $ingredient->id,
'supplier_id' => (string) $supplier->id,
'location_id' => (string) $location->id,
'quality_id' => (string) $quality->id,
'ordered_at' => '2026-06-01',
'ordered_quantity' => '200',
'price_per_kg' => '1',