diff --git a/assets/ckeditor/plugins/PartDBLabel/PartDBLabelUI.js b/assets/ckeditor/plugins/PartDBLabel/PartDBLabelUI.js index 91d20ace..03737dae 100644 --- a/assets/ckeditor/plugins/PartDBLabel/PartDBLabelUI.js +++ b/assets/ckeditor/plugins/PartDBLabel/PartDBLabelUI.js @@ -76,6 +76,7 @@ const PLACEHOLDERS = [ ['[[FOOTPRINT_FULL]]', 'Footprint (Full path)'], ['[[MASS]]', 'Mass'], ['[[MPN]]', 'Manufacturer Product Number (MPN)'], + ['[[IPN]]', 'Internal Part Number (IPN)'], ['[[TAGS]]', 'Tags'], ['[[M_STATUS]]', 'Manufacturing status'], ['[[DESCRIPTION]]', 'Description'], diff --git a/assets/ckeditor/plugins/PartDBLabel/lang/de.js b/assets/ckeditor/plugins/PartDBLabel/lang/de.js index 3cc43dc5..53007a0a 100644 --- a/assets/ckeditor/plugins/PartDBLabel/lang/de.js +++ b/assets/ckeditor/plugins/PartDBLabel/lang/de.js @@ -39,6 +39,7 @@ Object.assign( window.CKEDITOR_TRANSLATIONS[ 'de' ].dictionary, { 'Footprint (Full path)': 'Footprint (Vollständiger Pfad)', 'Mass': 'Gewicht', 'Manufacturer Product Number (MPN)': 'Hersteller Produktnummer (MPN)', + 'Internal Part Number (IPN)': 'Internal Part Number (IPN)', 'Tags': 'Tags', 'Manufacturing status': 'Herstellungsstatus', 'Description': 'Beschreibung', diff --git a/src/Services/LabelSystem/PlaceholderProviders/PartProvider.php b/src/Services/LabelSystem/PlaceholderProviders/PartProvider.php index 4174c623..eb9d7078 100644 --- a/src/Services/LabelSystem/PlaceholderProviders/PartProvider.php +++ b/src/Services/LabelSystem/PlaceholderProviders/PartProvider.php @@ -96,6 +96,10 @@ final class PartProvider implements PlaceholderProviderInterface return $part->getManufacturerProductNumber(); } + if ('[[IPN]]' === $placeholder) { + return $part->getIpn() ?? ''; + } + if ('[[TAGS]]' === $placeholder) { return $part->getTags(); }