rentalSalesOrders top-level property

List<FinDoc> rentalSalesOrders
getter/setter pair

Implementation

List<FinDoc> rentalSalesOrders = [
  FinDoc(
      sales: true,
      docType: FinDocType.order,
      description: 'The first rental sales order',
      otherCompany: customerCompanies[0],
      items: [
        FinDocItem(
          description: products[2].productName,
          price: products[2].price,
          quantity: Decimal.parse('2'), // nuber of days
          rentalFromDate: DateTime.now().add(const Duration(days: 2)),
          rentalThruDate: DateTime.now().add(const Duration(days: 4)),
        ),
      ]),
];