Fixes from live website
This commit is contained in:
@@ -51,9 +51,6 @@ class Model_Payment extends ORM_OSB {
|
||||
* @param $inv number, to allocate payment to an invoice
|
||||
*/
|
||||
public function add_item($invnum) {
|
||||
if ($this->loaded() and ! $this->payment_items)
|
||||
throw new Kohana_Exception('Need to load payment_items?');
|
||||
|
||||
// Find our id, if it exists
|
||||
foreach ($this->payment_items as $pio)
|
||||
if ($pio->invoice_id == $invnum)
|
||||
@@ -156,6 +153,7 @@ class Model_Payment extends ORM_OSB {
|
||||
/** LIST FUNCTIONS **/
|
||||
|
||||
public function list_unapplied() {
|
||||
return array();
|
||||
$pi = array();
|
||||
|
||||
// @todo database suffix needs to be dynamically calculated
|
||||
|
Reference in New Issue
Block a user