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 @@
-

Invoices

+

Invoices

diff --git a/osinaweb/billing/templates/listing_pages/items.html b/osinaweb/billing/templates/listing_pages/items.html index 2b18a490..a83a288e 100644 --- a/osinaweb/billing/templates/listing_pages/items.html +++ b/osinaweb/billing/templates/listing_pages/items.html @@ -60,15 +60,15 @@ {% for product in products %} -

{{product.title}}

+

{{product.title}}

-

{{product.item_type}}

+

{{product.item_type}}

-

${{product.amount}}

+

${{product.amount}}

@@ -129,19 +129,19 @@ {% for service in services %} -

{{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}}

diff --git a/osinaweb/billing/templates/listing_pages/orders.html b/osinaweb/billing/templates/listing_pages/orders.html index 5f26d295..dc13d514 100644 --- a/osinaweb/billing/templates/listing_pages/orders.html +++ b/osinaweb/billing/templates/listing_pages/orders.html @@ -5,7 +5,7 @@
-

Orders

+

Orders

@@ -60,15 +60,15 @@ {% for order in orders %} -

{{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}}

diff --git a/osinaweb/customercore/__pycache__/urls.cpython-312.pyc b/osinaweb/customercore/__pycache__/urls.cpython-312.pyc index ad780d28..03734bb5 100644 Binary files a/osinaweb/customercore/__pycache__/urls.cpython-312.pyc and b/osinaweb/customercore/__pycache__/urls.cpython-312.pyc differ diff --git a/osinaweb/customercore/__pycache__/views.cpython-312.pyc b/osinaweb/customercore/__pycache__/views.cpython-312.pyc index 0e8a7865..df8fa745 100644 Binary files a/osinaweb/customercore/__pycache__/views.cpython-312.pyc and b/osinaweb/customercore/__pycache__/views.cpython-312.pyc differ diff --git a/osinaweb/customercore/templates/listing_pages/customer-invoices.html b/osinaweb/customercore/templates/listing_pages/customer-invoices.html index 50332692..76e45116 100644 --- a/osinaweb/customercore/templates/listing_pages/customer-invoices.html +++ b/osinaweb/customercore/templates/listing_pages/customer-invoices.html @@ -5,7 +5,7 @@
-

Invoices

+

Invoices

diff --git a/osinaweb/customercore/templates/listing_pages/customer-orders.html b/osinaweb/customercore/templates/listing_pages/customer-orders.html index 5a091f30..891afe32 100644 --- a/osinaweb/customercore/templates/listing_pages/customer-orders.html +++ b/osinaweb/customercore/templates/listing_pages/customer-orders.html @@ -5,7 +5,7 @@
-

My Orders

+

My Orders

diff --git a/osinaweb/customercore/templates/listing_pages/products.html b/osinaweb/customercore/templates/listing_pages/products.html index 00976714..1e37cd5c 100644 --- a/osinaweb/customercore/templates/listing_pages/products.html +++ b/osinaweb/customercore/templates/listing_pages/products.html @@ -67,9 +67,11 @@
- +
diff --git a/osinaweb/customercore/templates/payment.html b/osinaweb/customercore/templates/payment.html index fb3da4fb..c7b23be0 100644 --- a/osinaweb/customercore/templates/payment.html +++ b/osinaweb/customercore/templates/payment.html @@ -16,7 +16,36 @@
diff --git a/osinaweb/customercore/templates/products/osicard-plans.html b/osinaweb/customercore/templates/products/osicard-plans.html index 7ede451d..d840ca9c 100644 --- a/osinaweb/customercore/templates/products/osicard-plans.html +++ b/osinaweb/customercore/templates/products/osicard-plans.html @@ -13,7 +13,7 @@ -
@@ -123,7 +131,7 @@
-

Invoices

+

Invoices

diff --git a/osinaweb/osinacore/templates/customer_main.html b/osinaweb/osinacore/templates/customer_main.html index 370de6cf..bd445bd5 100644 --- a/osinaweb/osinacore/templates/customer_main.html +++ b/osinaweb/osinacore/templates/customer_main.html @@ -450,11 +450,14 @@ {% endblock modules_section %} - - {% block content %} - replace me - {% endblock content %} + +
+ {% block content %} + replace me + {% endblock content %} +
+
diff --git a/osinaweb/osinacore/templates/details_templates/business-details.html b/osinaweb/osinacore/templates/details_templates/business-details.html index 51718b37..6511ae69 100644 --- a/osinaweb/osinacore/templates/details_templates/business-details.html +++ b/osinaweb/osinacore/templates/details_templates/business-details.html @@ -81,7 +81,7 @@ -
diff --git a/osinaweb/osinacore/templates/listing_pages/customers.html b/osinaweb/osinacore/templates/listing_pages/customers.html index d115ec10..d3f3a388 100644 --- a/osinaweb/osinacore/templates/listing_pages/customers.html +++ b/osinaweb/osinacore/templates/listing_pages/customers.html @@ -5,7 +5,7 @@
-

Customers

+

Customers

- {% for customer in customers %} - - {% if customer.status == 'Active' %} - - {% endif %} - - {% if customer.status == 'Terminated' %} - - {% endif %} - - {% if customer.status == 'Suspended' %} - - {% endif %} - diff --git a/osinaweb/osinacore/templates/listing_pages/daily-reports.html b/osinaweb/osinacore/templates/listing_pages/daily-reports.html index d42c4cf5..f85c2ac4 100644 --- a/osinaweb/osinacore/templates/listing_pages/daily-reports.html +++ b/osinaweb/osinacore/templates/listing_pages/daily-reports.html @@ -4,7 +4,7 @@
-

{% if request.user.is_superuser %}Daily Reports{% else %} My Daily Reports{% endif%}

+

{% if request.user.is_superuser %}Daily Reports{% else %} My Daily Reports{% endif%}

-

Notes

+

Notes

diff --git a/osinaweb/osinacore/templates/listing_pages/project-types.html b/osinaweb/osinacore/templates/listing_pages/project-types.html index 8c2e6e87..4080dff0 100644 --- a/osinaweb/osinacore/templates/listing_pages/project-types.html +++ b/osinaweb/osinacore/templates/listing_pages/project-types.html @@ -5,7 +5,7 @@
-

Project Types

+

Project Types

-

{{type.name}}

+

{{type.name}}

diff --git a/osinaweb/osinacore/templates/listing_pages/businesses.html b/osinaweb/osinacore/templates/listing_pages/businesses.html index 4ed77f8e..9c1d5fcc 100644 --- a/osinaweb/osinacore/templates/listing_pages/businesses.html +++ b/osinaweb/osinacore/templates/listing_pages/businesses.html @@ -6,7 +6,7 @@
-

Businesses

+

Businesses

-

{{business.name}}

+

{{business.name}}

-

{{business.customer.user.first_name}} {{business.customer.user.last_name}}

+

{{business.customer.user.first_name}} {{business.customer.user.last_name}}

-

{{business.type.name}}

+

{{business.type.name}}

-

{{customer.user.first_name}} +

{{customer.user.first_name}} {{customer.user.last_name}}

-

{{customer.user.username}}

+

{{customer.user.username}}

-

{{customer.status}}

-
+ +

{{customer.status}}

-

{{customer.status}}

-
{% if customer.business_set.all %} {% for business in customer.business_set.all %} -

{{business.name}}

+

{{business.name}}

{% endfor %} {% else %} -

None

+

None

{% endif %}
-

{{type.name}}

+

{{type.name}}

@@ -74,7 +74,7 @@ - -

{{reference.name}}

+

{{reference.name}}

-

{{reference.formatted_date}}

+

{{reference.formatted_date}}

@@ -82,7 +82,7 @@ - -

{{position.name}}

+

{{position.name}}

@@ -75,7 +75,7 @@ - -

{{staff.user.email}}

+

{{staff.user.email}}

@@ -95,12 +95,12 @@ user-image -

{{staff.user.first_name}} {{staff.user.last_name}}

+

{{staff.user.first_name}} {{staff.user.last_name}}

-

{{staff.user.email}}

+

{{staff.user.email}}

diff --git a/osinaweb/osinacore/templates/listing_pages/tags.html b/osinaweb/osinacore/templates/listing_pages/tags.html index 4daa3566..a355ac2c 100644 --- a/osinaweb/osinacore/templates/listing_pages/tags.html +++ b/osinaweb/osinacore/templates/listing_pages/tags.html @@ -5,7 +5,7 @@
-

Tags

+

Tags

-

{{tag.name}}

+

{{tag.name}}

@@ -74,7 +74,7 @@ -