salesOrders top-level property
List<FinDoc>
salesOrders
getter/setter pair
Implementation
List<FinDoc> salesOrders = [
FinDoc(
sales: true,
docType: FinDocType.order,
description: 'The first sales order',
otherCompany: customerCompanies[0],
items: [
FinDocItem(
description: products[0].productName,
price: products[0].price,
quantity: Decimal.parse('20'),
),
FinDocItem(
description: products[1].productName,
price: products[1].price,
quantity: Decimal.parse('40'),
),
]),
FinDoc(
sales: true,
docType: FinDocType.order,
description: 'The second sales order',
otherCompany: customerCompanies[1],
items: [
FinDocItem(
description: products[1].productName,
price: products[1].price,
quantity: Decimal.parse('40'),
),
]),
];