Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • AlekSIS/onboarding/AlekSIS-App-Tezor
  • sunweaver/AlekSIS-App-Tezor
  • 3lisvequii/AlekSIS-App-Tezor
3 results
Show changes
Commits on Source (2)
......@@ -85,7 +85,7 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
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(
model_name='client',
......
......@@ -56,7 +56,7 @@ class Invoice(BasePayment, PureDjangoModel):
class Meta:
constraints = [
models.UniqueConstraint(fields=["transaction_id", "group"], name="number_uniq_per_group")
models.UniqueConstraint(fields=["number", "group"], name="number_uniq_per_group")
]
@property
......
......@@ -85,7 +85,7 @@ class InvoiceGroupsTable(tables.Table):
class InvoicesTable(tables.Table):
transaction_id = tables.Column()
number = tables.Column()
status = tables.Column()
created = tables.DateColumn()
billing_first_name = tables.Column()
......
......@@ -3,11 +3,11 @@
{% load render_table from django_tables2 %}
{% block browser_title %}{{ object.transaction_id }}{% endblock %}
{% block browser_title %}{{ object.number }}{% endblock %}
{% 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>
{% render_table object.purchased_items_table %}
......
......@@ -3,8 +3,8 @@
{% load i18n %}
{% load material_form %}
{% block page_title %}{% blocktrans %}Make payment for{% endblocktrans %} {{ payment.transaction_id }}{% endblock %}
{% block browser_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.number }}{% endblock %}
{% block content %}
<form action="{{ form.action }}" method="{{ form.method }}">
......