T.83.4: Handle auto_non_billable in entry_new().
This commit is contained in:
parent
4cdd1caf46
commit
4ba7155d78
3 changed files with 13 additions and 18 deletions
11
tts.c
11
tts.c
|
|
@ -784,10 +784,6 @@ entry_t *en;
|
|||
return;
|
||||
}
|
||||
en = entry_new(name);
|
||||
|
||||
if (auto_nonbillable && STRSTR(name, auto_nonbillable))
|
||||
en->en_flags.efl_nonbillable = 1;
|
||||
|
||||
entry_start(en);
|
||||
curent = en;
|
||||
save();
|
||||
|
|
@ -806,10 +802,6 @@ entry_t *en;
|
|||
}
|
||||
|
||||
en = entry_new(name);
|
||||
|
||||
if (auto_nonbillable && STRSTR(name, auto_nonbillable))
|
||||
en->en_flags.efl_nonbillable = 1;
|
||||
|
||||
curent = en;
|
||||
kedtime();
|
||||
save();
|
||||
|
|
@ -2000,6 +1992,9 @@ entry_t *en;
|
|||
if ((en = calloc(1, sizeof(*en))) == NULL)
|
||||
return NULL;
|
||||
|
||||
if (auto_nonbillable && STRSTR(desc, auto_nonbillable))
|
||||
en->en_flags.efl_nonbillable = 1;
|
||||
|
||||
TAILQ_INSERT_HEAD(&entries, en, en_entries);
|
||||
|
||||
en->en_desc = STRDUP(desc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue