1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 09:58:23 +02:00

Create, view and update remittances

This commit is contained in:
Yohann D'ANELLO
2020-03-22 18:27:22 +01:00
parent 3551568de5
commit 5fd472d408
9 changed files with 94 additions and 12 deletions

View File

@ -5,7 +5,7 @@ import django_tables2 as tables
from django.utils.translation import gettext_lazy as _
from django_tables2 import A
from .models import Invoice
from .models import Invoice, Remittance
class InvoiceTable(tables.Table):
@ -30,3 +30,13 @@ class InvoiceTable(tables.Table):
model = Invoice
template_name = 'django_tables2/bootstrap4.html'
fields = ('id', 'name', 'object', 'acquitted', 'invoice',)
class RemittanceTable(tables.Table):
class Meta:
attrs = {
'class': 'table table-condensed table-striped table-hover'
}
model = Remittance
template_name = 'django_tables2/bootstrap4.html'
fields = ('id', 'date', 'type', 'comment', 'size', 'amount', 'edit',)