Skip to content

Commit bcbbb1e

Browse files
committed
Add a flash notice when automatically creating a part lot from scan
1 parent 8727d83 commit bcbbb1e

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/Controller/PartController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ public function createFromInfoProvider(Request $request, string $providerKey, st
301301
$partLot->setUserBarcode($lotUserBarcode !== null ? (string)$lotUserBarcode : '');
302302

303303
$new_part->addPartLot($partLot);
304+
305+
$this->addFlash('notice', t('part.create_from_info_provider.lot_filled_from_barcode'));
306+
304307
}
305308

306309

translations/messages.en.xlf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12941,5 +12941,11 @@ Buerklin-API Authentication server:
1294112941
<target>Backup download allowed</target>
1294212942
</segment>
1294312943
</unit>
12944+
<unit id="b8JxfcX" name="part.create_from_info_provider.lot_filled_from_barcode">
12945+
<segment>
12946+
<source>part.create_from_info_provider.lot_filled_from_barcode</source>
12947+
<target>[Part_lot] created from barcode: Please check if the data is correct and desired.</target>
12948+
</segment>
12949+
</unit>
1294412950
</file>
1294512951
</xliff>

0 commit comments

Comments
 (0)