|
@@ -764,7 +764,7 @@ |
|
|
block discarded – undo |
|
764
|
764
|
|
|
765
|
765
|
// If the previous calculation gave us a start date different than the original start date, then we need to skip to the first occurrence |
|
766
|
766
|
if (($rtype == IDC_RCEV_PAT_ORB_MONTHLY && ((int) $this->recur["monthday"]) < $curmonthday) || |
|
767
|
|
- ($rtype == IDC_RCEV_PAT_ORB_YEARLY && ($selmonth != $curmonth || ($selmonth == $curmonth && ((int) $this->recur["monthday"]) < $curmonthday)))) { |
|
|
767
|
+ ($rtype == IDC_RCEV_PAT_ORB_YEARLY && ($selmonth != $curmonth || ($selmonth == $curmonth && ((int) $this->recur["monthday"]) < $curmonthday)))) { |
|
768
|
768
|
if ($rtype == IDC_RCEV_PAT_ORB_YEARLY) { |
|
769
|
769
|
if ($curmonth > $selmonth) {// go to next occurrence in 'everyn' months minus difference in first occurrence and original date |
|
770
|
770
|
$count = $everyn - ($curmonth - $selmonth); |
Please login to merge, or discard this patch.