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-5.8.1.tar.gz (63.9 kB view details)

Uploaded Source

Built Distribution

trytond_sale_subscription-5.8.1-py3-none-any.whl (103.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trytond_sale_subscription-5.8.1.tar.gz
  • Upload date:
  • Size: 63.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for trytond_sale_subscription-5.8.1.tar.gz
Algorithm Hash digest
SHA256 7eb9220f8c3f13c995516b31aa368cb3be0eef66219f0e2517017beac5737e5b
MD5 72c5e7b8d7325cbb4c479bd6ac901962
BLAKE2b-256 66f07419b709969b88b3b564b14b218fdb937862932359bcb2e01c1c8f3e0a76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trytond_sale_subscription-5.8.1-py3-none-any.whl
  • Upload date:
  • Size: 103.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for trytond_sale_subscription-5.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b3f9ef55658d6514f82aa04f809042765d046272004d8907ac751bd6bcbf854
MD5 f6602ae1fd7108e87572f5fc57aad0e3
BLAKE2b-256 a4bb523b55835ec9c1d2a8b37daf5dce5a57c7bf0b46e0add774062f56f31b2a

See more details on using hashes here.

Supported by

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