Differences

This shows you the differences between two versions of the page.

Link to this comparison view

getestimatebyid [2013/01/21 12:44] (current)
Line 1: Line 1:
 +====== Get a Single Estimate By ListID ======
  
 +===== Usage =====
 +
 +==== Examples ====
 +
 + $Estimate = $QB->getEstimateByID("80000081-1221752087");
 + echo $Estimate->FullName;
 +
 +==== Parameters ====
 +
 +  * ID  -- The desired estimate's ListID. Must be exact match.
 +
 +
 +==== Returns ====
 +
 +  * FALSE if estimate wasn't found.
 +
 +  * Otherwise returns first row found in database as Database Object.
 +
 +
 +
 +
 +===== Source =====
 +
 + public function getEstimateByID($txnID)
 + {
 + $this->DB->query("SELECT * FROM qb_estimate WHERE TxnID = '".$this->DB->prep($txnID)."';");
 + return $this->DB->pop();
 + }
getestimatebyid.txt · Last modified: 2013/01/21 12:44 (external edit)