TWYN#53173 kopieeren contracten: toevoegen filters

svn path=/Website/branches/v2018.1/; revision=39028
This commit is contained in:
Erik Groener
2018-09-03 09:29:54 +00:00
parent 4efecae4ca
commit b8683ae3dd
3 changed files with 3 additions and 13 deletions

View File

@@ -325,14 +325,9 @@ Bij een nieuwe subopdracht is het opdrachtnummer gelijk aan die van de opdracht
}
*/
}
else
{
__Log("Wat heb ik nu bij een insert?");
__Log(obj);
}
%>
<script type="text/javascript">
<script>
var btw_data = <%=JSON.stringify(btw_data)%>;
<% if (obj.budgetdiscipline) { %> var budgetdiscipline = "<%=obj.budgetdiscipline.id%>"; <% } %>
<% if (obj.budgetproject) { %> var budgetproject = "<%=obj.budgetproject.id%>"; <% } %>
@@ -340,9 +335,7 @@ Bij een nieuwe subopdracht is het opdrachtnummer gelijk aan die van de opdracht
<% if (obj.costtypegroup) { %> var costtypegroup = "<%=obj.costtypegroup.id%>"; <% } %>
<% if (obj.costtype) { %> var costtype = "<%=obj.costtype.id%>"; <% } %>
<% if (obj.company) { %> var company = "<%=obj.company.id%>"; <% } %>
<% if (obj.reference) { %> var reference = "<%=obj.reference%>"; <% } %>
<% if (obj.account) { %> var account = "<%=obj.account.id%>"; <% } %>
<% if (obj.startdate) { %> var startdate = "<%=obj.startdate%>"; <% } %>
</script>
<%
}

View File

@@ -288,11 +288,6 @@ function scf_ROFIELDTR(model, fld, val, key, params)
{
ROTEXTAREATR("fldtxt", field.label, txt, params);
}
else if (field.typ == "date" && typeof txt == "string" && !isNaN(txt))
{
txt = toDateString(new Date(parseInt(txt)));
ROTEXTAREATR("fldtxt", field.label, txt, params);
}
else
{
ROFIELDTR("fldtxt", field.label, txt, params);

View File

@@ -107,6 +107,8 @@ function scaffolding_edit(model, scf_params)
if (fld in filter)
{
xxx_data[fld] = filter[fld];
if (field.typ == "date" || field.typ == "datetime")
xxx_data[fld] = new Date(parseInt(filter[fld],10));
if (field.foreign)
{ // name ook achterhalen. Voor includes is die waarschijnlijk ook wel te vinden
// in scf_params.orgmodel o.i.d. maar dit is doorgaans toch een heel goedkope query