Product class

Constructors

Product({required String code, required String description, required int quantityDecimals, required String secondaryChargeCode})

Properties

code String
final
description String
final
hashCode int
The hash code for this object.
no setterinherited
quantityDecimals int
final
quantityFormatter → NumberFormat
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryChargeCode String
final

Methods

formatQuantity(Decimal value) String
getInventoryBatch() Future<List<InventoryBatch>>
getQuantityOnHand({String? warehouseCode}) Future<List<InventoryHistory>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) Product
getProductByCode({required String code}) Future<Product?>
getProductByUPCCode({required String upcCode}) Future<Product?>
getProductList({Pagination? pagination, List<String>? productCodes, List<String>? upcCodes}) Future<List<Product>>