2016-11-17 11:56:35 +00:00
|
|
|
{
|
2018-10-16 11:06:58 +00:00
|
|
|
"name": "Client",
|
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
2019-03-29 06:36:26 +00:00
|
|
|
"model":"ClientLog",
|
|
|
|
"showField": "id"
|
2018-10-16 11:06:58 +00:00
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "client"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"fi": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "Fiscal indentifier"
|
|
|
|
},
|
|
|
|
"socialName": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"contact": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"street": {
|
2019-02-28 07:55:34 +00:00
|
|
|
"type": "string",
|
|
|
|
"required": true
|
2018-10-16 11:06:58 +00:00
|
|
|
},
|
|
|
|
"city": {
|
2019-02-28 07:55:34 +00:00
|
|
|
"type": "string",
|
|
|
|
"required": true
|
2018-10-16 11:06:58 +00:00
|
|
|
},
|
|
|
|
"postcode": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"phone": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"mobile": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isActive": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"credit": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"creditInsurance": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"iban": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"dueDay": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"isEqualizated": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "The client has equalization tax"
|
|
|
|
},
|
|
|
|
"isFreezed": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "The client frozen"
|
|
|
|
},
|
|
|
|
"hasToInvoiceByAddress": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "The client has to be invoiced by address"
|
|
|
|
},
|
|
|
|
"hasToInvoice": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Global invoicing enabled for the client"
|
|
|
|
},
|
|
|
|
"isToBeMailed": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Send invoices by email"
|
|
|
|
},
|
|
|
|
"hasSepaVnl": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"hasLcr": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"hasCoreVnl": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"hasCoreVnh": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isTaxDataChecked":{
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"eypbc": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"quality": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"isVies": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isRelevant": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"accountingAccount": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"created": {
|
2019-02-28 07:55:34 +00:00
|
|
|
"type": "Date"
|
2018-10-16 11:06:58 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"account": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Account",
|
|
|
|
"foreignKey": "id"
|
|
|
|
},
|
|
|
|
"payMethod": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "PayMethod",
|
|
|
|
"foreignKey": "payMethodFk"
|
|
|
|
},
|
|
|
|
"salesPerson": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "salesPersonFk"
|
|
|
|
},
|
|
|
|
"province": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Province",
|
|
|
|
"foreignKey": "provinceFk"
|
|
|
|
},
|
|
|
|
"country": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Country",
|
|
|
|
"foreignKey": "countryFk"
|
|
|
|
},
|
|
|
|
"contactChannel": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "ContactChannel",
|
|
|
|
"foreignKey": "contactChannelFk"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "ClientType",
|
2019-02-06 15:37:59 +00:00
|
|
|
"foreignKey": "clientTypeFk"
|
2018-10-16 11:06:58 +00:00
|
|
|
},
|
|
|
|
"addresses": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "Address",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"greuge": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "Greuge",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"classifications": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "CreditClassification",
|
|
|
|
"foreignKey": "client"
|
|
|
|
},
|
2019-02-06 13:56:36 +00:00
|
|
|
"defaultAddress": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Address",
|
|
|
|
"foreignKey": "defaultAddressFk"
|
|
|
|
},
|
2018-10-16 11:06:58 +00:00
|
|
|
"contacts": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ClientContact",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"bank": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "BankEntity",
|
|
|
|
"foreignKey": "bankEntityFk"
|
2018-10-16 11:32:58 +00:00
|
|
|
},
|
2019-02-06 15:37:59 +00:00
|
|
|
"defaulters": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "Defaulter",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"clientRisks": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ClientRisk",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"claimsRatio": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ClaimRatio",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
}
|
2018-10-16 11:06:58 +00:00
|
|
|
}
|
2017-05-17 06:19:03 +00:00
|
|
|
}
|