From mboxrd@z Thu Jan 1 00:00:00 1970 From: d@teklibre.org (Dave =?utf-8?Q?T=C3=A4ht?=) Subject: Re: Re: org-invoice question Date: Mon, 21 Sep 2009 11:30:46 -0600 Message-ID: <871vm0ryrd.fsf@mahal.sjds.teklibre.org> References: <9cd2f5ff0909151421r25e4c7afn8d609e76e2462193@mail.gmail.com> <87pr9r36mt.fsf@fastmail.fm> <87tyz0jny1.fsf_-_@mahal.sjds.teklibre.org> <86vdjcp6c7.fsf@pmade.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MpmjA-0004w8-Sj for emacs-orgmode@gnu.org; Mon, 21 Sep 2009 13:31:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mpmj5-0004vv-BQ for emacs-orgmode@gnu.org; Mon, 21 Sep 2009 13:31:03 -0400 Received: from [199.232.76.173] (port=47806 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mpmj5-0004vs-01 for emacs-orgmode@gnu.org; Mon, 21 Sep 2009 13:30:59 -0400 Received: from toutatis.isc.org ([149.20.54.64]:58058 helo=mainmail.teklibre.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mpmj0-0005ay-VI for emacs-orgmode@gnu.org; Mon, 21 Sep 2009 13:30:58 -0400 Received: from localhost (localhost [127.0.0.1]) by mainmail.teklibre.org (Postfix) with ESMTP id 248FD12B792 for ; Mon, 21 Sep 2009 10:31:54 -0700 (PDT) Received: from mainmail.teklibre.org ([127.0.0.1]) by localhost (toutatis.sql1.isc.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L0RRy9D4SL5y for ; Mon, 21 Sep 2009 10:31:53 -0700 (PDT) Received: from mail3.teklibre.org (mahal.broker.freenet6.net [IPv6:2001:5c0:1000:b::32dd]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail3.teklibre.org", Issuer "CA Cert Signing Authority" (verified OK)) by mainmail.teklibre.org (Postfix) with ESMTPS id 1DAF812B78E for ; Mon, 21 Sep 2009 10:31:53 -0700 (PDT) In-Reply-To: <86vdjcp6c7.fsf@pmade.com> (Peter Jones's message of "Mon, 21 Sep 2009 11:15:20 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Jones Cc: emacs-orgmode@gnu.org Peter Jones writes: > d@teklibre.org (Dave T=C3=A4ht) writes: >> So I cribbed and modified the org-invoice from the code example and >> tried to make it work. I guess it needs the CLOCKSUM properties >> generated, which I don't quite know how to do, or something else I am >> missing to generate the summaries. > > CLOCKSUM properties are generated on the fly from CLOCK lines by > org-mode. The alternative, as you have figured out, is to use a > property called WORK. This is the approach I personally use so that I > can round task times to the nearest 15 minutes. Well, in my case I would rather like to get a rough total via clocksum=20 so I will play with it. Perhaps CLOCK: also was once upon a time :CLOCK:? (See below) > >> Presentation-wise I have other issues with it, but I'll settle for >> making it work first: >> >> * Client Bar=20 >> :PROPERTIES:=20 >> RATE: 95.00 >> :END: >> *** DONE [2008-01-01 Tue] Searched for Widgets on Google >> :PROPERTIES: >> RATE: 25.00 >> WORK: 20:00 >> :END: >> *** [2008-01-02 Wed] Billed You for Taking a Nap > > The properties need to begin and end with a colon. Try changing "RATE:" > and "WORK:" to ":RATE:" and ":WORK:". Thank you. That worked better. It even picked up on my LANG variable. Didn't pick up on the CLOCK line. * Invoices :PROPERTIES: :RATE: 40.00 :END: ** Client Foo=20 *** DONE Built New Server for Production CLOSED: [2009-09-18 Fri 08:30] :LOGBOOK: - State "DONE" from "STARTED" [2009-09-18 Fri 08:30] - State "STARTED" from "STARTED" [2009-09-18 Fri 07:00] CLOCK: [2009-09-18 Fri 07:00]--[2009-09-18 Fri 08:19] =3D> 1:19 :END: :PROPERTIES: :Effort: 10 :END: *** [2009-09-17 Thu] Meeting with Team to Design New System :PROPERTIES: :WORK: 3:00 :END: **** Invoice #+BEGIN: invoice | Task / Date | Time | Price | |----------------------------------------+------+--------| | DONE Built New Server for Production | 0:00 | 0.00 | |----------------------------------------+------+--------| | jueves, septiembre 17, 2009 | 3:00 | 120.00 | | Meeting with Team to Design New System | 3:00 | 120.00 | | Invoice | 0:00 | 0.00 | |----------------------------------------+------+--------| | Total: | 3:00 | 120.00 | #+END: * Client Bar=20 :PROPERTIES:=20 :RATE: 95.00 :END: *** DONE [2008-01-01 Tue] Searched for Widgets on Google :PROPERTIES: :RATE: 25.00 :WORK: 20:00 :END: *** [2008-01-02 Wed] Billed You for Taking a Nap *** Invoice #+BEGIN: invoice | Task / Date | Time | Price | |--------------------------------------+-------+--------| | martes, enero 01, 2008 | 20:00 | 500.00 | | DONE Searched for Widgets on Google | 20:00 | 500.00 | |--------------------------------------+-------+--------| | mi=C3=A9rcoles, enero 02, 2008 | 0:00 | 0.00 | | Billed You for Taking a Nap | 0:00 | 0.00 | |--------------------------------------+-------+--------| | Total: | 20:00 | 500.00 | #+END: --=20 Dave Taht http://the-edge.blogspot.com