Local fixes to invoice display and retrieve traffic data
This commit is contained in:
@@ -16,5 +16,18 @@ class Model_Charge extends ORMOSB {
|
||||
'Currency::display',array(':value')
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
* Render some details for specific calls, eg: invoice
|
||||
*/
|
||||
public function details($type) {
|
||||
switch ($type) {
|
||||
case 'invoice':
|
||||
return sprintf('%s (%s@%s)',$this->description,$this->quantity,Currency::display($this->amount));
|
||||
|
||||
default:
|
||||
throw new Kohana_Exception('Unkown detail request :type',array(':type'=>$type));
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user