/** * Get or set sent status for a Quotation by Quotation number * * @param integer $no * @param boolean $set * @return boolean */ public function sent($no, $set = null) { $handle = $this->getHandle($no); if (!is_bool($set)) { return $this->client->Quotation_GetIsSent(['quotationHandle' => $handle])->Quotation_GetIsSentResult; } elseif (!$set) { $this->client->Quotation_CancelSentStatus(['quotationHandle' => $handle]); return true; } $this->client->Quotation_RegisterAsSent(['quotationHandle' => $handle]); return true; }