PyAr / asoc_members

Aplicación web para la gestión de membresías de la Asociación Civil
MIT License
14 stars 23 forks source link

Quitar miembros con pendientes de reporte de miembros #173

Open samsagaz opened 4 years ago

samsagaz commented 4 years ago

Los miembros pendientes de pago no deberían aparecer en /reportes/miembros o se debe corregir ` def get_debt_state(member, limit_year, limit_month): """Return if the member is in debt, and the missing quotas.

The quotas verified are from first payment up to the given year/month limit (including).
"""
# verify the limit is after member started paying
if member.first_payment_year == limit_year:
    if member.first_payment_month > limit_month:
        return []
elif member.first_payment_year > limit_year:
    return []

` ya que explota al listar miembros que no tienen first_payment_month

facundobatista commented 4 years ago

En verdad (aunque el procedimiento que tenemos evita en el 99% que sea así) podemos tener miembros que todavía no pagaron. Así que tenemos que dar soporte a ese caso en el reporte de miembros.

O sea, incluirlos, que no explote, y obviamente mostrar eso en algún lado (por ejemplo, en la lista de pagos: indicar que NINGUNO).