Warenwirtschaft: Rohstoffbestand — Default „Nur aus Herstellerrezepturen" (Kundenentscheid 17.07.2026)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
4f9dca88de
commit
e6af987237
5 changed files with 16 additions and 13 deletions
|
|
@ -231,7 +231,7 @@ test('uebersicht rendert rohstoff mit bestand', function () {
|
|||
ap10MakeStock($ing, $location, $supplier, $user, ['received_quantity' => 2578]);
|
||||
|
||||
$this->actingAs($user, 'user');
|
||||
$response = $this->get(route('admin.inventory.raw-material-stock.index'));
|
||||
$response = $this->get(route('admin.inventory.raw-material-stock.index', ['scope' => 'all']));
|
||||
|
||||
$response->assertSuccessful();
|
||||
$response->assertSee('Rohstoffbestand');
|
||||
|
|
@ -283,7 +283,7 @@ test('kein-rohstoffbestand-flag blendet inci aus uebersicht und kritisch-zaehler
|
|||
expect(app(InventoryService::class)->criticalIngredientCount())->toBe(1);
|
||||
|
||||
$this->actingAs($user, 'user');
|
||||
$response = $this->get(route('admin.inventory.raw-material-stock.index'));
|
||||
$response = $this->get(route('admin.inventory.raw-material-stock.index', ['scope' => 'all']));
|
||||
|
||||
$response->assertSuccessful();
|
||||
$response->assertSee('AP20-Sichtbar');
|
||||
|
|
@ -307,18 +307,18 @@ test('modus recipe zeigt nur rohstoffe aus herstellerrezepturen aktiver produkte
|
|||
|
||||
$this->actingAs($user, 'user');
|
||||
|
||||
// Default „alle": beide sichtbar, Pills werden gerendert
|
||||
// Default (Kundenentscheid 17.07.2026): nur Rohstoffe aus Herstellerrezepturen
|
||||
$this->get(route('admin.inventory.raw-material-stock.index'))
|
||||
->assertSuccessful()
|
||||
->assertSee('AP20-InRezeptur')
|
||||
->assertSee('AP20-Neuentwicklung')
|
||||
->assertDontSee('AP20-Neuentwicklung')
|
||||
->assertSee('Nur aus Herstellerrezepturen');
|
||||
|
||||
// Modus „recipe": nur der Rezeptur-Rohstoff
|
||||
$this->get(route('admin.inventory.raw-material-stock.index', ['scope' => 'recipe']))
|
||||
// Modus „alle": beide sichtbar
|
||||
$this->get(route('admin.inventory.raw-material-stock.index', ['scope' => 'all']))
|
||||
->assertSuccessful()
|
||||
->assertSee('AP20-InRezeptur')
|
||||
->assertDontSee('AP20-Neuentwicklung');
|
||||
->assertSee('AP20-Neuentwicklung');
|
||||
});
|
||||
|
||||
test('letzter netto-preis je lieferant kommt aus dem neuesten einkauf', function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue