mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-05-18 08:22:47 +00:00
Compare commits
1 Commits
a8e7df7218
...
fcba5789e1
Author | SHA1 | Date | |
---|---|---|---|
|
fcba5789e1 |
@ -63,7 +63,7 @@ class Invoice(models.Model):
|
|||||||
address = models.TextField(
|
address = models.TextField(
|
||||||
verbose_name=_("Address"),
|
verbose_name=_("Address"),
|
||||||
)
|
)
|
||||||
|
|
||||||
date = models.DateField(
|
date = models.DateField(
|
||||||
default=date.today,
|
default=date.today,
|
||||||
verbose_name=_("Date"),
|
verbose_name=_("Date"),
|
||||||
|
@ -69,11 +69,9 @@ class TestInvoices(TestCase):
|
|||||||
response = self.client.post(reverse("treasury:invoice_create"), data={
|
response = self.client.post(reverse("treasury:invoice_create"), data={
|
||||||
"id": 42,
|
"id": 42,
|
||||||
"object": "Same object",
|
"object": "Same object",
|
||||||
"quotation": True,
|
|
||||||
"description": "Longer description",
|
"description": "Longer description",
|
||||||
"name": "Me and others",
|
"name": "Me and others",
|
||||||
"address": "Alwways earth",
|
"address": "Alwways earth",
|
||||||
"payment_date": "Maybe someday...",
|
|
||||||
"acquitted": True,
|
"acquitted": True,
|
||||||
"products-0-designation": "Designation",
|
"products-0-designation": "Designation",
|
||||||
"products-0-quantity": 1,
|
"products-0-quantity": 1,
|
||||||
@ -99,10 +97,8 @@ class TestInvoices(TestCase):
|
|||||||
"object": "Same object",
|
"object": "Same object",
|
||||||
"description": "Longer description",
|
"description": "Longer description",
|
||||||
"name": "Me and others",
|
"name": "Me and others",
|
||||||
"quotation": False,
|
|
||||||
"address": "Always earth",
|
"address": "Always earth",
|
||||||
"acquitted": True,
|
"acquitted": True,
|
||||||
"payment_date": "Never",
|
|
||||||
"locked": True,
|
"locked": True,
|
||||||
"products-0-designation": "Designation",
|
"products-0-designation": "Designation",
|
||||||
"products-0-quantity": 1,
|
"products-0-quantity": 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user