From 88e35be957680a98e2452b0be33bbc4000ce49e0 Mon Sep 17 00:00:00 2001 From: loviuz Date: Tue, 26 Nov 2019 16:12:30 +0100 Subject: [PATCH] Fix calcolo e limitazioni data competenza --- modules/fatture/edit.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/fatture/edit.php b/modules/fatture/edit.php index 05b48361b..3c6caa4a5 100644 --- a/modules/fatture/edit.php +++ b/modules/fatture/edit.php @@ -788,6 +788,15 @@ $(document).ready(function () { if(data.data("DateTimePicker").date() < e.date){ data.data("DateTimePicker").date(e.date); } - }) + }); + + $("#data").on("dp.change", function (e) { + var data_competenza = $("#data_competenza"); + data_competenza.data("DateTimePicker").minDate(e.date); + + if(data_competenza.data("DateTimePicker").date() < e.date){ + data_competenza.data("DateTimePicker").date(e.date); + } + }); }); ';