Fix for invoice with sub-items

This commit is contained in:
Deon George
2016-07-27 16:55:07 +10:00
parent 5ab2d6205f
commit f426502707
3 changed files with 39 additions and 46 deletions

View File

@@ -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;