PHPDoctor


invoices_unpaid.php

Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html


/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ 
// Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com
/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/

    $pageTitle = 'Ofuz :: Invoices';
    $Author = 'SQLFusion LLC';
    $Keywords = 'Keywords for search engine';
    $Description = 'Description for search engine';
    $background_color = 'white';
    include_once('config.php');
    include_once('includes/ofuz_check_access.script.inc.php');
    include_once('includes/header.inc.php');

    $do_notes = new ContactNotes($GLOBALS['conx']);
    $do_contact = new Contact($GLOBALS['conx']);
    $do_company = new Company($GLOBALS['conx']);
    $do_task = new Task($GLOBALS['conx']);
    $do_task_category = new TaskCategory($GLOBALS['conx']);
    $do_contact_task = new Contact();
    if (!is_object($_SESSION['do_invoice_list_up'])) {
        $do_invoice_list = new Invoice();
        $do_invoice_list->sessionPersistent("do_invoice_list_up", "index.php", OFUZ_TTL);
        
    }
//echo $_SESSION['do_invoice_list']->getSqlQuery();
    $user_settings = $_SESSION['do_User']->getChildUserSettings();    
    if($user_settings->getNumRows()){
        while($user_settings->next()){
            if($user_settings->setting_name == 'currency' &&  $user_settings->setting_value != ''){
                $currency =  explode("-",$user_settings->setting_value) ;
                $_SESSION['do_invoice_list_up']->currency_iso_code = $currency[0];
                $_SESSION['do_invoice_list_up']->currency_sign = $currency[1];
                //$_SESSION['do_invoice_list']->currency = $_SESSION['do_invoice_list']->currecy_sign ;
                $_SESSION['do_invoice_list_up']->setCurrencyDisplay() ;
                $_SESSION['do_invoice_list_up']->getCurrencyPostion() ;
            }
        }
    }

    $do_payment_inv = new PaymentInvoice();
    
?>

createFeedbackBox(); ?>
getBreadcrumbs(); ?>
if($_SESSION['extra_amt'] != ''){ echo '
'; echo '
'; echo '
'; $cancel_extra_amt_pay = new Event("PaymentInvoice->eventCancelExtraAmtPay"); $cancel_link = $cancel_extra_amt_pay->getLink(_('Cancel')); echo _('You can apply the amount ').$_SESSION['do_invoice_list']->viewAmount($_SESSION['extra_amt'])._(' for the Note'). ' "'.$_SESSION['ref_num'].'" '._('to any of the following invoices.').'  '.$cancel_link; echo '

'; } ?> //echo $_SESSION['do_invoice_list']->getSqlQuery() $_SESSION['do_invoice_list_up']->getAllUnpaidInvoices(); if($_SESSION['do_invoice_list_up']->getNumRows() > 0 ){ $do_contact = new Contact(); while($_SESSION['do_invoice_list_up']->next()){ $currentpage = $_SERVER['PHP_SELF']; $e_detail = new Event("mydb.gotoPage"); $e_detail->addParam("goto", "invoice.php"); $e_detail->addParam("idinvoice",$_SESSION['do_invoice_list_up']->idinvoice); $e_detail->addParam("tablename", "invoice"); $e_detail->requestSave("eDetail_invoice", $currentpage); //echo $_SESSION['do_invoice']->idcompany; if($_SESSION['do_invoice_list_up']->discount){ $dis = $_SESSION['do_invoice_list_up']->discount; }else{$dis = "";} // $invoice_cal_data = $_SESSION['do_invoice']->getInvoiceCalculations($_SESSION['do_invoice']->idinvoice,$_SESSION['do_invoice']->amount,$dis); if($_SESSION['do_invoice_list_up']->status == 'Paid'){ $statuscolor = "#009900"; }elseif($_SESSION['do_invoice_list_up']->status == 'Partial'){ $statuscolor = "#EA8484"; }elseif($_SESSION['do_invoice_list_up']->status == 'Sent'){ $statuscolor = "#677CDF"; }else{ $statuscolor ="#000000"; } ?> idinvoice?>'">
Status
num; ?> getContact_Company_ForInvoice($_SESSION['do_invoice_list_up']->idcontact,$_SESSION['do_invoice_list_up']->idcompany); ?> due_date; ?> viewAmount($_SESSION['do_invoice_list_up']->amount); ?> viewAmount($_SESSION['do_invoice_list_up']->net_total); ?> status; ?>

PHPDoctor