Skip to content

Commit eeaa2f4

Browse files
committed
Migration des pages de d'administration de cotisations sous Symfony
1 parent 31778d5 commit eeaa2f4

29 files changed

+1016
-283
lines changed

app/config/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,13 @@ ting:
401401
default:
402402
connection: main
403403
database: '%database_name%'
404+
membershipfee:
405+
namespace: AppBundle\MembershipFee\Model\Repository
406+
directory: "@AppBundle/MembershipFee/Model/Repository"
407+
options:
408+
default:
409+
connection: main
410+
database: "%database_name%"
404411
throttling:
405412
namespace : AppBundle\Security\ActionThrottling
406413
directory : "@AppBundle/Security/ActionThrottling"

app/config/routing/admin_accounting.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,7 @@ admin_accounting_rules_edit:
9797
admin_accounting_search:
9898
path: /search
9999
defaults: {_controller: AppBundle\Controller\Admin\Accounting\SearchAction}
100+
101+
admin_accounting_membership_fee:
102+
resource: "admin_accounting_membership_fee.yml"
103+
prefix: /membership-fee
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
admin_membership_fee_list:
2+
path: /list/{memberType}/{memberId}
3+
defaults:
4+
_controller: AppBundle\Controller\Admin\Accounting\MembershipFee\ListMembershipFeeAction
5+
parameters:
6+
memberType: \d+
7+
memberId: \d+
8+
9+
admin_membership_fee_send_invoice:
10+
path: /send-invoice/{memberType}/{memberId}/{membershipFeeId}
11+
defaults:
12+
_controller: AppBundle\Controller\Admin\Accounting\MembershipFee\SendMembershipFeeInvoiceAction
13+
14+
admin_membership_fee_download_invoice:
15+
path: /download/{memberType}/{memberId}/{membershipFeeId}
16+
defaults:
17+
_controller: AppBundle\Controller\Admin\Accounting\MembershipFee\DownloadMembershipFeeInvoiceAction
18+
19+
admin_membership_fee_edit:
20+
path: /edit/{memberType}/{memberId}/{membershipFeeId}
21+
defaults:
22+
_controller: AppBundle\Controller\Admin\Accounting\MembershipFee\EditMembershipFeeAction
23+
24+
admin_membership_fee_delete:
25+
path: /delete/{memberType}/{memberId}/{membershipFeeId}/{token}
26+
defaults:
27+
_controller: AppBundle\Controller\Admin\Accounting\MembershipFee\DeleteMembershipFeeAction
28+
29+
admin_membership_fee_add:
30+
path: /add/{memberType}/{memberId}
31+
defaults:
32+
_controller: AppBundle\Controller\Admin\Accounting\MembershipFee\AddMembershipFeeAction

htdocs/pages/administration/cotisations.php

Lines changed: 0 additions & 148 deletions
This file was deleted.

htdocs/templates/administration/cotisations.html

Lines changed: 0 additions & 106 deletions
This file was deleted.

sources/Afup/Association/Cotisations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public function notifierReglementEnLigneAuTresorier(string $cmd, float $total, s
233233
$corps = "Bonjour, \n\n";
234234
$corps .= "Une cotisation annuelle AFUP a été réglée.\n\n";
235235
$corps .= "Personne : " . $infos['nom'] . " " . $infos['prenom'] . " (" . $infos['email'] . ")\n";
236-
$corps .= "URL : " . Site::WEB_PATH . "pages/administration/index.php?page=cotisations&type_personne=" . $infos['type'] . "&id_personne=" . $infos['id'] . "\n";
236+
$corps .= "URL : " . Site::WEB_PATH . "admin/accounting/membership-fee/list/" . $infos['type'] . "/" . $infos['id'] . "\n";
237237
$corps .= "Commande : " . $cmd . "\n";
238238
$corps .= "Total : " . $total . "\n";
239239
$corps .= "Autorisation : " . $autorisation . "\n";

0 commit comments

Comments
 (0)