Perhaps something like this (those are tabs, '\t', in inventory.ledger): $ cat inventory.ledger 2020-07-01 * Initial inventory Inventory:OnHand:Bags:Pallet 7 55 bag Inventory:OnHand:Bags:Pallet 42 0 bag Inventory:OnHand:Bags:Initial Inventory
2020-07-15 * (order id#12345) Acme, Inc. Inventory:OnHand:Bags:Pallet 7 -1 bag Inventory:OnHand:Bags:Pallet 42 1 bag $ ledger -f inventory.ledger balance --no-total 0 Inventory:OnHand:Bags -55 bag Initial Inventory 1 bag Pallet 42 54 bag Pallet 7 -----Original Message----- From: "dmitrib...@gmail.com" <dmitribodiu1...@gmail.com> Sent: Wednesday, July 15, 2020 07:15 To: "Ledger" <ledger-cli@googlegroups.com> Subject: Ledger for inventory System Hi guys. I'm trying to apply ledger for an inventory system. The main question I'm struggling with is can I create a separate Account per pallet for example? Initially I thought my accounts would be OnCustomerSide, InTransit, OnHand, Reserved, Defected, Lost, Dispatched. Now I see that we have a functionality when you have 55 bags on pallet, and you can take 1 bag from that pallet and move it to another pallet. That logic brings me to the idea that I could program each pallet as an account. Or am I wrong? How granular accounts maybe? And could they be created and removed by the system? Or in most of the cases they are a predefined static list? Any help is much appreciated. Thanks! -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/88b0368e-fa1c-48cd-8f6c-7459b2d6c351n%40googlegroups.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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/1594827398.10875870%40apps.rackspace.com.