[TYPO3-mvc] Get related 1:n object from external class
Henry DoShell
digital at dollerschell.de
Sat Dec 14 16:11:09 CET 2013
Hi Gianluca,
a big thank you for your help. You spotted me to the right direction, I was able to solve the problem.
Here's my corrected Roomrate model:
/**
* Returns the sellingrate
*
* @return \float $sellingrate
*/
public function getSellingrate() {
return $this->roomratenum*$this->conversionrate->getConversionratenum()*(1+($this->markup->getMarkupnum()/100));
}
Had to add an markup, too.
Thanks again a lot
smatchy
More information about the TYPO3-project-typo3v4mvc
mailing list