purchaseOrders top-level property

List<FinDoc> purchaseOrders
getter/setter pair

Implementation

List<FinDoc> purchaseOrders = [
  FinDoc(
      sales: false,
      docType: FinDocType.order,
      description: 'The first order',
      otherCompany: supplierCompanies[0],
      grandTotal: Decimal.parse('144.2'),
      items: [
        FinDocItem(
            description: products[0].productName,
            quantity: Decimal.parse('20'),
            price: Decimal.parse('7.21'))
      ]),
  FinDoc(
      sales: false,
      docType: FinDocType.order,
      description: 'The second order',
      otherCompany: supplierCompanies[1],
      grandTotal: Decimal.parse('688.4'),
      items: [
        FinDocItem(
            description: products[1].productName,
            quantity: Decimal.parse('40'),
            price: Decimal.parse('17.21')),
      ]),
  FinDoc(
      sales: false,
      docType: FinDocType.order,
      description: 'The third order',
      otherCompany: supplierCompanies[0],
      grandTotal: Decimal.parse('2232.6'),
      items: [
        FinDocItem(
            description: products[2].productName,
            quantity: Decimal.parse('60'),
            price: Decimal.parse('37.21'))
      ]),
  FinDoc(
      sales: false,
      docType: FinDocType.order,
      description: 'The fourth order',
      otherCompany: supplierCompanies[1],
      grandTotal: Decimal.parse('3776.8'),
      items: [
        FinDocItem(
            description: products[3].productName,
            quantity: Decimal.parse('80'),
            price: Decimal.parse('47.21')),
      ]),
  FinDoc(
      sales: false,
      docType: FinDocType.order,
      description: 'The fifth order',
      otherCompany: supplierCompanies[1],
      grandTotal: Decimal.parse('50.00'),
      items: [
        FinDocItem(
            description: products[1].productName,
            quantity: Decimal.parse('5'),
            price: Decimal.parse('10.00')),
      ]),
  FinDoc(
      sales: false,
      docType: FinDocType.order,
      description: 'The sixth order',
      otherCompany: supplierCompanies[0],
      grandTotal: Decimal.parse('30.00'),
      items: [
        FinDocItem(
            description: products[0].productName,
            quantity: Decimal.parse('10'),
            price: Decimal.parse('3.00'))
      ]),
];