Skip to content

Commit

Permalink
changed model
Browse files Browse the repository at this point in the history
  • Loading branch information
egourlao committed Oct 9, 2016
1 parent 735715b commit 645c067
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/services/excel_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ def generate_receipts_xls(worksheet):
for i in range(9, 13):
worksheet.write(num+1, i, "--")
return worksheet

24 changes: 24 additions & 0 deletions facture/migrations/0020_auto_20161009_0642.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('facture', '0019_auto_20160806_0105'),
]

operations = [
migrations.AddField(
model_name='cheque',
name='date_emission',
field=models.DateField(null=True),
),
migrations.AddField(
model_name='cheque',
name='date_encaissement',
field=models.DateField(null=True),
),
]
2 changes: 2 additions & 0 deletions facture/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class Cheque(models.Model):
valeur = models.FloatField(default=0)
state = models.CharField(max_length=1, choices=CHEQUE_STATES)
destinataire = models.CharField(max_length=255, null=True, default=None)
date_encaissement = models.DateField(null=True)
date_emission = models.DateField(null=True)
commentaire = models.TextField(null=True, default=None)
facturerecue = models.ForeignKey(FactureRecue, null=True)

Expand Down

0 comments on commit 645c067

Please sign in to comment.