Skip to main content

Tryton module for subscription

Project description

The sale subscription module defines subscription, services and recurrence rule models.

Subscription

A subscription defines how some recurring services are periodically invoiced. The invoice is generated based on the consumption of each services. Here is the extensive list of the fields:

  • Party: The customer.

  • Contact: The contact who placed the order.

  • Invoice Party: An optional different party to invoice.

  • Invoice Address: The invoice address of the customer.

  • Number: The internal reference of the subscription.

  • Reference: The optional external reference of the subscription.

  • Description: An optional description for the subscription.

  • Start Date: The date at which the subscription starts.

  • End Date: The optional end date of the subscription.

  • Invoice Start Date: The date at which the invoice starts to be generated.

  • Invoice Recurrence: The definition of the invoicing recurrence.

  • Payment Term: The payment term to apply on the invoices.

  • Currency: Define the currency to use for the subscription. All service prices will be computed accordingly.

  • Lines:

    • Service: A required reference to the service subscribed.

    • Description: The description of the service subscribed.

    • Consumption Recurrence: The optional recurrence of consumption of the service.

    • Quantity: The quantity consumed on each occurrence.

    • Unit: The unit of measure of the quantity.

    • Unit Price: The unit price of the service expressed in the currency of the subscription.

    • Start Date: An optional later start date than the subscription.

    • End Date: An optional earlier end date than the subscription.

  • States: The state of the subscription. May take one of the following values: Draft, Quotation, Running, Closed, Cancelled.

  • Company: The company which issue the sale order.

A running subscription can be modified by going back to draft and edit. Some field may not more be editable if the consumption has already started. The draft subscription is momentary stopped until it is set back to running.

The consumptions are created by schedulers or by a wizard. Idem for the creation of the invoices.

Service

A subscription service defines the default consumption of a product. It is composed of the fields:

  • Product: A product of type service.

  • Consumption Recurrence: The recurrence at which the service is consumed.

  • Consumption Delay: A delay to apply between the date the consumption is created and the date of the consumption.

Recurrence Rule

It defines combination of rules which compute the occurrence dates.

  • Name: The name of the rule.

  • Rules:

    • Exclusive: Define if the rule excludes the resulted dates.

    • Frequency: Daily, Weekly, Monthly, Yearly.

    • Interval: The interval of the frequency

    • By Week Day: Defines the list of weekdays where the recurrence will be applied.

    • By Month Day: Defines the list of month days to apply the recurrence to.

    • By Year Day: Defines the list of year days to apply the recurrence to.

    • By Week Number: Defines the list of week numbers (ISO8601) to apply the recurrence to.

    • By Month: Defines the list of months to apply the recurrence to.

    • By Position: Defines the list of occurrence positions.

    • Week Start Day.

The computation of occurrences is base on the python-dateutil library.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trytond_sale_subscription-7.8.1.tar.gz (69.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trytond_sale_subscription-7.8.1-py3-none-any.whl (120.6 kB view details)

Uploaded Python 3

File details

Details for the file trytond_sale_subscription-7.8.1.tar.gz.

File metadata

File hashes

Hashes for trytond_sale_subscription-7.8.1.tar.gz
Algorithm Hash digest
SHA256 7fa6e778667c67e4e557a420dcc6df50bc0a83fe27366e2ea7e836d64a4bd982
MD5 c53ae14d200d641f0dff427125747904
BLAKE2b-256 c71aff73272584d67a18b56fa06db15ac149e85a35ea1fe81135123879e1a43e

See more details on using hashes here.

File details

Details for the file trytond_sale_subscription-7.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for trytond_sale_subscription-7.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b41b84e4f76d8a7f8988839bab52ddf995122fc5591de9a5d0dc158cfa48e7cf
MD5 8ac924f906b0b93acaddcaca6329d410
BLAKE2b-256 2f3fe8bd010b5372a4e658e63d7df5b6fae63c85027600f85796d38d463b52b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page