); | ); | ||||
} | } | ||||
/*public function getPriceUnitWithTaxAndReduction($entity) | |||||
{ | |||||
if($entity instanceof ProductInterface) { | |||||
return $this->getPriceWithTaxAndReduction($entity) / $entity->getQuantity() ; | |||||
} | |||||
return null ; | |||||
}*/ | |||||
public function getPriceByRefUnit($entity) | public function getPriceByRefUnit($entity) | ||||
{ | { | ||||
if($entity instanceof ProductPropertyInterface) { | if($entity instanceof ProductPropertyInterface) { |