Try to show full invoice number

This commit is contained in:
Hillel Coren 2021-01-29 08:53:40 +02:00
parent e5d8f6bde5
commit c51fc34c39
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,11 @@ class EntityPresenter {
final type = localization.lookup('${entity.entityType}');
final name = entity.listDisplayName;
// TODO replace with this: https://github.com/flutter/flutter/issues/45336
if (name.length > 10) {
return name;
}
return isMobile(context) ? '$type: $name' : '$type $name';
}