add invoice_date field to Expense and Revenue models
This commit is contained in:
parent
29c468ab4a
commit
e8edb24233
23
src/economy/migrations/0005_auto_20190120_1532.py
Normal file
23
src/economy/migrations/0005_auto_20190120_1532.py
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# Generated by Django 2.1.3 on 2019-01-20 14:32
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('economy', '0004_auto_20181120_1835'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='expense',
|
||||||
|
name='invoice_date',
|
||||||
|
field=models.DateTimeField(blank=True, help_text='The invoice date for this Expense. This must match the invoice date on the documentation uploaded below.', null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='revenue',
|
||||||
|
name='invoice_date',
|
||||||
|
field=models.DateTimeField(blank=True, help_text='The invoice date for this Revenue. This must match the invoice date on the documentation uploaded below.', null=True),
|
||||||
|
),
|
||||||
|
]
|
|
@ -45,6 +45,12 @@ class Revenue(CampRelatedModel, UUIDModel):
|
||||||
upload_to='revenues/',
|
upload_to='revenues/',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
invoice_date = models.DateTimeField(
|
||||||
|
help_text='The invoice date for this Revenue. This must match the invoice date on the documentation uploaded below.',
|
||||||
|
blank=True,
|
||||||
|
null=True,
|
||||||
|
)
|
||||||
|
|
||||||
invoice_fk = models.ForeignKey(
|
invoice_fk = models.ForeignKey(
|
||||||
'shop.Invoice',
|
'shop.Invoice',
|
||||||
on_delete=models.PROTECT,
|
on_delete=models.PROTECT,
|
||||||
|
@ -162,6 +168,12 @@ class Expense(CampRelatedModel, UUIDModel):
|
||||||
upload_to='expenses/',
|
upload_to='expenses/',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
invoice_date = models.DateTimeField(
|
||||||
|
help_text='The invoice date for this Expense. This must match the invoice date on the documentation uploaded below.',
|
||||||
|
blank=True,
|
||||||
|
null=True,
|
||||||
|
)
|
||||||
|
|
||||||
responsible_team = models.ForeignKey(
|
responsible_team = models.ForeignKey(
|
||||||
'teams.Team',
|
'teams.Team',
|
||||||
on_delete=models.PROTECT,
|
on_delete=models.PROTECT,
|
||||||
|
|
Loading…
Reference in a new issue