/** * Get all Products of a * specific Product Group * @param integer $no * @return array */ public function products($no) { $handle = $this->getHandle($no); $productHandles = $this->client->ProductGroup_GetProducts(array('productGroupHandle' => $handle))->ProductGroup_GetProductsResult->ProductHandle; $product = new Product($this->client_raw); return $product->getArrayFromHandles($productHandles); }
/** * 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; }