Skip to content
Snippets Groups Projects
Commit a036b0ef authored by Anton Bagliy's avatar Anton Bagliy
Browse files

FIX: readability in office bill group filter #50

parent 219834af
Branches
Tags
No related merge requests found
...@@ -85,6 +85,12 @@ class OptionLoader { ...@@ -85,6 +85,12 @@ class OptionLoader {
*/ */
let getGroupOption = (data) => { let getGroupOption = (data) => {
let str = `группа ${data.GroupNum}`; let str = `группа ${data.GroupNum}`;
if (data.SpecName) {
str += " - ";
str += data.SpecName;
}
if (data.FormID === 'заочная') { if (data.FormID === 'заочная') {
str = str+' ЗО'; str = str+' ЗО';
} }
...@@ -92,10 +98,6 @@ let getGroupOption = (data) => { ...@@ -92,10 +98,6 @@ let getGroupOption = (data) => {
str = str+' ВО'; str = str+' ВО';
} }
if (data.SpecName) {
str += " - ";
str += data.SpecName;
}
return `<option value='${data.ID}'>${str}</option>`; return `<option value='${data.ID}'>${str}</option>`;
}; };
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment