pub struct MmmInput {
pub malo_id: String,
pub nb_mp_id: String,
pub lf_mp_id: String,
pub rechnungsnummer: String,
pub period_from: Date,
pub period_to: Date,
pub invoice_date: Date,
pub due_date: Date,
pub actual_kwh: Decimal,
pub profil_kwh: Decimal,
pub mehr_preis_ct_per_kwh: Decimal,
pub minder_preis_ct_per_kwh: Decimal,
}Expand description
Input for Mehr-/Mindermengen (MMM) settlement invoice calculation.
Covers:
- PID 31002 —
MMM-Stornorechnung NNE Stromused for Mehr-/Mindermengen settlement between NB and LF.
Mehr-/Mindermengen settle the difference between the LF’s forecast profile (SLP standard load profile) and the actual measured consumption.
- Mehrmengen (positive deviation): actual > profil → LF owes NB
- Mindermengen (negative deviation): actual < profil → NB owes LF
The settlement amount is the algebraic sum of both positions. It can be negative (i.e. a credit note from NB to LF) when Mindermengen dominate.
Fields§
§malo_id: String11-digit Marktlokations-ID.
nb_mp_id: StringInvoice sender — Netzbetreiber MP-ID.
lf_mp_id: StringInvoice recipient — Lieferant MP-ID.
rechnungsnummer: StringUnique invoice number.
period_from: DateStart of billing period.
period_to: DateEnd of billing period.
invoice_date: DateInvoice issue date.
due_date: DatePayment due date.
actual_kwh: DecimalActual measured consumption in kWh (from MSCONS / MeterBillingPeriod).
profil_kwh: DecimalStandard load profile (SLP) forecast consumption in kWh.
mehr_preis_ct_per_kwh: DecimalMehrmengen price in ct/kWh (from PreisblattNetznutzung MMM position).
minder_preis_ct_per_kwh: DecimalMindermengen price in ct/kWh (from PreisblattNetznutzung MMM position).