Show externally billed domains
This commit is contained in:
@@ -6,11 +6,13 @@
|
||||
<dt>Domain Name</dt>
|
||||
<dd><?php echo $o->name(); ?></dd>
|
||||
|
||||
<dt>Domain Expire</dt>
|
||||
<dd><?php echo $o->display('domain_expire'); ?></dd>
|
||||
<?php if (! $o->service->external_billing) : ?>
|
||||
<dt>Domain Expire</dt>
|
||||
<dd><?php echo $o->display('domain_expire'); ?></dd>
|
||||
|
||||
<dt>Domain Auth Password</dt>
|
||||
<dd><?php echo ! $o->service->expiring() ? $o->display('registrar_auth_password') : 'EXPIRED'; ?></dd>
|
||||
<dt>Domain Auth Password</dt>
|
||||
<dd><?php echo ! $o->service->expiring() ? $o->display('registrar_auth_password') : 'EXPIRED'; ?></dd>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($x=$o->manage_button()) : ?>
|
||||
<dt>Registrar</dt>
|
||||
@@ -22,5 +24,13 @@
|
||||
<dd><?php echo $x; ?></dd>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($o->service->external_billing) : ?>
|
||||
<dt>Provider</dt>
|
||||
<dd><?php echo HTML::anchor($o->registrar->whitelabel_url,NULL); ?></dd>
|
||||
<dt>Username</dt>
|
||||
<dd><?php echo $o->registrar_username; ?></dd>
|
||||
<dt>Password</dt>
|
||||
<dd><?php echo $o->registrar_password; ?></dd>
|
||||
<?php endif ?>
|
||||
</div> <!-- dl-horizontal -->
|
||||
</fieldset>
|
||||
|
Submodule modules/lnApp updated: bf3e9b1c78...6d49edd8a1
@@ -52,6 +52,9 @@ class Model_Service extends ORM_OSB {
|
||||
'date_next_invoice'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
),
|
||||
'external_billing'=>array(
|
||||
array('StaticList_YesNo::get',array(':value',TRUE)),
|
||||
),
|
||||
'price_override'=>array(
|
||||
array('Currency::display',array(':value')),
|
||||
),
|
||||
|
@@ -38,7 +38,7 @@ abstract class Model_Service_Plugin extends ORM_OSB {
|
||||
*/
|
||||
protected function manage() {
|
||||
// Dont show the manage button for expired or inactive services
|
||||
if (! $this->service->status OR $this->service->expiring())
|
||||
if (! $this->service->status OR $this->service->expiring() OR $this->service->external_billing)
|
||||
return FALSE;
|
||||
|
||||
static $x = '';
|
||||
|
@@ -6,32 +6,38 @@
|
||||
<dt>Account</dt>
|
||||
<dd><?php printf('%s (%s)',$o->account->name(),$o->account->accnum()); ?></dd>
|
||||
|
||||
<dt>Service Active</dt>
|
||||
<dd><?php echo $o->display('status'); ?></dd>
|
||||
<?php if ($o->external_billing) : ?>
|
||||
<dt>External Billed</dt>
|
||||
<dd><?php echo $o->display('external_billing'); ?></dd>
|
||||
|
||||
<?php else : ?>
|
||||
<dt>Service Active</dt>
|
||||
<dd><?php echo $o->display('status'); ?></dd>
|
||||
|
||||
<dt>Billing Period</dt>
|
||||
<dd><?php echo $o->display('recur_schedule');?></dd>
|
||||
<dt>Billing Period</dt>
|
||||
<dd><?php echo $o->display('recur_schedule');?></dd>
|
||||
|
||||
<dt>Cost</dt>
|
||||
<dd><?php echo (! is_null($o->price_override) ? sprintf('<strike>%s</strike> ',$o->price(TRUE,TRUE,TRUE)) : ''). $o->price(TRUE,TRUE); if ($o->pending_change()) echo ' *'; ?></dd>
|
||||
<dt>Cost</dt>
|
||||
<dd><?php echo (! is_null($o->price_override) ? sprintf('<strike>%s</strike> ',$o->price(TRUE,TRUE,TRUE)) : ''). $o->price(TRUE,TRUE); if ($o->pending_change()) echo ' *'; ?></dd>
|
||||
|
||||
<!-- @todo -->
|
||||
<?php if (is_null($o->price) OR ($o->price<=$o->product->price($o->price_group,$o->recur_schedule,'base'))) : ?>
|
||||
<dt>Service</dt>
|
||||
<dd><?php echo HTML::anchor('product/view/'.$o->product_id,$o->product->title()); ?></dd>
|
||||
<?php if (is_null($o->price) OR ($o->price<=$o->product->price($o->price_group,$o->recur_schedule,'base'))) : ?>
|
||||
<dt>Service</dt>
|
||||
<dd><?php echo HTML::anchor('product/view/'.$o->product_id,$o->product->title()); ?></dd>
|
||||
<?php endif ?>
|
||||
|
||||
<dt>Invoiced To</dt>
|
||||
<dd><?php echo $o->invoiced_to(TRUE); ?></dd>
|
||||
|
||||
<dt>Paid To</dt>
|
||||
<dd><?php echo $o->paid_to(TRUE); ?></dd>
|
||||
|
||||
<dt>Date Next Invoice</dt>
|
||||
<dd><?php printf($o->suspend_billing ? '<strike>%s</strike>' : '%s',$o->display('date_next_invoice')); ?></dd>
|
||||
|
||||
<dt>Current Invoices Due</dt>
|
||||
<dd><?php echo $o->due(TRUE); ?></dd>
|
||||
<?php endif ?>
|
||||
|
||||
<dt>Invoiced To</dt>
|
||||
<dd><?php echo $o->invoiced_to(TRUE); ?></dd>
|
||||
|
||||
<dt>Paid To</dt>
|
||||
<dd><?php echo $o->paid_to(TRUE); ?></dd>
|
||||
|
||||
<dt>Date Next Invoice</dt>
|
||||
<dd><?php printf($o->suspend_billing ? '<strike>%s</strike>' : '%s',$o->display('date_next_invoice')); ?></dd>
|
||||
|
||||
<dt>Current Invoices Due</dt>
|
||||
<dd><?php echo $o->due(TRUE); ?></dd>
|
||||
</div> <!-- /dl-horizontal -->
|
||||
</fieldset>
|
||||
|
||||
@@ -71,7 +77,7 @@
|
||||
</div> <!-- /span -->
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($o->status) : ?>
|
||||
<?php if ($o->status AND ! $o->external_billing) : ?>
|
||||
<div class="span5">
|
||||
<fieldset>
|
||||
<legend>Next Invoice Charges</legend>
|
||||
|
Reference in New Issue
Block a user