Added Direct Debit Amount to easily identify excess charges
This commit is contained in:
parent
8301c0f6af
commit
a329cc3179
@ -61,7 +61,7 @@ class Payment_Bulk_Ezypay {
|
||||
$po->checkout_data = array('transid'=>$array[2].':'.$array[3]);
|
||||
$po->date_payment = strtotime(str_replace('/','-',$array[8]));
|
||||
|
||||
$sbo = $po->account->service_billing->where('plugin_data','=',$array[3])->find();
|
||||
$sbo = $po->account->service_billing->where('checkout_data','=',$array[3])->find();
|
||||
if (! $sbo->loaded())
|
||||
throw HTTP_Exception::factory(501,'No Service Billing Data for :aid (:pd)?',array(':aid'=>$aid,':pd'=>$array[3]));
|
||||
|
||||
|
@ -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