Projet

Général

Profil

« Précédent | Suivant » 

Révision d27b1de7

Ajouté par Mikaël Ates il y a plus de 9 ans

facturation: fix not billable patients details and filtering (fixes #3137).

Voir les différences:

calebasse/facturation/models.py
300 300
                    if not patient.pause:
301 301
                        len_patient_invoiced_hors_pause = len_patient_invoiced_hors_pause + 1
302 302

  
303
                patients = set(acts_not_locked.keys() + acts_not_valide.keys() + \
304
                    acts_not_billable.keys() + acts_diagnostic.keys() + acts_treatment.keys() + \
303
                patients = set(acts_diagnostic.keys() + acts_treatment.keys() + \
305 304
                    acts_losts.keys() + acts_pause.keys() + acts_losts_missing_policy.keys() + \
306 305
                    acts_losts_missing_birthdate.keys())
307 306

  
......
395 394
                                in_o.batch = b['batch']
396 395
                                in_o.save()
397 396

  
398
                            pass
399 397
                    if patient in acts_losts.keys():
400 398
                        # TODO: More details about healthcare
401 399
                        dic['losts'] = acts_losts[patient]
......
417 415
                    if dic:
418 416
                        patients_stats.append((patient, dic))
419 417
                patients_stats = sorted(patients_stats, key=lambda patient: (patient[0].last_name, patient[0].first_name))
420

  
421 418
                len_patients = len(patients_stats)
422 419

  
423 420
                if commit:

Formats disponibles : Unified diff