CalibreAbstract<A extends ArticleRawAbstract> class abstract

A Calibre is composed of articles and set the stock unit It can contain a single article ex: cola x1 Or multiple, each having its own units/piece, ex : cola x1, cola x6, cola x100 The Calibre eases stock reconciliation by aggregating each stocklevel in one total figure

The Calibre is also handy to wrap different kinds of articles Such as an ArticleBasket Using this common wrapper allows us to wield the same object type

Inheritance
Implementers

Constructors

CalibreAbstract.new({required int id, required String title, required DateTime creationDate, DateTime? updateDate, required List<A> articles, required ArticleKind kind, required bool status, StockUnit stockUnit = StockUnit.unit, DateTime? statusUpdateDate})
const

Properties

articles List<A>
final
creationDate DateTime
finalinherited
hashCode int
The hash code for this object.
no setteroverride
hasSingleArticle bool
no setter
id int
final
kind ArticleKind
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status bool
final
statusUpdateDate DateTime?
final
stockUnit StockUnit
final
title String
finalinherited
updateDate DateTime?
finalinherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
override