Example #1
0
 /**
  * adding a item onto the purchase order
  *
  * @param Product $product
  * @param double  $unitPrice
  * @param int     $qty
  * @param string  $supplierItemCode
  * @param string  $description
  * @param double  $totalPrice
  * @param mixed   $newItem           The new PurhcaseOrderItem
  *
  * @return PurchaseOrder
  */
 public function addItem(Product $product, $unitPrice = '0.0000', $qty = 1, $supplierItemCode = '', $description = '', $totalPrice = null, &$newItem = null)
 {
     $newItem = PurchaseOrderItem::create($this, $product, $unitPrice, $qty, $supplierItemCode, $description, $totalPrice);
     return $this;
 }