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

@ -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: [