Skip to content
Snippets Groups Projects
Verified Commit df3156a3 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Use number instead of transaction_id

parent 9d5664c1
No related branches found
No related tags found
1 merge request!3Implement payment backends and interaction
Pipeline #59247 canceled
...@@ -56,7 +56,7 @@ class Invoice(BasePayment, PureDjangoModel): ...@@ -56,7 +56,7 @@ class Invoice(BasePayment, PureDjangoModel):
class Meta: class Meta:
constraints = [ constraints = [
models.UniqueConstraint(fields=["transaction_id", "group"], name="number_uniq_per_group") models.UniqueConstraint(fields=["number", "group"], name="number_uniq_per_group")
] ]
@property @property
......
...@@ -85,7 +85,7 @@ class InvoiceGroupsTable(tables.Table): ...@@ -85,7 +85,7 @@ class InvoiceGroupsTable(tables.Table):
class InvoicesTable(tables.Table): class InvoicesTable(tables.Table):
transaction_id = tables.Column() number = tables.Column()
status = tables.Column() status = tables.Column()
created = tables.DateColumn() created = tables.DateColumn()
billing_first_name = tables.Column() billing_first_name = tables.Column()
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
{% load render_table from django_tables2 %} {% load render_table from django_tables2 %}
{% block browser_title %}{{ object.transaction_id }}{% endblock %} {% block browser_title %}{{ object.number }}{% endblock %}
{% block content %} {% block content %}
<h1>{% trans "Invoice" %} {{ object.transaction_id }} — {{ object.created.date }}</h1> <h1>{% trans "Invoice" %} {{ object.number }} — {{ object.created.date }}</h1>
<a class="btn colour-primary waves-effect waves-light" href="{% url 'invoice_group_by_pk' object.group.pk %}">{% trans "Back" %}</a> <a class="btn colour-primary waves-effect waves-light" href="{% url 'invoice_group_by_pk' object.group.pk %}">{% trans "Back" %}</a>
{% render_table object.purchased_items_table %} {% render_table object.purchased_items_table %}
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
{% load i18n %} {% load i18n %}
{% load material_form %} {% load material_form %}
{% block page_title %}{% blocktrans %}Make payment for{% endblocktrans %} {{ payment.transaction_id }}{% endblock %} {% block page_title %}{% blocktrans %}Make payment for{% endblocktrans %} {{ payment.number }}{% endblock %}
{% block browser_title %}{% blocktrans %}Make payment for{% endblocktrans %} {{ payment.transaction_id }}{% endblock %} {% block browser_title %}{% blocktrans %}Make payment for{% endblocktrans %} {{ payment.number }}{% endblock %}
{% block content %} {% block content %}
<form action="{{ form.action }}" method="{{ form.method }}"> <form action="{{ form.action }}" method="{{ form.method }}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment