salix/modules/invoiceIn/back/models/invoice-in.json

108 lines
2.5 KiB
JSON
Raw Normal View History

2021-02-10 14:03:11 +00:00
{
"name": "InvoiceIn",
2021-06-03 14:14:52 +00:00
"base": "Loggable",
2021-02-10 14:03:11 +00:00
"options": {
"mysql": {
"table": "invoiceIn"
}
},
"properties": {
"id": {
"id": true,
2021-07-23 12:06:48 +00:00
"type": "number",
2021-02-10 14:03:11 +00:00
"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"
},
"booked": {
"type": "date"
},
2021-07-23 12:06:48 +00:00
"isVatDeductible": {
"type": "boolean"
},
2021-02-10 14:03:11 +00:00
"operated": {
"type": "date"
2021-03-02 13:59:02 +00:00
},
"bookEntried": {
"type": "date"
},
2021-03-02 13:59:02 +00:00
"dmsFk": {
"type": "number",
"mysql": {
"columnName": "docFk"
}
},
"deductibleExpenseFk": {
"type": "number",
"mysql": {
"columnName": "expenceFkDeductible"
}
2021-02-10 14:03:11 +00:00
}
},
"relations": {
2021-04-12 14:32:13 +00:00
"invoiceInDueDay": {
"type": "hasMany",
"model": "InvoiceInDueDay",
"foreignKey": "invoiceInFk"
2022-02-16 09:30:56 +00:00
},
"invoiceInIntrastat": {
"type": "hasMany",
"model": "InvoiceInIntrastat",
"foreignKey": "invoiceInFk"
2021-04-12 14:32:13 +00:00
},
2021-06-14 07:47:04 +00:00
"invoiceInTax": {
"type": "hasMany",
"model": "InvoiceInTax",
"foreignKey": "invoiceInFk"
},
2021-04-15 09:54:40 +00:00
"sageWithholding": {
"type": "belongsTo",
"model": "SageWithholding",
"foreignKey": "withholdingSageFk"
},
"expenseDeductible": {
"type": "belongsTo",
"model": "Expense",
"foreignKey": "deductibleExpenseFk"
},
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
}
}
}