Gå til innhold

Prosessflyt: Lager og beholdning

flowchart LR
    L[LAGRE LASTING<br/>liter + temp + depot] --> S[Omregn til<br/>standardliter]
    S --> P[FreeInf2: + på bilen]
    D[Ferdigmeld ordre] --> M[FreeInf2: − fra bilen]
    P --> B[Bilens beholdning]
    M --> B
    B --> A{DIFF ≠ 0 ved dagslutt?}
    A -->|ja| N[NULLSTILL AVVIK]
sequenceDiagram
    autonumber
    participant S as Sjåfør (app)
    participant API as Connect API
    participant V as Visma (FreeInf2)
    S->>API: LAGRE LASTING (liter, temp, depot)
    API->>V: FreeInf2 + på bilen (standardliter)
    Note over API,V: ferdigmelding trekker FreeInf2 − fra bilen
    S->>API: NULLSTILL AVVIK (ved diff)
    API->>V: avvikstransaksjon (SaveDeviations)

Relaterte sider