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)