Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- /**
- * WHMCS Invoice Class
- *
- * @package WHMCS
- * @author WHMCS Limited <[email protected]>
- * @copyright Copyright (c) WHMCS Limited 2005-2013
- * @license http://www.whmcs.com/license/ WHMCS Eula
- * @version $Id$
- * @link http://www.whmcs.com/
- */
- class WHMCS_Invoice {
- public $pdf = '';
- private $invoiceid = '';
- private $data = array( );
- private $output = array( );
- private $totalbalance = 0;
- protected $gateway = null;
- public function __construct($invoiceid = '') {
- if ($invoiceid) {
- $this->setID( $invoiceid );
- }
- }
- public function setID($invoiceid) {
- $this->invoiceid = $invoiceid;
- return true;
- }
- public function getID() {
- return (int)$this->invoiceid;
- }
- public function loadData($force = true) {
- if (( !$force && count( $this->data ) )) {
- return false;
- }
- $result = select_query( 'tblinvoices', 'tblinvoices.*,(SELECT value FROM tblpaymentgateways WHERE gateway=tblinvoices.paymentmethod AND setting=\'name\' LIMIT 1) AS gateway,IFNULL((SELECT SUM(amountin-amountout) FROM tblaccounts WHERE invoiceid=tblinvoices.id),0) as amountpaid', array( 'id' => $this->invoiceid ) );
- $data = mysql_fetch_assoc( $result );
- ....................................................................
- ....................................
- ............
Advertisement
Add Comment
Please, Sign In to add comment