This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/charge/classes/model/charge.php
2011-05-03 09:49:04 +10:00

25 lines
693 B
PHP

<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class provides charge item capabilities.
*
* @package OSB
* @subpackage Charge
* @category Models
* @author Deon George
* @copyright (c) 2010 Open Source Billing
* @license http://dev.osbill.net/license.html
*/
class Model_Charge extends ORMOSB {
protected $_formats = array(
'amount'=>array('Currency::display'=>array()),
);
// 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'));
}
}
?>