cadrumo.application.aggregation.modelo_bindings_renta_expenses module

Modelo 100 estimación-directa expense source resolver.

This module owns the repository-backed Renta expense projection and the provenance it emits. The remaining modelo-binding resolvers stay in modelo_bindings; shared source-mesh helpers remain there until their own owning concern moves.

class LedgerRentaGastosEstimacionDirectaAggregationSourceResolver(*, ports, prorrata_register_repository, usage_ratio_profile_loader)[source]

Bases: object

Resolve ledger_renta_gastos_estimacion_directa_aggregation bindings for Renta expenses.

Owns BindingSourceKind.LEDGER_RENTA_GASTOS_ESTIMACION_DIRECTA_AGGREGATION and folds transaction rows plus purchase-invoice evidence through aggregate_renta_ledger_expenses_from_repositories(). It reports source issues and unrouted deductible expenses on the returned CalculationSourceResolution.

Parameters:
resolver_id: ClassVar[str]
owned_sources: ClassVar[tuple[BindingSourceKind, ...]]
resolve(context)[source]

Resolve the ledger Renta gastos estimación directa aggregation binding for context.

Return type:

CalculationSourceResolution

Returns:

An empty resolution when the revision declares no such binding source, a degraded resolution on repository failure, or the aggregated CalculationSourceResolution with its binding values, diagnostics, and provenance.

Parameters:

context (CalculationSourceContext)