Fix for invoice with sub-items
This commit is contained in:
@@ -70,7 +70,7 @@ class Invoice {
|
||||
// Service Billing
|
||||
$iio->item_type = 0;
|
||||
|
||||
$this->_io->subitem_add($iio,$this->_io->account->country);
|
||||
$this->_io->add_sub_item($iio);
|
||||
|
||||
// Check if there are any charges
|
||||
$c = ORM::factory('Charge')
|
||||
@@ -89,7 +89,7 @@ class Invoice {
|
||||
$iio->date_stop = $co->date_orig;
|
||||
$iio->item_type = $co->type;
|
||||
|
||||
$this->_io->subitem_add($iio,$this->_io->account->country);
|
||||
$this->_io->add_sub_item($iio);
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
Reference in New Issue
Block a user