TWYN#55483 Zelf volgorde van udr-rapportages bepalen

svn path=/Website/trunk/; revision=40543
This commit is contained in:
Alex Tiehuis
2019-01-15 12:08:09 +00:00
parent a1afe8d834
commit 2d112b8fe0

View File

@@ -131,12 +131,17 @@ function model_reportsx(usrrap_key, rapparams)
},
"graph_options": { dbs: "fac_usrrap_graph_options",
typ: "memo",
label: "Graph Options" }
};
label: "Graph Options"
},
"sequence" : { dbs: "fac_usrrap_volgnr",
typ: "number",
label: L("lcl_rap_sequence")
}
};
this.list = { columns: ["id", "name", "description"] };
this.list = { columns: ["id", "sequence", "name", "description"] };
this.search = { autosearch: true,
filters: ["id", "name", "description"]
filters: ["id", "sequence", "name", "description"]
};
this.includes = {"columns": { model: new model_reportcolumns(usrrap_key, { internal: rapparams.internal }),
@@ -237,7 +242,7 @@ function model_reportsx(usrrap_key, rapparams)
var sql = "SELECT " + query.selects.join(", ")
+ " FROM " + query.tables.join(", ")
+ (query.wheres.length ? " WHERE " + query.wheres.join(" AND " ) : "")
+ " ORDER BY 2";
+ " ORDER BY fac_usrrap_volgnr, fac_usrrap_omschrijving";
if (params.include && params.include.length)
sql += ", fac_usrrap_cols_volgnr";