2021-02-10 14:03:11 +00:00
|
|
|
{
|
|
|
|
"name": "InvoiceIn",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "invoiceIn"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number",
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"serialNumber": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"serial": {
|
|
|
|
"type": "string"
|
2021-04-12 10:43:17 +00:00
|
|
|
},
|
|
|
|
"supplierRef": {
|
|
|
|
"type": "string"
|
2021-02-10 14:03:11 +00:00
|
|
|
},
|
|
|
|
"issued": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"isBooked": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2021-04-15 08:45:27 +00:00
|
|
|
"isVatDeductible": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"withholdingSageFk": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2021-02-10 14:03:11 +00:00
|
|
|
"booked": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"operated": {
|
|
|
|
"type": "date"
|
2021-03-02 13:59:02 +00:00
|
|
|
},
|
2021-04-15 08:45:27 +00:00
|
|
|
"bookEntried": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
2021-03-02 13:59:02 +00:00
|
|
|
"dmsFk": {
|
|
|
|
"type": "number",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "docFk"
|
|
|
|
}
|
2021-02-10 14:03:11 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
2021-04-12 14:32:13 +00:00
|
|
|
"invoiceInDueDay": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "InvoiceInDueDay",
|
|
|
|
"foreignKey": "invoiceInFk"
|
|
|
|
},
|
2021-02-10 14:03:11 +00:00
|
|
|
"company": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Company",
|
|
|
|
"foreignKey": "companyFk"
|
|
|
|
},
|
|
|
|
"supplier": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Supplier",
|
|
|
|
"foreignKey": "supplierFk"
|
|
|
|
},
|
|
|
|
"currency": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Currency",
|
|
|
|
"foreignKey": "currencyFk"
|
2021-03-02 13:59:02 +00:00
|
|
|
},
|
|
|
|
"dms": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Dms",
|
|
|
|
"foreignKey": "dmsFk"
|
2021-02-10 14:03:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|