Commit d341d019 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction pour tenir compte de toutes les heures des missions pour calculer l'indémnité.

parent 96a0c45e
Loading
Loading
Loading
Loading
+4 −4
Changes for data/ddl/view/V_EXPORT_PAIEMENT_INDEMNITES.sql: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -46,10 +46,10 @@ FROM (
		MAX(i.annee_id)              	    annee_id,
		max(p.code) 						periode_code,
		max(p.id) 							periode_id,
		MAX(hpm.total_paie)                 paie_mission,
		MAX(hpm.total_heures_a_payer)       total_heures_a_payer,
		MAX(hpm.total_heures_payees)        total_heures_payees,
		MAX(round(hpm.total_paie * 0.1,2))  montant_prime
		SUM(hpm.total_paie)                 paie_mission,
		SUM(hpm.total_heures_a_payer)       total_heures_a_payer,
		SUM(hpm.total_heures_payees)        total_heures_payees,
		SUM(round(hpm.total_paie * 0.1,2))  montant_prime
	FROM mission_prime mp
	JOIN mission m ON mp.id = m.prime_id
	JOIN intervenant i ON i.id = m.intervenant_id