Esempio n. 1
0
 function onAfterStoreSubscription($row)
 {
     if ($row->payment_method == 'os_offline' && !$row->invoice_number && OSMembershipHelper::needToCreateInvoice($row)) {
         $row->invoice_number = OSMembershipHelper::getInvoiceNumber($row);
         $row->store();
     }
 }
Esempio n. 2
0
            break;
        case 3:
            echo JText::_('OSM_CANCELLED_PENDING');
            break;
        case 4:
            echo JText::_('OSM_CANCELLED_REFUNDED');
            break;
    }
    ?>
                                    </td>							
                                    <?php 
    if ($this->config->activate_invoice_feature) {
        ?>
                                            <td class="center">
                                                <?php 
        if (OSMembershipHelper::needToCreateInvoice($row)) {
            ?>
                                                        <a href="<?php 
            echo JRoute::_('index.php?option=com_osmembership&task=download_invoice&id=' . $row->id);
            ?>
" title="<?php 
            echo JText::_('OSM_DOWNLOAD');
            ?>
"><?php 
            echo OSMembershipHelper::formatInvoiceNumber($row, $this->config);
            ?>
</a>
                                                    <?php 
        }
        ?>