YKPN#55980 Goedkeuring facturen op basis van contractscope
svn path=/Website/trunk/; revision=41368
This commit is contained in:
@@ -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, "<");
|
||||
str = str.replace(/>/g, ">");
|
||||
str = str.replace(/"/g, """);
|
||||
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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user