<commit_before>Domain Criteria
===============

This file holds a log of statements that capture conclusions on discussions with the stakeholders about the domain and the functionality.

People involved in the discussion are [marked within brackets].

**Embrace the change: These are not immutable laws. Just a log to know who you are to talk if you consider them wrong.**


Invoices
--------

- Generation kWh Line Product Name format 'Pn Gkwh' [Marc-Agusti]
- Even when a contract hasn't got GkWh shares, the invoice line is created, with quantity 0 [Marc-Agusti]

Production and shares
---------------------

- Production must be divided by the total shares of each activated plant. [Nuria-David]
	- Not by the total of active owned shares. [Nuria-David]
	- Not all the production has to be dealt if not all shares have been bought [Nuria-David]
- Plants are activated for generation at an arbitrary date. [Nuria-David]
- There is no deactivation date for plants (by now, to be reconsidered later). [Nuria-David]
- Activation date for owned shares is fixed by adding a given number of days (delay, _carencia_) to the purchase date [Nuria-David]
- Delay can be different for share batches. Batches can be set either
	- by selecting by purchase date (between two dates) or
	- by purchasing order (till the nth action). [Nuria-David]

Doubts
------

- DOUBT: [David] Do shares expire a number of years after the purchase date or after the activation date?
- DOUBT: [David] Can a plant be activated before metering is available? Consequences?
- DOUBT: [David] Can a plant be activated after metering is available? Consequences?








<commit_msg>doc: purchase date is order date not payment date<commit_after>Domain Criteria
===============

This file holds a log of statements that capture conclusions on discussions with the stakeholders about the domain and the functionality.

People involved in the discussion are [marked within brackets].

**Embrace the change: These are not immutable laws. Just a log to know who you are to talk if you consider them wrong.**


Invoices
--------

- Generation kWh Line Product Name format 'Pn Gkwh' [Marc-Agusti]
- Even when a contract hasn't got GkWh shares, the invoice line is created, with quantity 0 [Marc-Agusti]

Production and shares
---------------------

- Production must be divided by the total shares of each activated plant. [Nuria-David]
	- Not by the total of active owned shares. [Nuria-David]
	- Not all the production has to be dealt if not all shares have been bought [Nuria-David]
- Plants are activated for generation at an arbitrary date. [Nuria-David]
- There is no deactivation date for plants (by now, to be reconsidered later). [Nuria-David]
- Activation date for owned shares is fixed by adding a given number of days (delay, _carencia_) to the purchase date [Nuria-David]
- Delay can be different for share batches. Batches can be set either
	- by selecting by purchase date (between two dates) or
	- by purchasing order (till the nth action). [Nuria-David]
- The purchase date is the date the member orders, not the payment day [Gijsbert-Marc-Eduard]

Doubts
------

- DOUBT: [David] Do shares expire a number of years after the purchase date or after the activation date?
- DOUBT: [David] Can a plant be activated before metering is available? Consequences?
- DOUBT: [David] Can a plant be activated after metering is available? Consequences?









{'fraction_non_alphanumeric': 0.08382009345794393, 'fraction_numerical': 0.0005841121495327102, 'mean_word_length': 3.7372060857538036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6473942', 'n_tokens_mistral': 957, 'n_tokens_neox': 885, 'n_words': 502}