FSN#37633 PLATO kosten uitvermenigvuldigen in dialoogje
svn path=/Website/trunk/; revision=30598
This commit is contained in:
@@ -506,10 +506,15 @@ if (srtcont_key > 0)
|
||||
|
||||
function calcKosten(number)
|
||||
{
|
||||
if (number == 1) number = "";
|
||||
var kosten = parseFloat($("#kosten" + number).val().replace(',', '.'));
|
||||
if ($("#kosten" + number).val() != '' && !isNaN(kosten))
|
||||
{
|
||||
$("#kosten" + number).val(num2currEditable(kosten));
|
||||
<% if (aantal > 1) { %>
|
||||
var txt = "* <%=aantal%> = " + num2curr(<%=aantal%> * kosten);
|
||||
$("#totkosten" + number).text(txt);
|
||||
<% } %>
|
||||
}
|
||||
}
|
||||
|
||||
function calcUren()
|
||||
@@ -533,7 +538,12 @@ if (srtcont_key > 0)
|
||||
else
|
||||
$("#totmat").text("");
|
||||
}
|
||||
$(calcMateriaal); // initieel vullen
|
||||
$(function () {
|
||||
calcMateriaal(); // initieel vullen
|
||||
calcKosten(1);
|
||||
calcKosten(2);
|
||||
calcKosten(3);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -797,7 +807,8 @@ if (srtcont_key > 0)
|
||||
{ datatype: "currency",
|
||||
html: "onBlur='calcKosten(1)'",
|
||||
readonly: !this_ins.canChangeXcp && !this_ins.hasAnyWriteXcp,
|
||||
suppressEmpty: !this_ins.canChangeXcp && !this_ins.hasAnyWriteXcp
|
||||
suppressEmpty: !this_ins.canChangeXcp && !this_ins.hasAnyWriteXcp,
|
||||
reartext: " <span id='totkosten1'></span>"
|
||||
});
|
||||
if (ins_xcp_active_cost & 2)
|
||||
RWFIELDTR("kosten2",
|
||||
@@ -807,7 +818,8 @@ if (srtcont_key > 0)
|
||||
{ datatype: "currency",
|
||||
html: "onBlur='calcKosten(2)'",
|
||||
readonly: !this_ins.canChangeXcp && !this_ins.hasAnyWriteXcp,
|
||||
suppressEmpty: !this_ins.canChangeXcp && !this_ins.hasAnyWriteXcp
|
||||
suppressEmpty: !this_ins.canChangeXcp && !this_ins.hasAnyWriteXcp,
|
||||
reartext: " <span id='totkosten2'></span>"
|
||||
});
|
||||
if (ins_xcp_active_cost & 4)
|
||||
RWFIELDTR("kosten3",
|
||||
@@ -817,7 +829,8 @@ if (srtcont_key > 0)
|
||||
{ datatype: "currency",
|
||||
html: "onBlur='calcKosten(3)'",
|
||||
readonly: !this_ins.canChangeXcp && !this_ins.hasAnyWriteXcp,
|
||||
suppressEmpty: !this_ins.canChangeXcp && !this_ins.hasAnyWriteXcp
|
||||
suppressEmpty: !this_ins.canChangeXcp && !this_ins.hasAnyWriteXcp,
|
||||
reartext: " <span id='totkosten3'></span>"
|
||||
});
|
||||
if (ins_xcp_active_cost & 8)
|
||||
RWFIELDTR("materiaal",
|
||||
|
||||
Reference in New Issue
Block a user