modelo sale con hasMany

This commit is contained in:
Javi Gallego 2018-03-20 14:01:46 +01:00
parent c0014ef468
commit e93daa9299
4 changed files with 3948 additions and 5 deletions

View File

@ -1,6 +1,13 @@
Tickets: Tickets
Amount: Importe
Basic data: Datos básicos
Description: Descripción
Discount: Descuento
Item: Articulo
Notes: Notas
Observation type: Tipo de observación
Description: Descripción
The observation type must be unique: El tipo de observación debe ser único
Price: Precio
Quantity: Cantidad
Sale: Lineas del pedido
Some fields are invalid: Algunos campos no son válidos
The observation type must be unique: El tipo de observación debe ser único
Tickets: Tickets

3934
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,7 @@
"fs-extra": "^5.0.0",
"material-design-lite": "^1.3.0",
"mg-crud": "^1.1.2",
"npm": "^5.7.1",
"oclazyload": "^0.6.3",
"require-yaml": "0.0.1",
"validator": "^6.2.1"

View File

@ -41,6 +41,11 @@
"foreignKey": "itemFk",
"required": true
},
"itemTag": {
"type": "hasMany",
"model": "ItemTag",
"foreignKey": "itemFk"
},
"ticket": {
"type": "belongsTo",
"model": "Ticket",