Hi Craig,

That's not entirely true. This issue occurs when you try to reset an
account that is already null.

On Wed, Nov 26, 2014, 01:15 Craig Earls <[email protected]> wrote:

> I can confirm that I see the error if there is only one transaction
> affecting the account and that transaction is resetting it to 0.  Since a
> single transaction setting an account to zero is pretty useless I don't see
> this as a bug.
>
> On Tue, Nov 25, 2014 at 7:47 AM, Daniël Bos (远洋) <[email protected]> wrote:
>
>> Using:
>>
>> 2014/01/01 * a
>>   a  = 0.00
>>   b
>>
>> As a test on my (pretty old) build on Ubuntu, I'm seeing the same:
>>
>> Ledger 3.0.0-20120518, the command-line accounting tool
>>
>> Copyright (c) 2003-2013, John Wiegley.  All rights reserved.
>>
>> This program is made available under the terms of the BSD Public License.
>> See LICENSE file included with the distribution for details and
>> disclaimer.
>> While parsing file "test.ledger", line 3:
>> Error: Only one posting with null amount allowed per transaction
>>
>> However, if I first book something (other than null) to "a", the error
>> goes away. I'm not entirely convinced this is a bug, I'll leave that up to
>> Craig/John to decide.
>>
>> Best regards,
>> Daniel Bos
>>
>>
>> On Tue Nov 25 2014 at 10:11:16 PM Craig Earls <[email protected]> wrote:
>>
>>> Something else is happening. I made up a test file using the xact and
>>> declarations you gave and I get the expected results.
>>>
>>> What editor are you using?
>>>
>>>
>>> On Tuesday, November 25, 2014, John Louis Del Rosario <[email protected]>
>>> wrote:
>>>
>>>> Tried both $ and putting P after the amount, but still got the error.
>>>> e.g.
>>>> 11/24 * Adjustment
>>>>     Liabilities:Credit:Metrobank   = 0.00 P
>>>>     Equity:Adjustments
>>>>
>>>> Here are my heading declartions if it matters:
>>>>
>>>> include Accounts.ledger
>>>> include Tags.ledger
>>>>
>>>> commodity P
>>>>     default
>>>>
>>>> year 2014
>>>>
>>>> bucket Assets:Cash
>>>>
>>>> Thanks.
>>>>
>>>> On Monday, November 24, 2014 10:25:52 PM UTC+8, Craig Earls wrote:
>>>>>
>>>>> Not sure what is going on.  If I use a $ sign instead of the "P" you
>>>>> are using, this works fine.  Try putting the "P" after the 0.00.
>>>>>
>>>>> On Sun, Nov 23, 2014 at 8:52 PM, John Louis Del Rosario <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> I just tried to reset a balance (http://ledger-cli.org/3.0/
>>>>>> doc/ledger3.html#Resetting-a-balance), but it seems it's illegal?
>>>>>>
>>>>>> 11/24 * Adjustment
>>>>>>     Liabilities:Credit:Metrobank   = P 0.00
>>>>>>     Equity:Adjustments
>>>>>>
>>>>>> Error: Only one posting with null amount allowed per transaction
>>>>>>
>>>>>> I'm using Ledger 3.1.0-20141005 on OS X.
>>>>>>
>>>>>> --
>>>>>>
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Ledger" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Craig, Corona De Tucson, AZ
>>>>> enderw88.wordpress.com
>>>>>
>>>>  --
>>>>
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Ledger" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>> --
>>> Craig, Corona De Tucson, AZ
>>> enderw88.wordpress.com
>>>
>>> --
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Ledger" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>  --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Ledger" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Craig, Corona De Tucson, AZ
> enderw88.wordpress.com
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to