Author: benj
Date: Thu Jun 16 15:54:05 2016
New Revision: 1712

URL: http://svn.gna.org/viewcvs/gdtc?rev=1712&view=rev
Log:
Unfuck coherence test


Modified:
    trunk/gdtc/include/coherence.php

Modified: trunk/gdtc/include/coherence.php
URL: 
http://svn.gna.org/viewcvs/gdtc/trunk/gdtc/include/coherence.php?rev=1712&r1=1711&r2=1712&view=diff
==============================================================================
--- trunk/gdtc/include/coherence.php    (original)
+++ trunk/gdtc/include/coherence.php    Thu Jun 16 15:54:05 2016
@@ -433,9 +433,9 @@
       $date2 = new DateTime($end_date);
       $interval = $date1->diff($date2);
       $months = $interval->format('%m') + $interval->format('%y')*12;
-      #if ( date_format($date1, 'd' ) > 5 ) $months--;
+      if ( date_format($date1, 'd' ) > 5 ) $months--;
       if ( date_format($date2, 'd' ) >= 5 ) $months++;
-      if ( date_format($date1, 'd' ) == date_format($date2, 'd' ) ) $months--;
+      #if ( date_format($date1, 'd' ) == date_format($date2, 'd' ) ) $months--;
       return $months * $result [ 'prelevement_amount' ] + $result [ 
'cbrecur_prorata' ];
 }
 


_______________________________________________
Gdtc-commits mailing list
[email protected]
https://mail.gna.org/listinfo/gdtc-commits

Reply via email to