/** * Set Invoice Line product * by product number * @param mixed $invoiceLineHandle * @param integer $product * @return boolean */ public function product($invoiceLineHandle, $product) { $products = new Product($this->client_raw); $productHandle = $products->getHandle($product); $this->client->CurrentInvoiceLine_SetProduct(array('currentInvoiceLineHandle' => $invoiceLineHandle, 'valueHandle' => $productHandle)); return true; }
/** * Set Quotation Line product * by product number * @param mixed $QuotationLineHandle * @param integer $product * @return boolean */ public function product($QuotationLineHandle, $product) { $products = new Product($this->client_raw); $productHandle = $products->getHandle($product); $this->client->QuotationLine_SetProduct(array('quotationLineHandle' => $QuotationLineHandle, 'valueHandle' => $productHandle)); return true; }
/** * Set Order Line product by product number * * @param object $orderLineHandle * @param $product * @return bool */ public function product($orderLineHandle, $product) { $products = new Product($this->client_raw); $productHandle = $products->getHandle($product); $this->client->OrderLine_SetProduct(['orderLineHandle' => $orderLineHandle, 'valueHandle' => $productHandle]); return true; }