numTotalTaxAndMarkdownsIncluded property

num? get numTotalTaxAndMarkdownsIncluded

Implementation

num? get numTotalTaxAndMarkdownsIncluded {
  switch (ticketType) {
    case TicketType.sell:
      return totalPriceTaxAndMarkdownsIncluded;

    case TicketType.sellDeferred:
      return totalPriceTaxAndMarkdownsIncluded;

    case TicketType.sellCovered:
      return received;

    case TicketType.spend:
      return totalCostTaxAndMarkdownsIncluded;

    case TicketType.spendDeferred:
      return totalCostTaxAndMarkdownsIncluded;

    case TicketType.spendCovered:
      return received;

    case TicketType.stockIn:
      return 0; // wrapper returns '' for these

    case TicketType.stockOut:
      return 0;

    case TicketType.wage:
      return received;

    case TicketType.inventory:
      return 0;

    default:
      return null; // == "Type de ticket inconnu"
  }
}