Bugfix date fattura

This commit is contained in:
Thomas Zilio 2019-09-27 18:11:30 +02:00
parent f22428d442
commit d497ebc4c9
1 changed files with 11 additions and 13 deletions

View File

@ -156,19 +156,6 @@ if (empty($record['is_fiscale'])) {
{[ "type": "date", "label": "<?php echo tr('Data competenza'); ?>", "name": "data_competenza", "required": 0, "value": "$data_competenza$", "min-date": "$data_registrazione$" ]}
</div>
<script type="text/javascript">
$(document).ready(function () {
$("#data_registrazione").on("dp.change", function (e) {
var data = $("#data_competenza");
data.data("DateTimePicker").minDate(e.date);
if(data.data("DateTimePicker").date() < e.date){
data.data("DateTimePicker").date(e.date);
}
})
});
</script>
<?php
} ?>
@ -789,4 +776,15 @@ $(".btn-sm[data-toggle=\"tooltip\"]").each(function() {
});
});
});
$(document).ready(function () {
$("#data_registrazione").on("dp.change", function (e) {
var data = $("#data_competenza");
data.data("DateTimePicker").minDate(e.date);
if(data.data("DateTimePicker").date() < e.date){
data.data("DateTimePicker").date(e.date);
}
})
});
</script>';