StockLevel class

Bestand eines Artikels an einem Standort, Mengen in Tausendstel.

Gleichnamig mit dem StockLevel der Kasse (package:kasseneck_api/pos.dart, dort mit sellable); wer beide Bibliotheken einbindet, nimmt ein Praefix.

Implementers

Constructors

StockLevel({required String articleId, required String locationId, required int onHand, required int reserved, required int available, required int defective, required int sequence, String? updatedAt})
const

Properties

articleId → String
final
available → int
onHand - reserved, vom Server gerechnet; darf negativ sein (die Kasse verkauft trotzdem).
final
defective → int
final
hashCode → int
The hash code for this object.
no setterinherited
locationId → String
final
onHand → int
Verkaufbare Menge am Standort.
final
reserved → int
Reserviert (Checkout im Shop).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sequence → int
Steigt bei jedem Schreiben dieses Bestands um 1. Einen gespeicherten Stand nur ueberschreiben, wenn sequence groesser ist: so richten doppelte oder verspaetete Ereignisse nichts an.
final
updatedAt → String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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