Parcourir la source

Rename consolidated_cost → unit_consolidated_cost

Jocelyn Delande il y a 9 ans
Parent
commit
8087733660
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 2 2
      costs/templates/costs/service_detail.html
  2. 1 1
      costs/views.py

+ 2 - 2
costs/templates/costs/service_detail.html

@@ -47,7 +47,7 @@
 
         </div>
         <p>
-          La fourniture d'un abonement <em>{{ service.name }}</em> coûte <strong>{{ consolidated_cost|price }}</strong> par mois à l'association.
+          La fourniture d'un abonement <em>{{ service.name }}</em> coûte <strong>{{ unit_consolidated_cost|price }}</strong> par mois à l'association.
         </p>
       </div>
     </div>
@@ -93,7 +93,7 @@ chantiers, et parer aux imprévus. Bien qu'elle n'apparaisse pas ici, il est
     </tbody>
     <tfoot>
       <tr>
-        <th><strong>= Coût mensuel total</strong></th><th class="right aligned"><strong>{{ consolidated_cost|price }}</strong></th>
+        <th><strong>= Coût mensuel total</strong></th><th class="right aligned"><strong>{{ unit_consolidated_cost|price }}</strong></th>
       </tr>
     </tfoot>
     </table>

+ 1 - 1
costs/views.py

@@ -67,6 +67,6 @@ def detail_service(request, pk):
         'goods_uses': goods_uses,
         'services_uses': services_uses,
         'unit_staggered_goods_share': unit_staggered_goods_share,
-        'consolidated_cost': unit_staggered_goods_share + context['unit_recurring_price'],
+        'unit_consolidated_cost': unit_staggered_goods_share + context['unit_recurring_price'],
     })
     return render(request, 'costs/service_detail.html', context)