YKPN#55980 Goedkeuring facturen op basis van contractscope

svn path=/Website/trunk/; revision=41368
This commit is contained in:
Alex Tiehuis
2019-03-07 08:32:32 +00:00
parent c743acb668
commit 2f55eb3da7
2 changed files with 13 additions and 3 deletions

View File

@@ -349,6 +349,16 @@ function FcltGetRefInfoCallback(json)
$("#tr_opdr_omschr").hide();
}
function safeHtml(s)
{
var str = new String(s);
str = str.replace(/&/g, "&");
str = str.replace(/</g, "&lt;");
str = str.replace(/>/g, "&gt;");
str = str.replace(/"/g, "&quot;");
return str;
}
if (json.show_loc)
{
var plaats_key = $("#cnt_plaats_key option:selected").val();
@@ -357,8 +367,8 @@ function FcltGetRefInfoCallback(json)
var cnt_plaats_options = "";
for (i = 0; i < json.loc_geg.length; i++)
{
cnt_plaats_options += "<option value=" + json.loc_geg[i].loc_key + ">" + json.loc_geg[i].loc_desc + "</option>"
loc_geg_string += (i > 0? ",<br>" : "") + json.loc_geg[i].loc_desc;
cnt_plaats_options += "<option value=" + json.loc_geg[i].loc_key + ">" + safeHtml(json.loc_geg[i].loc_desc) + "</option>"
loc_geg_string += (i > 0? ",<br>" : "") + safeHtml(json.loc_geg[i].loc_desc);
}
$("#loc_omschr").html(loc_geg_string);
$("#tr_loc_omschr").show();

View File

@@ -123,7 +123,7 @@ var urlMail = "../shared/queuemail.asp?pcode=FINMAI&defemail_key=-1&key=" + fin_
ROFIELDTR("fld", L("lcl_fin_referentie"), ref_info.referentie); // Referentie
ROFIELDTR("flddate", L("lcl_fin_findate"), toDateString(fin_factuur.fin_date)); // Factuur datum
ROFIELDTR("fld", L("lcl_fin_invoice_nr_extern"), fin_factuur.fin_nr != null? fin_factuur.fin_nr : ""); // Extern factuur nummer
ROFIELDTR("fld", L("lcl_cnt_location_scope"), fin_factuur.cnt_contract_plaats_key != null? fin_factuur.cnt_plaats_omschrijving : "", {suppressEmpty: true}); // contract_plaats
ROFIELDTR("fld", L("lcl_cnt_location_scope"), fin_factuur.cnt_contract_plaats_key > 0? fin_factuur.cnt_plaats_omschrijving : "", {suppressEmpty: true}); // contract_plaats
ROFIELDTR("fldshort", L("lcl_fin_divide_period"), fin_factuur.fin_boekm != null? fin_factuur.fin_boekm : ""); // Verdeelperiode
ROFIELDTR("fld", "<nobr>" + L("lcl_fin_debtor_nr") + "</nobr>", fin_factuur.fin_debiteur, {suppressEmpty: true}); // Eigen debiteurnummer
ROFIELDTR("fld", L("lcl_shared_charge_type"), fin_factuur.fin_costsrt); // Kostensoort