Hi!
I am trying to use Ledger to track the stock of a warehouse.
Each product has a numbered code. I use this code as a commodity, like
"12345". (Quotes have to be used in order to use numbers as commodities.)
Each product has a serial number, like "3465464554".
I want to track the state of the product inside the warehouse. States
are: "Pending", "Ready", "Delivered".
I want to make sure each product is in one state and only one.
Therefore I have one account for each state and subaccounts for each
product based on it's serial number.
Like this: Warehouse:Pending:3465464554
In order to make sure a specific product is in only one state at any
given moment, I use a balance assertion like this: -1 "12345" = 0 "12345"
That means that a transaction to change a product from one state to
another should be something like this:
2012-02-20 Process product
Warehouse:Ready:3465464554 1 "12345"
Warehouse:Pending:3465464554 -1 "12345" = 0 "12345"
The problem is that this approach does not seem to work.
Ledger (v3.0.0-20120217) throws this error:
Error: Quoted commodity symbol lacks closing quote
I have also thought about using a tag to refer to the serial number, but
then I would loose the constraint to check that a product is only in one
state at any given moment.
The other idea I have is to put the serial number as the payee. That way
the "state" of the product could be simply the one of the last transaction.
Anyway, I would appreciate if anyone can give me some insight about the
error about this balance assertion.
And, if someone is using ledger in a similar way, I would appreciate any
comments.
Regards, Stefan Tunsch
--
---
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/groups/opt_out.