buzzn / core

Die Kraft der Gemeinschaft
GNU Affero General Public License v3.0
1 stars 0 forks source link

refactor organization.market_place_id #1202

Closed dottorer closed 6 years ago

dottorer commented 7 years ago

An organization will have several BDEW code for Marktpartner (see https://bdew-codes.de/Codenumbers/BDEWCodes/CodeOverview and search for 'buzzn' or 'SWM') depending on the role they fulfill. Hence we need to refactor as follows:

  1. Remove market_place_id from organization
  2. build joiner for organization / market_role / market_partner_id Example: Buzzn GmbH | electricity_supplier | 9905229000008
  3. Possible market_role are as currently tracked in mode on organization:
    • transmission_system_operator
    • distribution_system_operator
    • metering_point_operator
    • metering_service_provider
    • electricity_supplier
    • balance_group_manager

This way we can track organizations in their various roles and market partner ids. If the organization differs in between role, we can track to separate entities (e.g. "SWM Infrasturktur" vs. "SWM Versorger")

dottorer commented 7 years ago

@mkristian A more concise description of organizations ans their market roles is now described here: https://buzzn-team.atlassian.net/wiki/spaces/DEV/pages/74121246/Flow+View+and+Edit+Organizations