correction bugs page newFiche

This commit is contained in:
Pierr0
2024-01-07 16:26:43 +01:00
parent df7599ab9b
commit fcf292e823
5 changed files with 43 additions and 29 deletions

View File

@@ -88,9 +88,24 @@ $(document).ready(function () {
calcPrixTotalFrsHorsF();
updatePrixTotal();
})
})
/**
* Refus d'un frais HF pour un comptable
*/
$(document).on('click', '.btnRefuseFraisHf', function () {
idFrais = $(this).parent().parent().attr('data-id')
fiche = $('#idFiche').attr('data-id')
etatLigne = $(this).attr('data-status')
console.log(etatLigne)
//set on refus
$.ajax({
url: "../controleurs/c_actionFiche.php?action=refusFraisHF&fiche=" + fiche + "&idFrais=" + idFrais + "&state=" + etatLigne,
method: "POST",
}).done(function () {
location.reload();
})
})
/**
* Supprimer fraisHf
*/
@@ -113,7 +128,7 @@ $(document).on('click', '.btnSuprFraisHf', function () {
* PARTIE ENVOIE DE LA FICHE
*/
$(document).on('click', '#sendFileBtn', function () {
//FRAIS FORFAITAIRES
var listeFraisF = []
$('tr.fraisForfaitaire').each(function () {