Files
Facilitor/APPL/CNT/cnt_factuurschema.js
Jos Groot Lipman 45e7a2211b AAIT#37411 Facturatieschema / Termijnbedragen bij contracten
svn path=/Website/branches/v2016.3/; revision=32408
2017-01-17 12:28:15 +00:00

27 lines
614 B
JavaScript

/*
$Revision$
$Id$
File: cnt_factuurschema.js
*/
$(function () {
$("#generate").change(function ()
{
$("#accountingperiod").prop("disabled", $(this).prop("checked"));
$("#accountingperiod").toggleClass("required", !$(this).prop("checked"));
})
});
function pre_submit()
{
var period = $("#accountingperiod").val();
if (!$("#generate").prop("checked") && (!period || !period.match(/^\d{4}\-\d{1,2}$/)))
{
FcltMgr.alert(L("lcl_shared_validator_format"));
return false;
}
return true;
}