typeString property
String
get
typeString
Implementation
String get typeString {
if (_ticketType == TicketType.stockIn.toString()) {
return 'Entree de stock';
} else if (_ticketType == TicketType.stockOut.toString()) {
return 'Sortie de stock';
} else if (_ticketType == TicketType.sell.toString()) {
return 'Vente';
} else if (_ticketType == TicketType.sellCovered.toString()) {
return 'Versement client';
} else if (_ticketType == TicketType.sellDeferred.toString()) {
return 'Vente à crédit';
} else if (_ticketType == TicketType.spend.toString()) {
return 'Achat/Dépense';
} else if (_ticketType == TicketType.spendCovered.toString()) {
return 'Versement fournisseur';
} else if (_ticketType == TicketType.spendDeferred.toString()) {
return 'Achat à crédit'; // KSDE specific 'Achat via compte f'
} else if (_ticketType == TicketType.wage.toString()) {
return 'Salaire';
} else {
return 'Autre';
}
}