On Mon, Jul 6, 2015, 9:07 AM Daniel E. Doherty <ded-law@ddoherty.net> wrote:


I typically keep a list of tasks I'm working on in a subtree that is
simply a bunch of subheads that describe the task, like so:

,----
| * Time Records
| ** Review filings for Johnson--Morgan
| CLOCK: [2014-08-27 Wed 09:13]--[2014-08-27 Wed 12:20] =>  3:07
| ** Discussion with Smith re Johnson possible violation
| CLOCK: [2014-08-27 Wed 10:35]--[2014-08-27 Wed 10:55] =>  0:20
| ** Prepare and send demand letter for Johnson
| CLOCK: [2014-08-28 Mon 11:18]--[2014-08-28 Thu 12:20] =>  1:02
| ** Forward summary to Smith following on discussion
| CLOCK: [2014-08-29 Fri 09:35]--[2014-08-29 Fri 09:45] =>  0:10
| ** Receive and review letter from Willy Wonka re demand
| CLOCK: [2014-09-11 Thu 09:38]--[2014-09-11 Thu 10:39] =>  1:01
| ** Prepare reply to Wonka response letter
| CLOCK: [2014-09-11 Thu 10:40]--[2014-09-11 Thu 11:30] =>  0:50
`----

I clock in and out of tasks as I work on them.  There is typically no
'SCEDULED' or 'DEADLINE' associated with the tasks.

I would like to produce a clocktable that works as a passible bill.

There are two things that make this difficult:

1. I would like the clocktable to have a column that indicates the date on
   which the activity took place.

2. I would like the an optional 'Rate' and 'Charge' columns to be added

As to 1:

The timestamp feature almost takes care of 1, except that it will not use the
CLOCK property to set the timestamp.  Using the date (optional time) at which
the CLOCK started would work as a good timestamp, and probably better than
something like the SCHEDULED or DEADLINE.  If the purpose is to indicate when
the activity occurred, it would seem that the best order for picking the time
stamp would be something like TIMESTAMP, TIMESTAMP_IA, CLOCK (begin),
SCHEDULED, then DEADLINE, that is from more specific to more general.

As to 2:

With an option like :rate set to, say, 50, the time column could be converted
to dollars (or whatever currency) at rate * hours.  It would also be nice to
have that amount summed in the same way that time is summed by levels now.

With those items added, the clocktable would be usable as a billing
mechanism.  As it is now, it makes a nice start, but requires a lot of
massaging to turn a clocktable into an invoice.

Any chance of getting these features added?

Dan Doherty


Sorry for the split reply.
I have some code (a few simple functions) that creates & maintains a property with a date stamp value that is automatically created /updated for a headline every time it is clocked into.  This can then be displayed as a column in a clocktable.  I'll send it over if you are interested.
Subhan