log en tablas invoiceIn
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Javi Gallego 2023-01-25 07:49:51 +01:00
parent 3c1f86f171
commit 1963cc2265
2 changed files with 20 additions and 8 deletions

View File

@ -1,6 +1,10 @@
{ {
"name": "InvoiceInDueDay", "name": "InvoiceInDueDay",
"base": "VnModel", "base": "Loggable",
"log": {
"model": "InvoiceInLog",
"relation": "invoiceIn"
},
"options": { "options": {
"mysql": { "mysql": {
"table": "invoiceInDueDay" "table": "invoiceInDueDay"
@ -12,9 +16,6 @@
"type": "number", "type": "number",
"description": "Identifier" "description": "Identifier"
}, },
"invoiceInFk": {
"type": "number"
},
"dueDated": { "dueDated": {
"type": "date" "type": "date"
}, },
@ -32,6 +33,11 @@
} }
}, },
"relations": { "relations": {
"invoiceIn": {
"type": "belongsTo",
"model": "InvoiceIn",
"foreignKey": "invoiceInFk"
},
"bank": { "bank": {
"type": "belongsTo", "type": "belongsTo",
"model": "Bank", "model": "Bank",

View File

@ -1,6 +1,10 @@
{ {
"name": "InvoiceInIntrastat", "name": "InvoiceInIntrastat",
"base": "VnModel", "base": "Loggable",
"log": {
"model": "InvoiceInLog",
"relation": "invoiceIn"
},
"options": { "options": {
"mysql": { "mysql": {
"table": "invoiceInIntrastat" "table": "invoiceInIntrastat"
@ -12,9 +16,6 @@
"type": "number", "type": "number",
"description": "Identifier" "description": "Identifier"
}, },
"invoiceInFk": {
"type": "number"
},
"net": { "net": {
"type": "number" "type": "number"
}, },
@ -35,6 +36,11 @@
} }
}, },
"relations": { "relations": {
"invoiceIn": {
"type": "belongsTo",
"model": "InvoiceIn",
"foreignKey": "invoiceInFk"
},
"intrastat": { "intrastat": {
"type": "belongsTo", "type": "belongsTo",
"model": "Intrastat", "model": "Intrastat",