posTipStart function

PosTipKind posTipStart(
  1. PosBusinessSettings? business
)

Wirksame Start-Art: die gespeicherte, wenn sie angeboten wird, sonst Prozent (oder die erste angebotene Art); Zwilling von posTipStart.

Implementation

PosTipKind posTipStart(PosBusinessSettings? business) {
  final arten = posTipKinds(business);
  final start = business?.tipStart;
  if (start != null && arten.contains(start)) return start;
  return arten.contains(PosTipKind.percent) ? PosTipKind.percent : arten.first;
}