emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Feature Request: Number format on sum of property
@ 2007-10-25  3:59 Levin
  2007-10-25  5:30 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Levin @ 2007-10-25  3:59 UTC (permalink / raw)
  To: emacs-orgmode

Currently I'm using org-mode to manage my financial tables. The columnview is 
absolutely great on this:

------------8<------------------8<------------
* org-balance
   :PROPERTIES:
:COLUMNS: %30ITEM %20balance(Book Balance){+} %20uncleared(Uncleared)
{+} %20bank(Bank Balance){+}
   :END:

#+BEGIN: columnview :hlines 1 :id local
| ITEM                |       Book Balance | Uncleared |       Bank Balance |
|---------------------+--------------------+-----------+--------------------|
| *  org-balance      | 244.85000000000002 |       0.0 | 244.85000000000002 |
| **  housing         |             -150.0 |       0.0 |             -150.0 |
| ***  Parking        |            -150.00 |      0.00 |            -150.00 |
| **  communication   |             394.85 |       0.0 |             394.85 |
| ***  wang tong      |             160.00 |      0.00 |             160.00 |
| ***  xiao ling tone |             103.00 |      0.00 |             103.00 |
| ***  shen zhou xing |             131.85 |      0.00 |             131.85 |
#+END
------------8<------------------8<------------

However, you might notice that the float number is not correctly formatted.
May I have some magic cookie in COLUMNS format to specify it? Something like
 "%20balance(Book Balance){+}[%.2f]" ?

Thanks.

Levin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Feature Request: Number format on sum of property
  2007-10-25  3:59 Feature Request: Number format on sum of property Levin
@ 2007-10-25  5:30 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2007-10-25  5:30 UTC (permalink / raw)
  To: Levin; +Cc: emacs-orgmode

Hi Levin,

in principle a good idea, only I don't know why it is necessary in  
this case.
I guess you are just adding numbers here?  So I don't understand  
where the error
comes from.  Could you post a fully expanded outline
with all the properties visible?

Thanks.

- Carsten


On Oct 25, 2007, at 5:59 AM, Levin wrote:

> Currently I'm using org-mode to manage my financial tables. The  
> columnview is
> absolutely great on this:
>
> ------------8<------------------8<------------
> * org-balance
>    :PROPERTIES:
> :COLUMNS: %30ITEM %20balance(Book Balance){+} %20uncleared(Uncleared)
> {+} %20bank(Bank Balance){+}
>    :END:
>
> #+BEGIN: columnview :hlines 1 :id local
> | ITEM                |       Book Balance | Uncleared |       Bank  
> Balance |
> |---------------------+--------------------+----------- 
> +--------------------|
> | *  org-balance      | 244.85000000000002 |       0.0 |  
> 244.85000000000002 |
> | **  housing         |             -150.0 |       0.0  
> |             -150.0 |
> | ***  Parking        |            -150.00 |      0.00 |             
> -150.00 |
> | **  communication   |             394.85 |       0.0  
> |             394.85 |
> | ***  wang tong      |             160.00 |      0.00  
> |             160.00 |
> | ***  xiao ling tone |             103.00 |      0.00  
> |             103.00 |
> | ***  shen zhou xing |             131.85 |      0.00  
> |             131.85 |
> #+END
> ------------8<------------------8<------------
>
> However, you might notice that the float number is not correctly  
> formatted.
> May I have some magic cookie in COLUMNS format to specify it?  
> Something like
>  "%20balance(Book Balance){+}[%.2f]" ?
>
> Thanks.
>
> Levin
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-25  5:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-25  3:59 Feature Request: Number format on sum of property Levin
2007-10-25  5:30 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).