models
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javi Gallego 2021-06-08 08:04:38 +02:00
parent d7bb6cb184
commit 8878a2280a
4 changed files with 112 additions and 0 deletions

View File

@ -2,6 +2,9 @@
"InvoiceIn": {
"dataSource": "vn"
},
"InvoiceInTax": {
"dataSource": "vn"
},
"InvoiceInDueDay": {
"dataSource": "vn"
},

View File

@ -0,0 +1,55 @@
{
"name": "InvoiceIn",
"base": "Loggable",
"log": {
"model": "InvoiceInLog"
},
"options": {
"mysql": {
"table": "invoiceIn"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"taxableBase": {
"type": "number"
},
"foreignValue": {
"type": "number"
},
"created": {
"type": "date"
}
},
"relations": {
"sageWithholding": {
"type": "belongsTo",
"model": "SageWithholding",
"foreignKey": "withholdingSageFk"
},
"invoiceIn": {
"type": "belongsTo",
"model": "InvoiceIn",
"foreignKey": "invoiceInFk"
},
"expence": {
"type": "belongsTo",
"model": "Expence",
"foreignKey": "expenceFk"
},
"tiposIva": {
"type": "belongsTo",
"model": "TiposIva",
"foreignKey": "taxTypeSageFk"
},
"transactionTypeSage": {
"type": "belongsTo",
"model": "TiposTransacciones",
"foreignKey": "transactionTypeSageFk"
}
}
}

View File

@ -0,0 +1,30 @@
{
"name": "SageIvaType",
"options": {
"mysql": {
"table": "sage.TiposIva"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier",
"mysql": {
"columnName": "CodigoIva"
}
},
"description": {
"type": "string",
"mysql": {
"columnName": "Iva"
}
},
"rate": {
"type": "number",
"mysql": {
"columnName": "PorcentajeIva"
}
}
}
}

View File

@ -0,0 +1,24 @@
{
"name": "sageTransactionType",
"options": {
"mysql": {
"table": "sage.TiposTransacciones"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier",
"mysql": {
"columnName": "CodigoTransaccion"
}
},
"description": {
"type": "string",
"mysql": {
"columnName": "Transaccion"
}
}
}
}