コード例 #1
0
ファイル: Group.php プロジェクト: lizard2010/Economic-PHP-SDK
 /**
  * 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);
 }
コード例 #2
0
ファイル: Line.php プロジェクト: lizard2010/Economic-PHP-SDK
 /**
  * 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;
 }
コード例 #3
0
 /**
  * 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;
 }
コード例 #4
0
 /**
  * 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;
 }