Project

General

Profile

« Previous | Next » 

Revision f28b22e1

Added by Benjamin Dauvergne about 12 years ago

facturation: record patient entry and exit date in invoices

This commit contains a migration, apply with:

./manage.py migrate facturation

View differences:

calebasse/facturation/models.py
256 256
                                    patient_birthdate=patient.birthdate,
257 257
                                    patient_twinning_rank=patient.twinning_rank,
258 258
                                    patient_healthcenter=patient.health_center,
259
                                    patient_other_health_center=patient.other_health_center or '')
259
                                    patient_other_health_center=patient.other_health_center or '',
260
                                    patient_entry_date=patient.entry_date,
261
                                    patient_exit_date=patient.exit_date)
260 262
                            if patient.policyholder != patient.patientcontact:
261 263
                                policy_holder = patient.policyholder
262 264
                                try:
......
630 632
            verbose_name=u"Centre d'assurance maladie",
631 633
            related_name='related_by_patient_invoices',
632 634
            null=True, blank=True)
635
    patient_entry_date = models.DateField(verbose_name=u'Date d\'entrée du patient',
636
            blank=True, null=True)
637
    patient_exit_date = models.DateField(verbose_name=u'Date de sortie du patient',
638
            blank=True, null=True)
633 639
    patient_other_health_center = models.CharField(
634 640
        verbose_name=u"Centre spécifique", max_length=4, default='',
635 641
        blank=True)

Also available in: Unified diff