Motocho.Inventory (motocho v0.2.0)

Copy Markdown View Source

Average Cost Method inventory cost inventory.

Summary

Functions

Sell an amount of inventory during a given accounting period. Returns a tuple of the new Inventory struct and a map containing the quantity, cost-per-unit, and total cost of the sale. Use the map to create a Journal entry for your ledger.

Functions

goods_available_for_sale(inventory)

new(currency)

purchase_inventory_by_total(inventory, date, quantity, total_cost)

purchase_inventory_by_unit(inventory, date, quantity, cost_per_unit)

sell_inventory(inventory, date, quantity)

Sell an amount of inventory during a given accounting period. Returns a tuple of the new Inventory struct and a map containing the quantity, cost-per-unit, and total cost of the sale. Use the map to create a Journal entry for your ledger.