numTotalTaxes property

num? get numTotalTaxes

Implementation

num? get numTotalTaxes {
  switch (ticketType) {
    case TicketType.sell:
      return totalPriceTaxesVal;

    case TicketType.sellDeferred:
      return totalPriceTaxesVal;

    case TicketType.sellCovered:
      return 0; // no tax on repayment/advance

    case TicketType.spend:
      return totalCostTaxesVal;

    case TicketType.spendDeferred:
      return totalCostTaxesVal;

    case TicketType.spendCovered:
      return 0; // no tax on repayment/advance

    case TicketType.stockIn:
      return 0;

    case TicketType.stockOut:
      return 0;

    case TicketType.inventory:
      return 0;

    default:
      return null;
  }
}