Hinsura
1/15/2018 - 9:29 AM

Support Funcs.

/* Float to Currency: */
LIRA({ amount: 100000000, precision: 0, group: true, symbol: true }).format();
/* result : "₺100.000.000" */

LIRA({ amount: "1000000,99", precision: 0, group: true, symbol: true }).format();
/* result : "₺1.000.001" */

LIRA({ amount: "1000000,23", precision: 0, group: true, symbol: true }).format();
/* result : "₺1.000.000" */

DOLLAR({ amount: 100000000.34, precision: 2, group: true, symbol: true }).format();
/* result: "$100,000,000.34" */

/* Int to Float: */
DOLLAR({ amount: 100000000, precision: 2, group: false, symbol: false }).format();
/* result: "100000000.00" */
var queryByIdentityNo = insureds.filter(i => i.IdentityNo === insured.IdentityNo);
var filteredInsureds = filterObject(insureds, "IdentityNo", identityNo);
var data = {
  "plugin1": $(searchPolicyForm).serializeFormToObject(),
  "plugin2": $(searchPolicyForm).serializeJSON({ checkboxUncheckedValue: "off" })
  /* normally unchecked checkboxes are ignored */
};
/* getQsParams function is in js/utils/support.js  */
/* obtains value from QS param */

/* Usage */
/* eg: http://localhost:2724/Products/RiskySickness?selectedRiskGroupId=pzt */
var qsParams = window.getQsParams();
var selectedRiskGroupId = qsParams["selectedRiskGroupId"];
if (isObjValid(selectedRiskGroupId)) {
  selectedRiskGroupId = selectedRiskGroupId.toUpperCase();
}