Improvements to invoice display and other misc items
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
* @copyright (c) 2009-2013 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
class Model_Charge extends ORM_OSB {
|
||||
class Model_Charge extends ORM_OSB implements Invoicable {
|
||||
protected $_belongs_to = array(
|
||||
'account'=>array(),
|
||||
'service'=>array(),
|
||||
@@ -77,6 +77,10 @@ class Model_Charge extends ORM_OSB {
|
||||
}
|
||||
}
|
||||
|
||||
public function invoice_item($item_type) {
|
||||
return sprintf('%s %s',StaticList_ItemType::get($item_type),$this->display('date_charge'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Render some details for specific calls, eg: invoice
|
||||
*/
|
||||
|
Reference in New Issue
Block a user