cadrumo.domain.contribuyente.marriage_facts module

Marriage-period predicates consumed by Modelo profile bindings.

marriage_full_year(marriage_date, filing_year)[source]

True when the marriage predates the filing year (vigente todo el año).

Return type:

bool

Parameters:
  • marriage_date (date)

  • filing_year (int)

marriage_month_start(marriage_date, filing_year)[source]

Return the first month married in filing_year, or None when full-year.

When the marriage occurred before the filing year the form’s casilla 0246 is left at 1 (the standard primer-mes for a full-year marriage). When the marriage occurred during the filing year the actual month is returned. When the marriage occurred after the filing year (future date) None is returned and no fact is written.

Return type:

int | None

Parameters:
  • marriage_date (date)

  • filing_year (int)