$activity = new SI_TaskActivity(); $ps = new SI_PaymentSchedule(); $activities = $activity->getActivitiesForCompany($invoice->company_id, true, 0, true); if($activities === FALSE){ $error_msg .= "Could not retrieve Activity List for Company!\n"; debug_message($activity->getLastError()); } $items = $ps->getForCompany($invoice->company_id); if($items === FALSE){ $error_msg .= "Could not retrieve scheduled payments for Company!\n"; debug_message($ps->getLastError()); } $expenses = $company->getExpenses(TRUE); if($expenses === FALSE){ $error_msg .= "Could not retrieve expenses for Company!\n"; debug_message($company->getLastError()); } $base_url = $_SERVER['PHP_SELF'].'?id='.$line->id.'&invoice_id='.$invoice->id.'&hide_url=true&'; require('header.php') ?> <form name="line_edit" action="<?php echo $_SERVER['PHP_SELF']; ?> " METHOD="POST"> <input type="hidden" name="mode" value="<?php echo $_REQUEST['mode']; ?>