Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.openbook.to/llms.txt

Use this file to discover all available pages before exploring further.

Service DAOs: Skip this step!If you’re running a SaaS, subscription, or consulting business (like Zenland DAO), skip to Record Income instead.
Before you can make a sale, you need inventory! This step covers how to record a Purchase — receiving goods from a supplier.

Why This Matters

Recording purchases correctly:
  • ✅ Adds stock to your inventory
  • ✅ Sets the cost basis for COGS calculations
  • ✅ Creates proper accounting entries
  • ✅ Provides an audit trail for token holders

The Double-Entry Accounting

When you receive inventory, OpenBook creates these ledger entries:
DEBIT  Inventory (Asset)           $120.00
       CREDIT  Cash/Payable         $120.00
This follows proper accounting: your assets increase (more inventory) and either your cash decreases or your liabilities increase (you owe the supplier).

Recording a Purchase

1

Navigate to Inventory

Go to Inventory → Stock from the sidebar
2

Click Add Movement

Click + Add Movement or Receive Inventory
3

Select Location

Choose which location is receiving the goods
4

Select Resource

Choose the resource you’re adding (e.g., “Arabica Coffee Beans”)
5

Enter Details

  • Movement Type: Purchase
  • Quantity: Amount received (e.g., 5000)
  • Unit: Measurement unit (e.g., grams)
  • Cost per Unit: Price you paid per unit
  • Total Cost: Auto-calculated
  • Notes: Optional (e.g., “Invoice #BB-2025-001 from Bean Brothers”)
6

Save

Click Record Movement

Example: Stocking a Coffee Shop

Let’s stock up for opening day:
ResourceQuantityUnitCost/UnitTotal
Arabica Coffee Beans5,000g$0.024$120.00
Whole Milk20,000ml$0.002$40.00
Paper Cups (Small)200pcs$0.10$20.00
Paper Cups (Large)200pcs$0.12$24.00
Plastic Lids400pcs$0.05$20.00
Total Initial Stock$224.00

Weighted Average Cost Update

When you receive inventory, the weighted average cost updates:
Scenario: You already have 1,000g beans at 0.020/g,andreceive5,000gat0.020/g, and receive 5,000g at 0.024/g
Old Value:  1,000g × $0.020 = $20.00
New Value:  5,000g × $0.024 = $120.00
───────────────────────────────────────
Total:      6,000g           = $140.00

New WAC = $140.00 ÷ 6,000g = $0.0233/g
This new cost is used for COGS when you sell products containing coffee beans.

What Gets Recorded

For each purchase, OpenBook creates:
RecordPurpose
Stock MovementAudit log entry (append-only)
Location Stock UpdateCurrent quantity at location
Resource WAC UpdateNew weighted average cost
TransactionFinancial journal entry
Ledger EntriesDebit/Credit records

Without Formal Suppliers

You don’t need to set up Suppliers first. Just record the movement with notes about where it came from. You can add Suppliers later for:
  • Purchase order workflows
  • Vendor price tracking
  • Preferred supplier management

Next: Record Your First Sale

Complete the full sales flow with proper accounting