Improved service display

This commit is contained in:
Deon George
2011-07-14 19:09:03 +10:00
parent 46c3b9a075
commit 27cdab1fe4
37 changed files with 1319 additions and 1042 deletions

View File

@@ -11,14 +11,10 @@
* @license http://dev.osbill.net/license.html
*/
class Model_Charge extends ORMOSB {
protected $_formats = array(
'amount'=>array('Currency::display'=>array()),
protected $_display_filters = array(
'amount'=>array(
'Currency::display',array(':value')
),
);
// Show our description on the invoice.
public function invoice_display() {
// @todo The rounding should be a global config
return sprintf('%s: %2s x %s (%s)',Config::date($this->date_orig),$this->quantity,$this->description,$this->display('amount'));
}
}
?>