|
|
|
@ -341,10 +341,15 @@ $(document).ready(function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$('#ra_date_material').datepicker({ |
|
|
|
|
format: 'dd-mm-yyyy', // Set the desired format
|
|
|
|
|
autoclose: true // Close the datepicker when a date is selected
|
|
|
|
|
}); |
|
|
|
|
$("#form_report_activity_material").on("submit", function (e) { |
|
|
|
|
e.preventDefault(); |
|
|
|
|
var formData = new FormData(this); |
|
|
|
|
let formattedDate = moment(formData.get("report_date"), "DD-MM-YYYY").format("YYYY-MM-DD"); |
|
|
|
|
formData.set('report_date', formattedDate); |
|
|
|
|
formData.append("activity_id", activityId); |
|
|
|
|
formData.append("assign_material_id", assignMaterialId); |
|
|
|
|
let idRa = $("#id_ra_material").val(); |
|
|
|
|