Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supprimer le lien de télécollecte #1478

Open
agallou opened this issue Mar 30, 2024 · 0 comments
Open

Supprimer le lien de télécollecte #1478

agallou opened this issue Mar 30, 2024 · 0 comments
Labels

Comments

@agallou
Copy link
Member

agallou commented Mar 30, 2024

Sur l'admin, sur la partie trésorerie, on a un lien pour voir les télécollectes qui est en place.

Ce lien n'est plus utilisable :

  • cela car Paybox a supprimé son site pour passer par une application Adobe Air
  • le passage au crédit mutuel a changé le pattern des paiements de télécollecte

Il faut donc supprimer ce lien qui n'est plus utile :
cela en supprimant ces lignes :

// Function added to Smarty in order to add the paybox link if possible
function paybox_link($description)
{
$matches = array();
if (preg_match('`CB\s+AFUP\s+([0-9]{2})([0-9]{2})([0-9]{2})\s+CONTRAT`', $description, $matches)) {
$date = $matches[1] . "/" . $matches[2] . "/" . (2000 + (int) $matches[3]);
$url = sprintf('https://admin.paybox.com/cgi/CBDCum.cgi?lg=FR&SelDate=%1$s&SelDateAu=%1$s', $date);
$html = sprintf('<a href="%2$s" class="js-paybox-link">%1$s</a>', $description, $url);
$urlTelecolectes = strtr("https://admin.paybox.com/cgi/Remises.cgi?SelDateFrom={date}&SelDateTo={date}&Ok=Ok", ['{date}' => $date]);
$html .= sprintf('<br /><br /><a href="%2$s" class="js-paybox-link">%1$s</a>', "(Voir les télécollectes du jour)", $urlTelecolectes);
return $html;
}
return $description;
}
$smarty->register_modifier('paybox_link', 'paybox_link');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant