Merge branch 'dev' of https://git.verdnatura.es/salix into dev

This commit is contained in:
gerard 2018-06-20 14:17:26 +02:00
commit 25d9655c0c
8 changed files with 50 additions and 11 deletions

View File

@ -1,6 +1,6 @@
FROM vn-loopback:latest FROM vn-loopback:latest
COPY pedidos /app COPY order /app
WORKDIR /app WORKDIR /app
CMD ["pm2-docker", "./server/server.js"] CMD ["pm2-docker", "./server/server.js"]

View File

@ -41,12 +41,12 @@
} }
}, },
"relations": { "relations": {
"itemFk": { "item": {
"type": "belongsTo", "type": "belongsTo",
"model": "Item", "model": "Item",
"foreignKey": "itemFk" "foreignKey": "itemFk"
}, },
"orderFk": { "order": {
"type": "belongsTo", "type": "belongsTo",
"model": "Order", "model": "Order",
"foreignKey": "orderFk" "foreignKey": "orderFk"

View File

@ -66,17 +66,17 @@
} }
}, },
"relations": { "relations": {
"agencyModeFk": { "agencyMode": {
"type": "belongsTo", "type": "belongsTo",
"model": "AgencyMode", "model": "AgencyMode",
"foreignKey": "agency_id" "foreignKey": "agency_id"
}, },
"addressFk": { "address": {
"type": "belongsTo", "type": "belongsTo",
"model": "Address", "model": "Address",
"foreignKey": "address_id" "foreignKey": "address_id"
}, },
"deliveryMethodFk": { "deliveryMethod": {
"type": "belongsTo", "type": "belongsTo",
"model": "DeliveryMethod", "model": "DeliveryMethod",
"foreignKey": "delivery_method_id" "foreignKey": "delivery_method_id"

View File

@ -1,5 +1,5 @@
{ {
"name": "vn-pedidos", "name": "vn-order",
"version": "1.0.0", "version": "1.0.0",
"main": "server/server.js", "main": "server/server.js",
"scripts": { "scripts": {
@ -12,7 +12,7 @@
"url": "https://git.verdnatura.es/salix" "url": "https://git.verdnatura.es/salix"
}, },
"license": "GPL-3.0", "license": "GPL-3.0",
"description": "vn-pedidos", "description": "vn-order",
"dependencies": { "dependencies": {
"uuid": "^3.1.0" "uuid": "^3.1.0"
} }

View File

@ -0,0 +1,39 @@
{
"name": "SaleTracking",
"base": "VnModel",
"options": {
"mysql": {
"table": "saleTracking",
"database": "vn"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
},
"isChecked": {
"type": "boolean"
},
"created": {
"type": "Date"
},
"originalQuantity": {
"type": "Number"
}
},
"relations": {
"sale": {
"type": "belongsTo",
"model": "Sale",
"foreignKey": "saleFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
}
}
}

View File

@ -37,8 +37,8 @@
}, },
"TicketWeekly": { "TicketWeekly": {
"dataSource": "vn" "dataSource": "vn"
},
"SaleTracking": {
"dataSource": "vn"
} }
} }