Added placeholders for Part lots.

This commit is contained in:
Jan Böhmer 2020-04-17 21:10:08 +02:00
parent a4e1a17b4a
commit 16c1f84eb3
7 changed files with 226 additions and 4 deletions

View file

@ -22,6 +22,7 @@ CKEDITOR.plugins.setLang( 'partdb_label', 'de', {
label: 'Platzhalter',
'section.global': 'Global',
'section.part': 'Bauteil',
'section.part_lot': 'Bauteilbestand',
'part.id': 'Datenbank ID',
'part.name': 'Bauteilename',
'part.category': 'Kategorie',
@ -47,4 +48,11 @@ CKEDITOR.plugins.setLang( 'partdb_label', 'de', {
'global.time': 'Uhrzeit',
'global.install_name': 'Installationsname',
'global.type': 'Zieltyp',
'lot.id': 'Lot ID',
'lot.name': 'Lot Name',
'lot.comment': 'Lot Kommentar',
'lot.expiration_date': 'Ablaufdatum',
'lot.amount': 'Bestandsmenge',
'lot.location': 'Lagerort',
'lot.location_full': 'Lagerort (Ganzer Pfad)',
} );

View file

@ -22,6 +22,7 @@ CKEDITOR.plugins.setLang( 'partdb_label', 'en', {
label: 'Placeholders',
'section.global': 'Globals',
'section.part': 'Part',
'section.part_lot': 'Part lot',
'part.id': 'Database ID',
'part.name': 'Part name',
'part.category': 'Category',
@ -47,4 +48,11 @@ CKEDITOR.plugins.setLang( 'partdb_label', 'en', {
'global.time': 'Current time',
'global.install_name': 'Instance name',
'global.type': 'Target type',
'lot.id': 'Lot ID',
'lot.name': 'Lot name',
'lot.comment': 'Lot comment',
'lot.expiration_date': 'Expiration date',
'lot.amount': 'Lot amount',
'lot.location': 'Storage location',
'lot.location_full': 'Storage location (Full path)',
} );

View file

@ -24,9 +24,9 @@ const PLACEHOLDERS = {
['%%ID%%', 'part.id'],
['%%NAME%%', 'part.name'],
['%%CATEGORY%%', 'part.category'],
['%%CATEGORY_FULL', 'part.category_full'],
['%%MANUFACTURER', 'part.manufacturer'],
['%%MANUFACTURER_FULL', 'part.manufacturer_full'],
['%%CATEGORY_FULL%%', 'part.category_full'],
['%%MANUFACTURER%%', 'part.manufacturer'],
['%%MANUFACTURER_FULL%%', 'part.manufacturer_full'],
['%%FOOTPRINT%%', 'part.footprint'],
['%%FOOTPRINT_FULL%%', 'part.footprint'],
['%%MASS%%', 'part.mass'],
@ -41,6 +41,18 @@ const PLACEHOLDERS = {
['%%CREATION_DATE%%', 'part.creation_date'],
]
},
part_lot: {
label: 'section.part_lot',
entries: [
['%%LOT_ID%%', 'lot.id'],
['%%LOT_NAME%%', 'lot.name'],
['%%LOT_COMMENT%%', 'lot.comment'],
['%%EXPIRATION_DATE%%', 'lot.expiration_date'],
['%%AMOUNT%%', 'lot.amount'],
['%%LOCATION%%', 'lot.location'],
['%%LOCATION_FULL%%', 'lot.location_full'],
]
},
global: {
label: 'section.global',
entries: [