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:
objectResolve
ledger_renta_gastos_estimacion_directa_aggregationbindings for Renta expenses.Owns
BindingSourceKind.LEDGER_RENTA_GASTOS_ESTIMACION_DIRECTA_AGGREGATIONand folds transaction rows plus purchase-invoice evidence throughaggregate_renta_ledger_expenses_from_repositories(). It reports source issues and unrouted deductible expenses on the returnedCalculationSourceResolution.- Parameters:
ports (InvoiceCatalogueReadPorts)
prorrata_register_repository (ProrrataRegisterRepositoryProtocol)
usage_ratio_profile_loader (UsageRatioProfileLoader)
-
owned_sources:
ClassVar[tuple[BindingSourceKind,...]]¶
- resolve(context)[source]¶
Resolve the ledger Renta gastos estimación directa aggregation binding for
context.- Return type:
- Returns:
An empty resolution when the revision declares no such binding source, a degraded resolution on repository failure, or the aggregated
CalculationSourceResolutionwith its binding values, diagnostics, and provenance.- Parameters:
context (CalculationSourceContext)