src/Intraface/modules/debtor/DebtorItem.php 1 location
|
@@ 111-120 (lines=10) @@
|
| 108 |
|
* |
| 109 |
|
* @return object Product |
| 110 |
|
*/ |
| 111 |
|
private function getProduct() |
| 112 |
|
{ |
| 113 |
|
if (!$this->product) { |
| 114 |
|
if ($this->get('product_id') == '' || $this->get('product_detail_id') == '') { |
| 115 |
|
throw new Exception('The item is not loaded'); |
| 116 |
|
} |
| 117 |
|
$this->product = new Product($this->debtor->kernel, $this->get('product_id'), $this->get('product_detail_id')); |
| 118 |
|
} |
| 119 |
|
return $this->product; |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
/** |
| 123 |
|
* Returns Product variation loaded from item |
src/Intraface/modules/procurement/ProcurementItem.php 1 location
|
@@ 110-119 (lines=10) @@
|
| 107 |
|
* |
| 108 |
|
* @return object Product |
| 109 |
|
*/ |
| 110 |
|
private function getProduct() |
| 111 |
|
{ |
| 112 |
|
if (!$this->product) { |
| 113 |
|
if ($this->get('product_id') == '' || $this->get('product_detail_id') == '') { |
| 114 |
|
throw new Exception('The item is not loaded'); |
| 115 |
|
} |
| 116 |
|
$this->product = new Product($this->procurement->kernel, $this->get('product_id'), $this->get('product_detail_id')); |
| 117 |
|
} |
| 118 |
|
return $this->product; |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
/** |
| 122 |
|
* Returns Product variation loaded from item |