diff --git a/@salix/crud/src/client/basic-data/index.html b/@salix/crud/src/client/basic-data/index.html index 1d9faafcf..df06e842a 100644 --- a/@salix/crud/src/client/basic-data/index.html +++ b/@salix/crud/src/client/basic-data/index.html @@ -1,7 +1,7 @@
Datos básicos - + @@ -9,11 +9,12 @@ - + + + - diff --git a/@salix/webpack.config.js b/@salix/webpack.config.js index 415185128..ee67c4f41 100644 --- a/@salix/webpack.config.js +++ b/@salix/webpack.config.js @@ -49,16 +49,16 @@ var config = { ] }, plugins: [], - //devtool: 'source-map' + devtool: 'source-map' }; -//if (!devMode) { +if (!devMode) { config.plugins.push ( new webpack.optimize.UglifyJsPlugin({ minimize: true, compress: { warnings: false } }) ); -//} +} module.exports = config; diff --git a/db.json b/db.json index 5a84316b7..4a58b0ac2 100644 --- a/db.json +++ b/db.json @@ -12,8 +12,8 @@ "NUf7o684TmteojFX9KmPOpaDLthjP5Def4wuy83Yjv31i43HHiWgV3FyBp6pX8Ue": "{\"id\":\"NUf7o684TmteojFX9KmPOpaDLthjP5Def4wuy83Yjv31i43HHiWgV3FyBp6pX8Ue\",\"ttl\":1209600,\"created\":\"2016-11-21T11:06:11.113Z\",\"userId\":1}" }, "Client": { - "1": "{\"name\":\"Cliente1 SL\",\"salesPerson\":1,\"fi\":\"123456789\",\"alias\":\"Cliente1\",\"dischargeDate\":\"29/11/2016\",\"contact\":\"a@a.com\",\"phone\":\"123456789\",\"quality\":\"1\",\"id\":1}", - "2": "{\"name\":\"Cliente2 SL\",\"salesPerson\":1,\"fi\":\"123456788\",\"alias\":\"Cliente2\",\"contact\":\"b@b.com\",\"phone\":\"222222222\",\"quality\":\"1\",\"id\":2}" + "1": "{\"name\":\"Cliente1 SL\",\"salesPerson\":1,\"fi\":\"123456789\",\"registerDate\":\"29/11/2016\",\"contact\":\"a@a.com\",\"phone\":\"123456789\",\"quality\":\"1\",\"id\":1}", + "2": "{\"name\":\"Cliente2 SL\",\"salesPerson\":1,\"fi\":\"123456788\",\"contact\":\"b@b.com\",\"phone\":\"222222222\",\"quality\":\"1\",\"id\":2}" } } } \ No newline at end of file diff --git a/services/client/common/models/Client.json b/services/client/common/models/Client.json index afdb9cd7c..23169de32 100644 --- a/services/client/common/models/Client.json +++ b/services/client/common/models/Client.json @@ -10,22 +10,15 @@ "name": { "type": "string", "required": "true" - }, - "salesPerson": { - "type": "Number", - "required": "true" - }, + }, "fi": { "type": "string", "description": "Fiscal indetifier" }, - "alias": { - "type": "string" - }, "socialName": { "type": "string" }, - "dischargeDate": { + "registerDate": { "type": "string" }, "contact": { @@ -40,12 +33,11 @@ "fax": { "type": "string" }, - "quality": { - "type": "string" - }, "active": { "type": "boolean" - }, + } + + /* "credit": { "type": "Number" }, @@ -70,5 +62,13 @@ "type": "boolean", "description": "Send invoices by email" } + + + "salesPerson": { + "type": "Number", + "required": "true" + },*/ + + } }