diff --git a/osinaweb/billing/__pycache__/models.cpython-312.pyc b/osinaweb/billing/__pycache__/models.cpython-312.pyc index a52836bd..7f78fd0c 100644 Binary files a/osinaweb/billing/__pycache__/models.cpython-312.pyc and b/osinaweb/billing/__pycache__/models.cpython-312.pyc differ diff --git a/osinaweb/billing/__pycache__/urls.cpython-312.pyc b/osinaweb/billing/__pycache__/urls.cpython-312.pyc index 2c4775dd..7688d1d4 100644 Binary files a/osinaweb/billing/__pycache__/urls.cpython-312.pyc and b/osinaweb/billing/__pycache__/urls.cpython-312.pyc differ diff --git a/osinaweb/billing/migrations/0039_recurringcycle_cycle_price.py b/osinaweb/billing/migrations/0039_recurringcycle_cycle_price.py new file mode 100644 index 00000000..63e32fc5 --- /dev/null +++ b/osinaweb/billing/migrations/0039_recurringcycle_cycle_price.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.4 on 2024-04-23 11:44 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('billing', '0038_alter_invoice_pdf'), + ] + + operations = [ + migrations.AddField( + model_name='recurringcycle', + name='cycle_price', + field=models.FloatField(null=True), + ), + ] diff --git a/osinaweb/billing/migrations/__pycache__/0039_recurringcycle_cycle_price.cpython-312.pyc b/osinaweb/billing/migrations/__pycache__/0039_recurringcycle_cycle_price.cpython-312.pyc new file mode 100644 index 00000000..ce975d65 Binary files /dev/null and b/osinaweb/billing/migrations/__pycache__/0039_recurringcycle_cycle_price.cpython-312.pyc differ diff --git a/osinaweb/billing/models.py b/osinaweb/billing/models.py index 8316979e..49841910 100644 --- a/osinaweb/billing/models.py +++ b/osinaweb/billing/models.py @@ -23,6 +23,7 @@ class Item(models.Model): class RecurringCycle(models.Model): item = models.ForeignKey(Item, on_delete=models.CASCADE, null=True) months = models.IntegerField() + cycle_price = models.FloatField(null=True) def __str__(self): return f"{self.months} months" diff --git a/osinaweb/billing/templates/listing_pages/invoices.html b/osinaweb/billing/templates/listing_pages/invoices.html index 8c2a6720..01a14386 100644 --- a/osinaweb/billing/templates/listing_pages/invoices.html +++ b/osinaweb/billing/templates/listing_pages/invoices.html @@ -7,7 +7,7 @@
{{product.title}}
+{{product.title}}
{{product.item_type}}
+{{product.item_type}}
${{product.amount}}
+${{product.amount}}
{{service.title}}
+{{service.title}}
{{service.customer.user.first_name}} {{service.customer.user.last_name}}
+{{service.customer.user.first_name}} {{service.customer.user.last_name}}
{{service.item_type}}
+{{service.item_type}}
${{service.amount}}
+${{service.amount}}
{{order.order_id}}
+{{order.order_id}}
{{order.customer.user.first_name}} {{order.customer.user.last_name}}
+{{order.customer.user.first_name}} {{order.customer.user.last_name}}
${{order.get_cart_total}}
+${{order.get_cart_total}}