aggregate_charges

This module provides a Django management command to aggregate charges for accounts.

Classes

Command

Implements the command-line logic for aggregating charges via the manage.py aggregate_charges command.

Functionality

  • Invokes the aggregate_charges function from smarter.apps.account.models.charge to aggregate account charge records.

  • Provides feedback about the number of aggregated charges via the management command interface.

Usage Example

python manage.py aggregate_charges

class smarter.apps.account.management.commands.aggregate_charges.Command(*args, **kwargs)[source]

Bases: SmarterCommand

Aggregate charges.

handle(*args, **options)[source]

Aggregate the charges.