Warenwirtschaft: F-11 — Einkaufspreise auf der Rohstoff-Detailseite nur für Admins
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
f93b16c8f7
commit
691f763011
3 changed files with 49 additions and 9 deletions
|
|
@ -111,7 +111,11 @@ class RawMaterialStockController extends Controller
|
|||
$minAlert = $ingredient->min_stock_alert !== null ? (float) $ingredient->min_stock_alert : null;
|
||||
$leadDays = $ingredient->delivery_time_days !== null ? (int) $ingredient->delivery_time_days : null;
|
||||
|
||||
$lastPriceBySupplier = $this->stockEntryRepository->lastNetPricePerSupplier($ingredient->id);
|
||||
// Prüfung 08.09.2026 F-11: Einkaufspreise nur für Admins (wie Einkauf/Wareneingang),
|
||||
// Copyreader (Versand/Produktion) sehen die Rohstoffseite ohne Preise.
|
||||
$lastPriceBySupplier = auth()->user()->isAdmin()
|
||||
? $this->stockEntryRepository->lastNetPricePerSupplier($ingredient->id)
|
||||
: [];
|
||||
|
||||
$productStock = $this->productStockService->currentStockByProduct($ingredient->products->pluck('id')->all());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue