PosArticle class

Artikel, wie ihn die Kasse für Kacheln und Belegpositionen braucht.

Constructors

PosArticle({required String id, required String name, required String unit, required bool visible, required int sort, required bool active, int? unitPriceCents, num? vatRate, String? groupId, String? revenueGroupId, QuantityRule? quantityRule, bool? askQuantity, num? maxQuantity, List<String>? stockLocationIds, String? number, String? ean, String? internalCode, bool? stockTracked})
const
PosArticle.fromJson(Map<String, dynamic> json)
Aus der Drahtform /api/v3 (tile {visible, sort}, quantityRule, askQuantity, maxQuantity, revenueGroupId, stockLocationIds, number, ean, internalCode, stockTracked).
factory

Properties

active → bool
final
askQuantity → bool?
Gespeichert: Kasse fragt nach der Menge; null = Vorgabe der Einheit.
final
ean → String?
EAN/GTIN, wie gespeichert; null = keine.
final
groupId → String?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
internalCode → String?
Interner Code des Betriebs (eigener Barcode/QR); null = keiner.
final
maxQuantity → num?
Höchstmenge je Beleg; null = keine Grenze.
final
name → String
final
number → String?
Artikelnummer des Betriebs; null = keine. Diese und die beiden folgenden Texte (Scanner-Suche) kommen unveraendert durch (fuehrende Nullen, Schreibweise, Leerraum); nur ein leerer Text (auch reiner Leerraum) oder ein anderer Typ wird null.
final
quantityRule → QuantityRule?
Gespeicherte Mengenregel; null = Vorgabe der Einheit.
final
revenueGroupId → String?
Erlösgruppe (Buchhaltung, Draht revenueGroupId); null = keine.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sort → int
final
stockLocationIds → List<String>?
Standorte, an denen der Artikel gefuehrt wird (Lager); null, wenn der Artikel keine Angabe traegt. Wie die Kasse daraus Kacheln filtert, entscheidet die Oberflaeche.
final
stockTracked → bool?
Bestandsgefuehrt (Lager-Modul). null, wenn die Antwort keine Angabe traegt (aeltere Backends) – dann nicht aus anderen Feldern ableiten.
final
unit → String
final
unitPriceCents → int?
Einzelpreis in ganzen Cent; null = kein Preis hinterlegt.
final
vatRate → num?
Steuersatz in Prozent, roh; null = keiner hinterlegt.
final
visible → bool
Im Panel für die Kasse freigegeben.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Zurück in die Drahtform, aus der PosArticle.fromJson wieder liest (für Zwischenspeicher, nicht fürs Backend).
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

fields → const Set<String>
Die Felder der Antwort /v3, die dieses Modell liest (Feldmengen-Waechter in test/kasse_v3_test.dart gegen v3/antworten/kasse.json).
tileFields → const Set<String>
Die Felder von tile.