Skip to content
Snippets Groups Projects
Commit f83a5f97 authored by Gerhard Bachmaier's avatar Gerhard Bachmaier
Browse files

Fill new table fields of districtcontact when assigning a district

parent 155dcb2d
No related branches found
No related tags found
No related merge requests found
......@@ -155,15 +155,15 @@ DistrictUtils.assignDistrict = function (pDistrictId, pAppliedFilter)
"STATUS",
"VALID_FROM",
"VALID_UNTIL",
"ORIGIN"/*,
"ORIGIN",
"USER_NEW",
"DATE_NEW"*/
"DATE_NEW"
];
var updateArray = [];
var colsUpdate = [
"STATUS"/*,
"STATUS",
"USER_EDIT",
"DATE_EDIT"*/
"DATE_EDIT"
];
//Anlegen der Firmen-Betreuer-Datensätze in der Tabelle DISTRICTCONTACT
......@@ -201,9 +201,9 @@ DistrictUtils.assignDistrict = function (pDistrictId, pAppliedFilter)
arrResponsibleIds[j][2],
arrResponsibleIds[j][3],
arrResponsibleIds[j][4],
$KeywordRegistry.districtOrigin$auto()/*,
$KeywordRegistry.districtOrigin$auto(),
vars.get("$sys.user"),
vars.get("$sys.date")*/
vars.get("$sys.date")
];
insertArray.push(["DISTRICTCONTACT", colsInsert, null, valsInsert]);
}
......@@ -219,9 +219,9 @@ DistrictUtils.assignDistrict = function (pDistrictId, pAppliedFilter)
for (var l=0; l<arrExistingIds.length; l++)
{
var valsUpdate = [
$KeywordRegistry.contactStatus$inReview()/*,
$KeywordRegistry.contactStatus$inReview(),
vars.get("$sys.user"),
vars.get("$sys.date")*/
vars.get("$sys.date")
];
var condition = newWhere("DISTRICTCONTACT.DISTRICTCONTACTID", arrExistingIds[l][0]);
updateArray.push(["DISTRICTCONTACT", colsUpdate, null, valsUpdate, condition.build()]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment