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

56 lines
1.3 KiB
JSON
Raw Normal View History

2021-06-08 06:04:38 +00:00
{
2021-06-09 08:20:18 +00:00
"name": "InvoiceInTax",
2021-06-08 06:04:38 +00:00
"base": "Loggable",
"log": {
"model": "InvoiceInLog"
},
"options": {
"mysql": {
2021-06-09 08:20:18 +00:00
"table": "invoiceInTax"
2021-06-08 06:04:38 +00:00
}
},
"properties": {
"id": {
"id": true,
2021-06-30 06:26:03 +00:00
"type": "number",
2021-06-08 06:04:38 +00:00
"description": "Identifier"
},
"taxableBase": {
"type": "number"
},
"foreignValue": {
"type": "number"
},
2021-06-09 08:20:18 +00:00
"expenseFk": {
"type": "number",
"mysql": {
"columnName": "expenceFk"
}
},
2021-06-08 06:04:38 +00:00
"created": {
"type": "date"
}
},
"relations": {
"invoiceIn": {
"type": "belongsTo",
"model": "InvoiceIn",
"foreignKey": "invoiceInFk"
},
2021-06-09 08:20:18 +00:00
"expense": {
2021-06-08 06:04:38 +00:00
"type": "belongsTo",
2021-06-09 08:20:18 +00:00
"model": "Expense",
"foreignKey": "expenseFk"
2021-06-08 06:04:38 +00:00
},
2021-06-09 08:20:18 +00:00
"taxTypeSage": {
2021-06-08 06:04:38 +00:00
"type": "belongsTo",
2021-06-14 07:47:04 +00:00
"model": "SageTaxType",
2021-06-08 06:04:38 +00:00
"foreignKey": "taxTypeSageFk"
},
"transactionTypeSage": {
"type": "belongsTo",
2021-06-14 07:47:04 +00:00
"model": "SageTransactionType",
2021-06-08 06:04:38 +00:00
"foreignKey": "transactionTypeSageFk"
}
}
}