salesInvoices top-level property

List<FinDoc> salesInvoices
getter/setter pair

Implementation

List<FinDoc> salesInvoices = [
  FinDoc(
      sales: true,
      docType: FinDocType.invoice,
      description: 'The first sales invoice',
      otherCompany: customerCompanies[0],
      grandTotal: Decimal.parse('3439.4'),
      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.invoice,
      description: 'The second sales invoice',
      otherCompany: customerCompanies[1],
      grandTotal: Decimal.parse('1939.4'),
      items: [
        FinDocItem(
          description: products[1].productName,
          price: products[1].price,
          quantity: Decimal.parse('10'),
        ),
        FinDocItem(
          description: products[0].productName,
          price: products[0].price,
          quantity: Decimal.parse('50'),
        ),
      ]),
  FinDoc(
      sales: true,
      docType: FinDocType.invoice,
      description: 'The third sales invoice',
      otherCompany: customerCompanies[3],
      grandTotal: Decimal.parse('1003.89'),
      items: [
        FinDocItem(
          description: products[1].productName,
          price: products[1].price,
          quantity: Decimal.parse('1'),
        ),
        FinDocItem(
          description: products[2].productName,
          price: products[2].price,
          quantity: Decimal.parse('10'),
        ),
      ]),
  FinDoc(
      sales: true,
      docType: FinDocType.invoice,
      description: 'The forthg sales invoice',
      otherCompany: customerCompanies[0],
      grandTotal: Decimal.parse('3439.4'),
      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'),
        ),
      ]),
];