Development #67196
Tarification - pouvoir attacher une grille tarifaire à plusieurs agendas
0%
Description
Transformer la FK en M2M. Les dates s'appliquent à tous les agendas liés.
Déplacer la page de détail d'une grille (actuellement c'est une sous-page d'un agenda), et l'édition des tarifs, des options.
Lister les agendas attachés.
Avoir une action "ajouter un agenda", qui vérifiera qu'il n'y a pas de collision sur les dates.
Reprendre l'import.
Fichiers
Révisions associées
pricing: import/export pricings (#67196)
pricing: new home page, change some urls and breadcrumbs (#67196)
pricing: change agenda pricing urls, add list view (#67196)
misc: split some pricing tests (#67196)
pricing: add label & slug on AgendaPricingModel (#67196)
pricing: export view for agenda pricing (#67196)
pricing: use sidetabs on agenda, pricing & agenda pricing pages (#67196)
pricing: agenda management on agenda pricing page (#67196)
pricing: use M2M in pricing_data methods (#67196)
pricing: remove old agenda FK from AgendaPricing model (#67196)
pricing: adapt test tool to agendas M2M (#67196)
Historique
Mis à jour par Lauréline Guérin il y a presque 2 ans
- Fichier 0010-pricing-use-M2M-in-pricing_data-methods-67196.patch 0010-pricing-use-M2M-in-pricing_data-methods-67196.patch ajouté
- Fichier 0009-pricing-agenda-management-on-agenda-pricing-page-671.patch 0009-pricing-agenda-management-on-agenda-pricing-page-671.patch ajouté
- Fichier 0008-pricing-use-sidetabs-on-agenda-pricing-agenda-pricin.patch 0008-pricing-use-sidetabs-on-agenda-pricing-agenda-pricin.patch ajouté
- Fichier 0007-pricing-export-view-for-agenda-pricing-67196.patch 0007-pricing-export-view-for-agenda-pricing-67196.patch ajouté
- Fichier 0006-pricing-add-label-slug-on-AgendaPricingModel-67196.patch 0006-pricing-add-label-slug-on-AgendaPricingModel-67196.patch ajouté
- Fichier 0005-misc-split-some-pricing-tests-67196.patch 0005-misc-split-some-pricing-tests-67196.patch ajouté
- Fichier 0004-pricing-change-agenda-pricing-urls-add-list-view-671.patch 0004-pricing-change-agenda-pricing-urls-add-list-view-671.patch ajouté
- Fichier 0003-pricing-new-home-page-change-some-urls-and-breadcrum.patch 0003-pricing-new-home-page-change-some-urls-and-breadcrum.patch ajouté
- Fichier 0012-pricing-adapt-test-tool-to-agendas-M2M-67196.patch ajouté
- Fichier 0002-pricing-import-export-pricings-67196.patch 0002-pricing-import-export-pricings-67196.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
0001: update du model AgendaPricing (grille tarifaire), ajout de la M2M (mais on garde la FK jusqu'à 0011)
0002: changement dans les import/export, pour fonctionner avec la M2M agendas
0003: nouvelle page d'accueil /manage/pricing/, changements dans quelques urls et dans l'organisation des pages (breadcrumbs)
note: il manque une background-image sur la page d'accueil
0004: changements dans les urls et vues AgendaPricing, pour supprimer la dépendance à la FK agenda
note: avant quand on ajoutait une grille tarifaire à un agenda, on initialisait la date de début avec la date de fin de la dernière grille tarifaire de cet agenda; j'ai gardé ce mécanisme (je prends la dernière date de fin tout court), mais je trouve que c'est moins pertinent. J'hésite à l'enlever.
0005: split de tests
0006: ajout d'un label et d'un slug sur le model AgendaPricing: j'anticipe, on aura probablement besoin d'un slug pour le mode forfait/adhésion; et surtout, pour l'import, le get_or_create sur tous les champs du model n'a plus vraiment de sens sans la FK agenda. Ca me semble plus sûr de se baser sur un slug.
0007: export d'un AgendaPricing, adaptation de l'import global
0008: des onglets, ça commençait à être le bazar
0009: les vues pour ajouter/supprimer un agenda d'une grille tarifaire
0010: adaptation des méthodes de calcul d'un tarif pour utiliser la M2M agendas
Mis à jour par Lauréline Guérin il y a presque 2 ans
- Fichier
0012-pricing-adapt-test-tool-to-agendas-M2M-67196.patchsupprimé
Mis à jour par Lauréline Guérin il y a presque 2 ans
Mis à jour par Lauréline Guérin il y a presque 2 ans
- Fichier 0011-pricing-remove-old-agenda-FK-from-AgendaPricing-mode.patch 0011-pricing-remove-old-agenda-FK-from-AgendaPricing-mode.patch ajouté
- Fichier 0012-pricing-adapt-test-tool-to-agendas-M2M-67196.patch 0012-pricing-adapt-test-tool-to-agendas-M2M-67196.patch ajouté
0011: suppression de la FK, enfin
0012: adaptation de l'outil de debug, pour récupérer l'agenda depuis le slug de l'event
avec du JS pour mettre à jour la liste des types de pointage.
on pourrait aussi avoir un select pour choisir l'agenda parmi ceux de la grille tarifaire, mais à ce stade j'ai eu la flemme.
Mis à jour par Lauréline Guérin il y a presque 2 ans
- Fichier lingo-pricing-home.png lingo-pricing-home.png ajouté
capture pour illustrer 0003
note: je manquais d'imagination pour les textes d'explication
Mis à jour par Lauréline Guérin il y a presque 2 ans
Mis à jour par Lauréline Guérin il y a presque 2 ans
on pourrait aussi avoir un select pour choisir l'agenda parmi ceux de la grille tarifaire, mais à ce stade j'ai eu la flemme.
(mais je vais le faire quand même dans #67675)
Mis à jour par Frédéric Péters il y a plus d'un an
- Statut changé de Solution proposée à Solution validée
note: il manque une background-image sur la page d'accueil
Je valide sans ça et je chercherai pendant tes congés.
Mis à jour par Lauréline Guérin il y a plus d'un an
- Statut changé de Solution validée à Résolu (à déployer)
commit 67d95d3befb8ab1672b5e848dead10920d298424 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Jul 21 20:59:41 2022 +0200 pricing: adapt test tool to agendas M2M (#67196) commit dc39fc0b1deb9c0aef5b1363603b77469b2d22be Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Jul 21 16:01:00 2022 +0200 pricing: remove old agenda FK from AgendaPricing model (#67196) commit 886ea62b725ef9f22ae3000cae6355fda22a4996 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Jul 21 15:54:00 2022 +0200 pricing: use M2M in pricing_data methods (#67196) commit 3f9e689e1cd5c4e4adac936fa6cb461015e800a0 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Jul 21 15:40:40 2022 +0200 pricing: agenda management on agenda pricing page (#67196) commit 0c4ae4e39bc1d13df67c6be2444d081634169bd3 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue Jul 19 15:25:17 2022 +0200 pricing: use sidetabs on agenda, pricing & agenda pricing pages (#67196) commit 2f66bc9e1a40115032ecbfc0d834b0ee6691fcb1 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue Jul 19 12:00:34 2022 +0200 pricing: export view for agenda pricing (#67196) commit ce46b324c787b7dae597c3bc1a05b56dd22e50cb Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue Jul 19 11:55:39 2022 +0200 pricing: add label & slug on AgendaPricingModel (#67196) commit cef78cbf35bb89eecb8f07917b03367aab07b7f9 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue Jul 19 11:02:55 2022 +0200 misc: split some pricing tests (#67196) commit 6998f1e9e580172bb7f7e5f018384c955eeb4f2f Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue Jul 19 11:00:10 2022 +0200 pricing: change agenda pricing urls, add list view (#67196) commit 4cf25a1bca8d4a3fea6ff8656ea088d5016bfb5e Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue Jul 19 08:15:39 2022 +0200 pricing: new home page, change some urls and breadcrumbs (#67196) commit 369fbb8602211a6c4b96270319e9ae9972d6ac0e Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Jul 18 16:27:03 2022 +0200 pricing: import/export pricings (#67196) commit c694ee5e6769ef145241153628cc1dca4aacde92 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Jul 18 11:56:07 2022 +0200 pricing: M2M between AgendaPricing and Agenda (#67196)
Mis à jour par Transition automatique il y a plus d'un an
- Statut changé de Résolu (à déployer) à Solution déployée
pricing: M2M between AgendaPricing and Agenda (#67196)