Permalink
Browse files

change in the behavior on the recurring intervals

  • Loading branch information...
1 parent 27ec95d commit 81aad9e9e431612c75a7cc85c4cbf42dd02cd6d9 @iampersistent iampersistent committed Feb 6, 2013
@@ -71,7 +71,7 @@ protected function doProcess($context, $processed)
$processed['interval'] = $this->attributes['interval'];
$processed['cycles'] = $this->attributes['cycles'];
if (!$this->attributes['startsIn']) {
- $processed['startsOn'] = new \DateTime('today +1 ' . $processed['interval']);
+ $processed['startsOn'] = new \DateTime('today +' . $processed['interval']);
} else {
$processed['startsOn'] = new \DateTime('today +' . $this->attributes['startsIn']);
}
@@ -8,7 +8,7 @@ public function testDoProcess()
{
$recurringElement = new RecurringElement();
$recurringElement->setCycles(-1);
- $recurringElement->setInterval('month');
+ $recurringElement->setInterval('1 month');
$recurringElement->setRecurringCharge('30');
$context = new \Vespolina\Entity\Pricing\PricingContext();

0 comments on commit 81aad9e

Please sign in to comment.