getCreditHistoryManager(); $producerManager = $this->getProducerManager(); $userManager = $this->getUserManager(); $this->setTitle('Créditer '.Html::encode($user->lastname.' '.$user->name).'', 'Créditer '.Html::encode($user->lastname.' '.$user->name)) ; $this->addBreadcrumb(['label' => 'Utilisateurs', 'url' => ['index']]) ; $this->addBreadcrumb(['label' => Html::encode($user->lastname.' '.$user->name)]) ; $this->addBreadcrumb('Créditer') ; ?>
findOneProducerById(GlobalParam::getCurrentProducerId()); if(!$producer->credit) { echo '
Attention, la fonctionnalité Crédit est désactivée dans vos paramètres.' . ' Pensez à l\'activer si vous souhaitez qu\'elle soit visible de vos utilisateurs.
' ; } ?>

Crédit obligatoire credit_active ? 'Désactiver' : 'Activer', ['user/state-credit', 'idUser' => $user->id,'state' => !$userProducer->credit_active], ['class' => 'btn btn-default btn-xs']); ?>

credit_active): ?>
Activé
Désactivé

Crédit / débit

field($creditForm, 'type')->dropDownList([ CreditHistory::TYPE_CREDIT => 'Crédit', CreditHistory::TYPE_DEBIT => 'Débit', ]) ?> field($creditForm, 'amount')->textInput() ?> field($creditForm, 'mean_payment')->dropDownList([ MeanPayment::MONEY => MeanPayment::getStrBy(MeanPayment::MONEY), MeanPayment::CREDIT_CARD => MeanPayment::getStrBy(MeanPayment::CREDIT_CARD), MeanPayment::CHEQUE => MeanPayment::getStrBy(MeanPayment::CHEQUE), MeanPayment::TRANSFER => MeanPayment::getStrBy(MeanPayment::TRANSFER), MeanPayment::OTHER => MeanPayment::getStrBy(MeanPayment::OTHER), ]) ?> field($creditForm, 'comment')->textarea() ?> field($creditForm, 'send_mail')->checkbox() ?>
'btn btn-primary']) ?>

Historique getCredit($user, $producer), 2); ?> €

Date Utilisateur Type - Débit + Crédit Paiement Commentaire
getDate($creditHistory, true) ; ?> getStrUserAction($creditHistory)); ?> getStrWording($creditHistory); ?> isTypeDebit($creditHistory)): ?> - getAmount($creditHistory, true); ?> isTypeCredit($creditHistory)): ?> + getAmount($creditHistory, true); ?> getStrMeanPayment($creditHistory) ?> getComment())): ?> getComment()); ?>
Aucun résultat