Hello,

Now that there’s more eyes on ‘org-colview’ (thanks Sławomir!), I
think there’s a low-priority bug with the currency summary type.

According to to (info "(org)Column Attributes") ‘$’ should be a
shorthand for ‘+;%.2f’, but it doesn’t always act this way in the
column view (‘org-columns’, ‘C-c C-x C-c’) and dynamic block. Parent
nodes are properly formatted, but the leaves are not:

Example 1:

#+COLUMNS: %ITEM(Item) %COST(Cost){$}
#+BEGIN: columnview :id global :format "%ITEM(Item) %COST(Cost){$}"
| Item   | Cost |
|--------+------|
| Item 1 |  3.5 |
#+END:
* Item 1
:PROPERTIES:
:COST:     3.5
:END:

vs.

#+COLUMNS: %ITEM(Item) %COST(Cost){+;%.2f}
#+BEGIN: columnview :id global :format "%ITEM(Item) %COST(Cost){+;%.2f}"
| Item   | Cost |
|--------+------|
| Item 1 | 3.50 |
#+END:
* Item 1
:PROPERTIES:
:COST:     3.5
:END:

Example 2:

#+COLUMNS: %ITEM(Item) %COST(Cost){$}
#+BEGIN: columnview :id global :format "%ITEM(Item) %COST(Cost){$}"
| Item   | Cost |
|--------+------|
| Item 1 | 3.50 |
| Item 2 |    2 |
| Item 3 |  1.5 |
#+END:
* Item 1
** Item 2
:PROPERTIES:
:COST:     2
:END:
** Item 3
:PROPERTIES:
:COST:     1.5
:END:

vs.

#+COLUMNS: %ITEM(Item) %COST(Cost){+;%.2f}
#+BEGIN: columnview :id global :format "%ITEM(Item) %COST(Cost){+;%.2f}"
| Item   | Cost |
|--------+------|
| Item 1 | 3.50 |
| Item 2 | 2.00 |
| Item 3 | 1.50 |
#+END:
* Item 1
** Item 2
:PROPERTIES:
:COST:     2
:END:
** Item 3
:PROPERTIES:
:COST:     1.5
:END:

etc.

Thanks,

-- 
Jacob S. Gordon
[email protected]
Please don’t send me HTML emails or MS Office/Apple iWork documents.
https://useplaintext.email/#etiquette
https://www.fsf.org/campaigns/opendocument

Reply via email to