- i filtri non venivano correttamente salvati sui cookies (compariva null e -100)
- aggiunte tabelle accounts e circuits e movements
This commit is contained in:
@@ -23,7 +23,7 @@ const AccountSchema = new Schema({
|
||||
userId: {
|
||||
type: String,
|
||||
},
|
||||
nome_conto: {
|
||||
name: {
|
||||
type: String,
|
||||
},
|
||||
deperibile: {
|
||||
@@ -66,7 +66,7 @@ AccountSchema.pre('save', async function(next) {
|
||||
|
||||
AccountSchema.statics.getFieldsForSearch = function() {
|
||||
return [
|
||||
{field: 'nome_conto', type: tools.FieldType.string},
|
||||
{field: 'name', type: tools.FieldType.string},
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
@@ -26,6 +26,12 @@ const MovementSchema = new Schema({
|
||||
accountToId: {
|
||||
type: Number,
|
||||
},
|
||||
causal_table: {
|
||||
type: String,
|
||||
},
|
||||
causal_IdRec: {
|
||||
type: String,
|
||||
},
|
||||
amount: {
|
||||
type: Number,
|
||||
},
|
||||
|
||||
@@ -147,6 +147,7 @@ MyHospSchema.statics.executeQueryTable = function(idapp, params) {
|
||||
numMaxPeopleHosp: 1,
|
||||
accomodation: 1,
|
||||
preferences: 1,
|
||||
photos: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
note: 1,
|
||||
@@ -229,6 +230,7 @@ MyHospSchema.statics.getMyRecById = function(idapp, id) {
|
||||
numMaxPeopleHosp: 1,
|
||||
accomodation: 1,
|
||||
preferences: 1,
|
||||
photos: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
note: 1,
|
||||
@@ -276,6 +278,7 @@ MyHospSchema.statics.getMyRecById = function(idapp, id) {
|
||||
numMaxPeopleHosp: 1,
|
||||
accomodation: 1,
|
||||
preferences: 1,
|
||||
photos: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
note: 1,
|
||||
@@ -323,6 +326,7 @@ MyHospSchema.statics.getMyRecById = function(idapp, id) {
|
||||
numMaxPeopleHosp: 1,
|
||||
accomodation: 1,
|
||||
preferences: 1,
|
||||
photos: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
note: 1,
|
||||
@@ -370,6 +374,7 @@ MyHospSchema.statics.getMyRecById = function(idapp, id) {
|
||||
numMaxPeopleHosp: 1,
|
||||
accomodation: 1,
|
||||
preferences: 1,
|
||||
photos: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
note: 1,
|
||||
@@ -417,6 +422,7 @@ MyHospSchema.statics.getMyRecById = function(idapp, id) {
|
||||
numMaxPeopleHosp: 1,
|
||||
accomodation: 1,
|
||||
preferences: 1,
|
||||
photos: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
note: 1,
|
||||
|
||||
Reference in New Issue
Block a user