/**
  * A custom method within the Plugin to generate the content
  * 
  */
 function generateRecurrentInvoiceContent()
 {
     $output = '';
     $do_rec_inv = new RecurrentInvoice();
     $do_rec_inv->getRecurrentInvoiceDetail($_SESSION['do_invoice']->idinvoice);
     if ($do_rec_inv->getNumRows()) {
         $do_rec_inv->fetch();
         if ($do_rec_inv->recurrence > 1) {
             $output .= $rec_inv_text = _('This invoice repeats every') . $do_rec_inv->recurrence . " " . $do_rec_inv->recurrencetype . "s.";
         } else {
             $output .= $rec_inv_text = _('This invoice repeats') . " <i>" . _('every') . " " . $do_rec_inv->recurrencetype . "</i>.";
         }
         $output .= '<br />';
         $next_rec_inv_date = date("l F d, Y", strtotime($do_rec_inv->nextdate));
         $output .= _('The next invoice will be generated on ') . '<i>' . $next_rec_inv_date . '.</i>';
     } else {
         $this->setIsActive(false);
     }
     return $output;
 }