From bcbbb1ecb96a591f0182df1d82bda88832041d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 7 Mar 2026 22:01:50 +0100 Subject: [PATCH] Add a flash notice when automatically creating a part lot from scan --- src/Controller/PartController.php | 3 +++ translations/messages.en.xlf | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/Controller/PartController.php b/src/Controller/PartController.php index 9b0f880e..eb80d9bc 100644 --- a/src/Controller/PartController.php +++ b/src/Controller/PartController.php @@ -301,6 +301,9 @@ final class PartController extends AbstractController $partLot->setUserBarcode($lotUserBarcode !== null ? (string)$lotUserBarcode : ''); $new_part->addPartLot($partLot); + + $this->addFlash('notice', t('part.create_from_info_provider.lot_filled_from_barcode')); + } diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index bcd07331..6ff969ae 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -12941,5 +12941,11 @@ Buerklin-API Authentication server: Backup download allowed + + + part.create_from_info_provider.lot_filled_from_barcode + [Part_lot] created from barcode: Please check if the data is correct and desired. + +