src/Intraface/modules/debtor/DebtorItem.php 1 location
|
@@ 165-173 (lines=9) @@
|
162 |
|
* |
163 |
|
* @return float price of product |
164 |
|
*/ |
165 |
|
public function getProductPrice() |
166 |
|
{ |
167 |
|
if ($this->getProduct()->get('has_variation')) { |
168 |
|
return $this->getProductVariationDetail()->getPrice($this->getProduct()); |
169 |
|
} else { |
170 |
|
return $this->getProduct()->getDetails()->getPrice(); |
171 |
|
} |
172 |
|
} |
173 |
|
|
174 |
|
/** |
175 |
|
* Returns weight of product without vat |
176 |
|
* |
src/Intraface/modules/procurement/ProcurementItem.php 1 location
|
@@ 164-171 (lines=8) @@
|
161 |
|
* |
162 |
|
* @return float price of product |
163 |
|
*/ |
164 |
|
public function getProductPrice() |
165 |
|
{ |
166 |
|
if ($this->getProduct()->get('has_variation')) { |
167 |
|
return $this->getProductVariationDetail()->getPrice($this->getProduct()); |
168 |
|
} else { |
169 |
|
return $this->getProduct()->getDetails()->getPrice(); |
170 |
|
} |
171 |
|
} |
172 |
|
|
173 |
|
/** |
174 |
|
* Returns number of product |