Rework service, change module_method configuration
This commit is contained in:
@@ -1,80 +1,84 @@
|
||||
<!-- @todo NEEDS TO BE TRANSLATED -->
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<!-- Service Information -->
|
||||
<table class="box-full">
|
||||
<tr>
|
||||
<td style="width: 40%;">Account</td>
|
||||
<td style="width: 60%;" class="data"><?php printf('%s (%s)',$so->account->name(),$so->account->accnum()); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service Active</td>
|
||||
<td class="data"><?php echo $so->display('status'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Billing Period</td>
|
||||
<td class="data"><?php echo $so->display('recur_schedule');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cost</td>
|
||||
<td class="data"><?php echo $so->price(TRUE,TRUE); if ($so->pending_change()) echo ' *'; ?></td>
|
||||
</tr>
|
||||
<?php if (is_null($so->price) OR ($so->price<=$so->product->price($so->price_group,$so->recur_schedule,'price_base'))) { ?>
|
||||
<tr>
|
||||
<td>Service</td>
|
||||
<td class="data"><?php echo HTML::anchor('product/view/'.$so->product_id,$so->product->title()); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td>Date Next Invoice</td>
|
||||
<td class="data"><?php echo $so->display('date_next_invoice'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Current Invoices Due</td>
|
||||
<td class="data"><?php echo Currency::display($so->account->invoices_due_total()); ?></td>
|
||||
</tr>
|
||||
<?php if ($so->service_billing->loaded()) { ?>
|
||||
<tr>
|
||||
<td>Direct Debit</td>
|
||||
<td class="data"><?php echo $so->service_billing->checkout->name; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<!-- END Service Information -->
|
||||
</td>
|
||||
<td style="vertical-align: top;">
|
||||
<!-- Product Summary Info -->
|
||||
<?php echo $so->product_feature_summary(); ?>
|
||||
<!-- END Product Summary Info -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<?php echo $so->service_view(); ?>
|
||||
<br/>
|
||||
<table class="box-left" width="50%">
|
||||
<tr>
|
||||
<td class="head" colspan="2">Invoices for this service</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Number</td>
|
||||
<td>Invoice Date</td>
|
||||
<td>Due Date</td>
|
||||
<td>Total</td>
|
||||
<td>Balance</td>
|
||||
</tr>
|
||||
<?php $i=0; foreach ($so->invoice->distinct('id')->order_by('id DESC')->find_all() as $io) { ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="icon" width="20px"><?php echo HTML::anchor(URL::link('user','invoice/download/'.$io->id),HTML::image('media/img/gnome-pdf.png',array('alt'=>_('Download'),'width'=>20))); ?></td>
|
||||
<td class="data"><?php echo HTML::anchor(URL::link('user','invoice/view/'.$io->id),$io->id()); ?></td>
|
||||
<td class="data"><?php echo $io->display('date_orig'); ?></td>
|
||||
<td class="data"><?php echo $io->display('due_date'); ?></td>
|
||||
<td class="data"><?php echo $io->total(TRUE); ?></td>
|
||||
<td class="data"><?php echo $io->due(TRUE); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<div class="row">
|
||||
<fieldset class="span5">
|
||||
<legend>Service Information</legend>
|
||||
|
||||
<div class="dl-horizontal">
|
||||
|
||||
<dt>Account</dt>
|
||||
<dd><?php printf('%s (%s)',$o->account->name(),$o->account->accnum()); ?></dd>
|
||||
|
||||
<dt>Service Active</dt>
|
||||
<dd><?php echo $o->label_bool('status',TRUE); ?></dd>
|
||||
|
||||
<dt>Billing Period</dt>
|
||||
<dd><?php echo $o->display('recur_schedule');?></dd>
|
||||
|
||||
<dt>Cost</dt>
|
||||
<dd><?php echo $o->price(TRUE,TRUE); if ($o->pending_change()) echo ' *'; ?></dd>
|
||||
|
||||
<?php if (is_null($o->price) OR ($o->price<=$o->product->price($o->price_group,$o->recur_schedule,'price_base'))) : ?>
|
||||
<dt>Service</dt>
|
||||
<dd><?php echo HTML::anchor('product/view/'.$o->product_id,$o->product->title()); ?></dd>
|
||||
<?php endif ?>
|
||||
|
||||
<dt>Date Next Invoice</dt>
|
||||
<dd><?php echo $o->display('date_next_invoice'); ?></dd>
|
||||
|
||||
<dt>Current Invoices Due</dt>
|
||||
<dd><?php echo $o->due(TRUE); ?></dd>
|
||||
|
||||
</div> <!-- /dl-horizontal -->
|
||||
</fieldset>
|
||||
|
||||
<?php if ($o->product->feature_summary()) :
|
||||
echo $o->product->feature_summary();
|
||||
endif ?>
|
||||
|
||||
</div> <!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<?php echo $o->details('service_view'); ?>
|
||||
</div> <!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<?php if ($o->service_billing->loaded()) : ?>
|
||||
<fieldset class="span5">
|
||||
<legend>Automatic Payment Details</legend>
|
||||
|
||||
<dt><?php echo $o->service_billing->checkout->display('name'); ?></dt>
|
||||
<dd> </dd>
|
||||
|
||||
</fieldset>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($o->charges()) : ?>
|
||||
<fieldset class="span5">
|
||||
<legend>Service Charges to Bill: <?php echo $o->charges(TRUE,TRUE); ?></legend>
|
||||
|
||||
<?php echo Table::factory()
|
||||
->data($o->charge_list(TRUE))
|
||||
->columns(array(
|
||||
'date_orig'=>'Date',
|
||||
'description'=>'Description',
|
||||
'total(TRUE)'=>'Amount',
|
||||
)); ?>
|
||||
|
||||
</fieldset>
|
||||
<?php endif ?>
|
||||
|
||||
<fieldset class="span5">
|
||||
<legend>Invoices for this Service</legend>
|
||||
<?php echo Table::factory()
|
||||
->data($o->invoice_list())
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date',
|
||||
'due_date'=>'Due',
|
||||
'total(TRUE)'=>'Amount',
|
||||
'due(TRUE)'=>'Due',
|
||||
))
|
||||
->prepend(array(
|
||||
'id'=>array('url'=>URL::link('user','invoice/download/')),
|
||||
)); ?>
|
||||
</fieldset>
|
||||
</div> <!-- /row -->
|
||||
|
Reference in New Issue
Block a user