assets top-level property
List<Asset>
assets
getter/setter pair
Implementation
List<Asset> assets = [
Asset(
assetName: 'asset name 1',
availableToPromise: Decimal.parse('100'),
quantityOnHand: Decimal.parse('100'),
product: products[0],
statusId: assetStatusValues[0],
acquireCost: Decimal.parse('11'),
receivedDate: DateTime.now().subtract(const Duration(days: 4)),
location: locations[0],
),
Asset(
assetName: 'asset name 2',
availableToPromise: Decimal.parse('200'),
quantityOnHand: Decimal.parse('200'),
product: products[1],
statusId: assetStatusValues[0],
acquireCost: Decimal.parse('22'),
receivedDate: DateTime.now().subtract(const Duration(days: 4)),
location: locations[1]),
Asset(
assetName: 'asset name 3 for rental',
availableToPromise: Decimal.parse('1'),
quantityOnHand: Decimal.parse('1'),
product: products[2], // only products 2 or rental test fails
statusId: assetStatusValues[0],
acquireCost: Decimal.parse('33'),
receivedDate: DateTime.now().subtract(const Duration(days: 4)),
),
Asset(
assetName: 'asset name 4 to be deleted',
availableToPromise: Decimal.parse('400'),
quantityOnHand: Decimal.parse('400'),
product: products[0],
statusId: assetStatusValues[0],
acquireCost: Decimal.parse('44'),
receivedDate: DateTime.now().subtract(const Duration(days: 4)),
),
];