Project

General

Profile

« Previous | Next » 

Revision 05cadd08

Added by Benjamin Dauvergne over 11 years ago

facturation: add field to hold policyholder address

View differences:

calebasse/facturation/models.py
608 608
    # we copy his informations here
609 609
    patient_id = models.IntegerField(blank=True, null=True)
610 610
    patient_last_name = models.CharField(max_length=128,
611
            verbose_name=u'Nom du patient')
611
            verbose_name=u'Nom du patient', default='', blank=True)
612 612
    patient_first_name = models.CharField(max_length=128,
613
            verbose_name=u'Prénom(s) du patient', blank=True, null=True)
613
            verbose_name=u'Prénom(s) du patient', default='', blank=True)
614 614
    patient_social_security_id = models.CharField(max_length=13,
615
            verbose_name=u"NIR", null=True, blank=True)
615
            verbose_name=u"NIR", default='', blank=True)
616 616
    patient_birthdate = models.DateField(verbose_name=u"Date de naissance",
617 617
            null=True, blank=True)
618 618
    patient_twinning_rank = models.IntegerField(
......
623 623
            related_name='related_by_patient_invoices',
624 624
            null=True, blank=True)
625 625
    patient_other_health_center = models.CharField(
626
        verbose_name=u"Centre spécifique", max_length=4, null=True, blank=True)
626
        verbose_name=u"Centre spécifique", max_length=4, default='',
627
        blank=True)
627 628
    # policy holder informations
628 629
    policy_holder_id = models.IntegerField(blank=True, null=True)
629 630
    policy_holder_last_name = models.CharField(max_length=128,
630
            verbose_name=u'Nom de l\'assuré', blank=True)
631
            verbose_name=u'Nom de l\'assuré', default='', blank=True)
631 632
    policy_holder_first_name = models.CharField(max_length=128,
632
            verbose_name=u'Prénom(s) de l\' assuré', blank=True)
633
            verbose_name=u'Prénom(s) de l\' assuré', default='', blank=True)
633 634
    policy_holder_social_security_id = models.CharField(max_length=13,
634
            verbose_name=u"NIR de l\'assuré", blank=True)
635
            verbose_name=u"NIR de l\'assuré", default='', blank=True)
635 636
    policy_holder_healthcenter = models.ForeignKey('ressources.HealthCenter',
636 637
            verbose_name=u"Centre d'assurance maladie de l\'assuré",
637 638
            related_name='related_by_policy_holder_invoices',
638 639
            null=True, blank=True)
640
    policy_holder_address = models.CharField(max_length=128,
641
            verbose_name=u'Adresse de l\'assuré', default='', blank=True)
642

  
639 643
    created = models.DateTimeField(u'Création', auto_now_add=True)
640 644
    invoicing = models.ForeignKey('facturation.Invoicing',
641 645
        on_delete='PROTECT')

Also available in: Unified diff