Version 1

Rubrique libre DEDUCSAL

Le problème vient de la formule MTHRSNIMP

Elle est plafonnée à zéro donc quand il y a une régul négative, ca ne le prend pas en compte

Alors que MTHRSIMP n'est pas plafonnée.

Modification de MTHRSNIMP

Avant

maximum(0;
   ([BC_HRS.MONTANT]+[BC_RTT.MONTANT])*(-1)
   +
   minimum(0;
          (histocumul([BC_HRS.MONTANT])+[BC_HRS.MONTANT]
          +histocumul([BC_RTT.MONTANT])+[BC_RTT.MONTANT]
          +maximum(8037;CONSTANTE(GENERAL.EXOHSUP)))
          )
  )

Après

   ([BC_HRS.MONTANT]+[BC_RTT.MONTANT])*(-1)
   +
   minimum(0;
          (histocumul([BC_HRS.MONTANT])+[BC_HRS.MONTANT]
          +histocumul([BC_RTT.MONTANT])+[BC_RTT.MONTANT]
          +maximum(8037;CONSTANTE(GENERAL.EXOHSUP)))
          )

 

 


Revision #2
Created 1 October 2026 13:25:17 by Valéry HUMEZ
Updated 1 October 2026 14:08:30 by Valéry HUMEZ