Added Direct Debit Amount to easily identify excess charges
This commit is contained in:
@@ -102,6 +102,7 @@ class Controller_Reseller_Service extends Controller_Service {
|
||||
'account->name()'=>'Customer',
|
||||
'date_next_invoice'=>'Next Invoice',
|
||||
'due(TRUE)'=>'Due Invoices',
|
||||
'service_billing->display("checkout_amount")'=>'Auto Pay',
|
||||
))
|
||||
->prepend(array(
|
||||
'id'=>array('url'=>URL::link('user','service/view/')),
|
||||
|
@@ -16,5 +16,11 @@ class Model_Service_Billing extends ORM_OSB {
|
||||
protected $_has_one = array(
|
||||
'checkout'=>array('far_key'=>'checkout_id','foreign_key'=>'id'),
|
||||
);
|
||||
|
||||
protected $_display_filters = array(
|
||||
'checkout_amount'=>array(
|
||||
array('Currency::display',array(':value')),
|
||||
),
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
@@ -56,6 +56,10 @@
|
||||
<div class="dl-horizontal">
|
||||
<dt>Direct Payment</dt>
|
||||
<dd><?php echo $o->service_billing->checkout->display('name'); ?></dd>
|
||||
<?php if (! is_null($o->service_billing->checkout_amount)) : ?>
|
||||
<dt>Standard Amount</dt>
|
||||
<dd><?php echo $o->service_billing->display('checkout_amount'); ?></dd>
|
||||
<?php endif ?>
|
||||
</div> <!-- /dl-horizontal -->
|
||||
</fieldset>
|
||||
</div> <!-- /span -->
|
||||
|
Reference in New Issue
Block a user