TWYN#53173 kopieeren contracten: toevoegen filters
svn path=/Website/branches/v2018.1/; revision=39028
This commit is contained in:
@@ -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>
|
||||
<%
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user