alsEntwurf function
Was aus einer Kachel im Korb wird; null, wenn die Kachel nicht buchbar ist.
Implementation
Positionsentwurf? alsEntwurf(KasseArtikel a) {
final satz = a.steuersatz == null ? null : steuersatzZu(a.steuersatz!);
final preis = a.preisCents;
if (satz == null || preis == null || preis < 0) return null;
return Positionsentwurf(
bezeichnung: a.name,
betragCents: preis,
steuersatz: satz,
maxMenge: a.maxMenge?.toInt(),
);
}