Skip to main content

settle_msb

Function settle_msb 

Source
pub fn settle_msb(input: &MsbInput) -> Result<SettlementResult, BillingError>
Expand description

Calculate a MSB-Rechnung (PID 31009): MSB → NB / LF / ESA metering service settlement.

The MSB is the invoicer in all seven Anwendungsfälle of the PID overview 4.0; the recipient’s market role varies and is carried on MsbInput::empfaenger. 31009 is Strom-only.

  • Grundgebühr Messstellenbetrieb → MsbG §§6–7, MsbG §2
  • Messdienstleistung → MsbG §2

§Errors

BillingError::InvalidInput or BillingError::MonetaryOverflow.