Table changes
This commit is contained in:
parent
0cb33182d0
commit
d99e3a22ec
|
|
@ -73,6 +73,7 @@ class ClientFields {
|
|||
static const String phone = 'phone';
|
||||
static const String website = 'website';
|
||||
static const String language = 'language';
|
||||
static const String taskRate = 'task_rate';
|
||||
static const String publicNotes = 'public_notes';
|
||||
static const String privateNotes = 'private_notes';
|
||||
static const String currency = 'currency';
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ class ClientPresenter extends EntityPresenter {
|
|||
ClientFields.website,
|
||||
ClientFields.language,
|
||||
ClientFields.currency,
|
||||
ClientFields.taskRate,
|
||||
ClientFields.publicNotes,
|
||||
ClientFields.privateNotes,
|
||||
ClientFields.creditBalance,
|
||||
|
|
@ -111,6 +112,8 @@ class ClientPresenter extends EntityPresenter {
|
|||
return Text(client.publicNotes);
|
||||
case ClientFields.privateNotes:
|
||||
return Text(client.privateNotes);
|
||||
case ClientFields.taskRate:
|
||||
return Text(formatNumber(client.settings.defaultTaskRate, context));
|
||||
case ClientFields.documents:
|
||||
return Text('${client.documents.length}');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,11 +74,6 @@ class TaskPresenter extends EntityPresenter {
|
|||
case TaskFields.invoiceId:
|
||||
return Text(
|
||||
state.invoiceState.map[task.invoiceId]?.listDisplayName ?? '');
|
||||
case TaskFields.clientId:
|
||||
return Text(state.clientState.map[task.clientId]?.displayName ?? '');
|
||||
case TaskFields.projectId:
|
||||
return Text(
|
||||
state.projectState.map[task.projectId]?.listDisplayName ?? '');
|
||||
case TaskFields.timeLog:
|
||||
final notes = <String>[];
|
||||
task
|
||||
|
|
|
|||
Loading…
Reference in New Issue