refs #5925 models table docuware #1889

Merged
carlossa merged 5 commits from 5925-docuwareTablet into dev 2023-12-21 13:20:04 +00:00
2 changed files with 12 additions and 7 deletions
Showing only changes of commit 2393625a48 - Show all commits

View File

@ -56,6 +56,16 @@ module.exports = Self => {
}]
});
// get tablet
const tablet = await models.userConfig.findById(id, {
include: [{
relation: 'Tablet',
scope: {
fields: ['id']
}
}]
});
// upload file
const templateJson = {
'Fields': [
@ -102,12 +112,7 @@ module.exports = Self => {
{
'FieldName': 'FILTRO_TABLET',
'ItemElementName': 'string',
'Item': 'Tablet1',
},
{
'FieldName': 'ID_TABLET',
'ItemElementName': 'integer',
'Item': userConfig.tabletFk,
'Item': tablet.id,
}
]
};

View File

@ -3,7 +3,7 @@
"base": "VnModel",
"options": {
"mysql": {
"table": "vn.docuwareTablet"
"table": "docuwareTablet"
}
},
"properties": {