feat: refs #7119 add isKmTruckRate field to Vehicle model and filter
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-12-24 13:27:32 +01:00
parent 39fc196464
commit 9aa790ecfd
2 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,7 @@ module.exports = Self => {
Self.filter = async id => {
const filter = {
fields: ['id', 'numberPlate', 'tradeMark', 'model', 'm3', 'description', 'isActive', 'warehouseFk', 'companyFk', 'countryCodeFk', 'chassis', 'leasing'],
fields: ['id', 'numberPlate', 'tradeMark', 'model', 'm3', 'description', 'isActive', 'warehouseFk', 'companyFk', 'countryCodeFk', 'chassis', 'leasing', 'isKmTruckRate'],
include: [
{
relation: 'warehouse',

View File

@ -38,6 +38,9 @@
},
"leasing": {
"type": "string"
},
"isKmTruckRate": {
"type": "number"
}
},
"relations": {