Skip to content
Snippets Groups Projects
Commit 388a9119 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Merge branch 'payment-backends' into 3-add-payment-processing-ui-2

parents dab820ee 74877fb4
No related branches found
No related tags found
2 merge requests!9Resolve "Add payment processing UI",!3Implement payment backends and interaction
Pipeline #59265 failed
...@@ -85,7 +85,7 @@ class Migration(migrations.Migration): ...@@ -85,7 +85,7 @@ class Migration(migrations.Migration):
), ),
migrations.AddConstraint( migrations.AddConstraint(
model_name='invoice', model_name='invoice',
constraint=models.UniqueConstraint(fields=('transaction_id', 'group'), name='number_uniq_per_group'), constraint=models.UniqueConstraint(fields=('number', 'group'), name='number_uniq_per_group'),
), ),
migrations.AddConstraint( migrations.AddConstraint(
model_name='client', model_name='client',
......
...@@ -69,7 +69,7 @@ class Invoice(BasePayment, PureDjangoModel): ...@@ -69,7 +69,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,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{% 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 %}
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{% has_perm 'tezor.display_billing_rule' user object as can_view_billing_information %} {% has_perm 'tezor.display_billing_rule' user object as can_view_billing_information %}
{% has_perm 'tezor.print_invoice_rule' user object as can_print_invoice %} {% has_perm 'tezor.print_invoice_rule' user object as can_print_invoice %}
<h1>{% trans "Invoice" %} {{ object.transaction_id }} — {{ object.created.date }}</h1> <h1>{% trans "Invoice" %} {{ object.number }} — {{ object.created.date }}</h1>
{% if can_view_invoice_group %} {% if can_view_invoice_group %}
<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>
......
...@@ -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