Improved service display
This commit is contained in:
@@ -32,16 +32,14 @@ class Model_Invoice_Item extends ORMOSB {
|
||||
return sprintf('%s: %s',_('Date'),Config::date($this->date_start));
|
||||
|
||||
else
|
||||
return sprintf('%s: %s -> %s',_('Period'),Config::date($this->date_start),Config::date($this->date_stop));
|
||||
return sprintf('%s -> %s',Config::date($this->date_start),Config::date($this->date_stop));
|
||||
}
|
||||
|
||||
/**
|
||||
* On invoices where there are multiple charges for the same item
|
||||
* (eg spanning the next invoice period), this should show the period
|
||||
* range for the additional sub-items.
|
||||
*/
|
||||
public function invoice_display() {
|
||||
return $this->period();
|
||||
public function invoice_detail_items() {
|
||||
if ($this->item_type != 0)
|
||||
return;
|
||||
|
||||
return $this->service->details('invoice');
|
||||
}
|
||||
|
||||
public function subtotal() {
|
||||
|
Reference in New Issue
Block a user