getProducerManager(); $producerPriceRangeManager = $this->getProducerPriceRangeManager(); $this->setTitle('Tarifs') ; $this->addBreadcrumb($this->getTitle()) ; ?> isBillingTypeFreePrice($producer)) { echo '
'; echo "Vous bénéficiez actuellement d'un abonnement à prix libre dont voici le montant : ".$producer->getFreePrice().""; echo '
'; } elseif($producerManager->isBillingTypeClassic($producer)) { $month = date('Y-m', strtotime('-1 month')); $turnover = $producerManager->getTurnover($producer, $month); $amountBilledLastMonth = $producerPriceRangeManager->getAmountToBeBilledByTurnover($turnover); if($amountBilledLastMonth) { echo '
'; echo "À titre d'information, voici le tarif retenu pour le mois dernier (".strftime('%B', strtotime('-1 month')).") : ".$producerManager->getAmountToBeBilledByMonth($producer, $month, true).""; echo "
Le chiffre d'affaire pris en compte pour ce calcul est : ".Price::format($turnover)." HT"; echo '
Voir l\'évolution de mon chiffre d\'affaire'; echo '
'; } } ?> render('@frontend/views/site/_prices_producer', [ 'dataProviderPrices' => $dataProviderPrices ]); ?>