Orange Trading Business

01_investment.goluca

PTA Source

# Step 1: Equity investment
# Investor puts £25 cash into the business

2024-01-01 * Investor puts cash into business
  Equity:Input -> Asset:Cash "investment" 25.00 GBP
JSON model
{
  "accounts": [
    {
      "name": "Asset:Cash",
      "short": "Cash",
      "type": "Asset"
    },
    {
      "name": "Equity:Input",
      "short": "Input",
      "type": "Equity"
    }
  ],
  "transactions": [
    {
      "date": "",
      "flag": "*",
      "payee": "Investor puts cash into business",
      "movements": [
        {
          "from": "Equity:Input",
          "to": "Asset:Cash",
          "amount": 25,
          "commodity": "GBP",
          "description": "investment"
        }
      ]
    }
  ]
}

SVG Output

Input -£25.00 Cash £25.00 investment £25.00 Equity Asset

02_buy_oranges.goluca

PTA Source

# Step 2: Buy oranges for cash
# Business spends £25 buying 25 oranges from farmer

2024-01-01 * Investor puts cash into business
  Equity:Input -> Asset:Cash "investment" 25.00 GBP

2024-01-02 * Buy 25 oranges from farmer
  Asset:Cash -> Expense:Purchases "oranges" 25.00 GBP
JSON model
{
  "accounts": [
    {
      "name": "Asset:Cash",
      "short": "Cash",
      "type": "Asset"
    },
    {
      "name": "Equity:Input",
      "short": "Input",
      "type": "Equity"
    },
    {
      "name": "Expense:Purchases",
      "short": "Purchases",
      "type": "Expense"
    }
  ],
  "transactions": [
    {
      "date": "",
      "flag": "*",
      "payee": "Investor puts cash into business",
      "movements": [
        {
          "from": "Equity:Input",
          "to": "Asset:Cash",
          "amount": 25,
          "commodity": "GBP",
          "description": "investment"
        }
      ]
    },
    {
      "date": "",
      "flag": "*",
      "payee": "Buy 25 oranges from farmer",
      "movements": [
        {
          "from": "Asset:Cash",
          "to": "Expense:Purchases",
          "amount": 25,
          "commodity": "GBP",
          "description": "oranges"
        }
      ]
    }
  ]
}

SVG Output

Input -£25.00 Cash £0.00 Purchases £25.00 investment £25.00 oranges £25.00 Equity Asset Expense

03_sell_oranges.goluca

PTA Source

# Step 3: Sell oranges at market
# Sell 25 oranges for £37.50, making £12.50 profit

2024-01-01 * Investor puts cash into business
  Equity:Input -> Asset:Cash "investment" 25.00 GBP

2024-01-02 * Buy 25 oranges from farmer
  Asset:Cash -> Expense:Purchases "oranges" 25.00 GBP

2024-01-03 * Sell 25 oranges at market
  Income:Sales -> Asset:Cash "market sales" 37.50 GBP
JSON model
{
  "accounts": [
    {
      "name": "Asset:Cash",
      "short": "Cash",
      "type": "Asset"
    },
    {
      "name": "Equity:Input",
      "short": "Input",
      "type": "Equity"
    },
    {
      "name": "Expense:Purchases",
      "short": "Purchases",
      "type": "Expense"
    },
    {
      "name": "Income:Sales",
      "short": "Sales",
      "type": "Income"
    }
  ],
  "transactions": [
    {
      "date": "",
      "flag": "*",
      "payee": "Investor puts cash into business",
      "movements": [
        {
          "from": "Equity:Input",
          "to": "Asset:Cash",
          "amount": 25,
          "commodity": "GBP",
          "description": "investment"
        }
      ]
    },
    {
      "date": "",
      "flag": "*",
      "payee": "Buy 25 oranges from farmer",
      "movements": [
        {
          "from": "Asset:Cash",
          "to": "Expense:Purchases",
          "amount": 25,
          "commodity": "GBP",
          "description": "oranges"
        }
      ]
    },
    {
      "date": "",
      "flag": "*",
      "payee": "Sell 25 oranges at market",
      "movements": [
        {
          "from": "Income:Sales",
          "to": "Asset:Cash",
          "amount": 37.5,
          "commodity": "GBP",
          "description": "market sales"
        }
      ]
    }
  ]
}

SVG Output

Input -£25.00 Sales -£37.50 Cash £37.50 Purchases £25.00 investment £25.00 oranges £25.00 market sales £37.50 Equity Income Asset Expense

04_buy_on_credit.goluca

PTA Source

# Step 4: Buying on credit
# Instead of paying cash, farmer extends credit (a liability)

2024-01-01 * Investor puts cash into business
  Equity:Input -> Asset:Cash "investment" 25.00 GBP

2024-01-02 * Buy oranges on credit from farmer
  Liability:Farmer -> Expense:Purchases "oranges on credit" 25.00 GBP

2024-01-03 * Sell oranges at market
  Income:Sales -> Asset:Cash "market sales" 37.50 GBP
JSON model
{
  "accounts": [
    {
      "name": "Asset:Cash",
      "short": "Cash",
      "type": "Asset"
    },
    {
      "name": "Equity:Input",
      "short": "Input",
      "type": "Equity"
    },
    {
      "name": "Expense:Purchases",
      "short": "Purchases",
      "type": "Expense"
    },
    {
      "name": "Income:Sales",
      "short": "Sales",
      "type": "Income"
    },
    {
      "name": "Liability:Farmer",
      "short": "Farmer",
      "type": "Liability"
    }
  ],
  "transactions": [
    {
      "date": "",
      "flag": "*",
      "payee": "Investor puts cash into business",
      "movements": [
        {
          "from": "Equity:Input",
          "to": "Asset:Cash",
          "amount": 25,
          "commodity": "GBP",
          "description": "investment"
        }
      ]
    },
    {
      "date": "",
      "flag": "*",
      "payee": "Buy oranges on credit from farmer",
      "movements": [
        {
          "from": "Liability:Farmer",
          "to": "Expense:Purchases",
          "amount": 25,
          "commodity": "GBP",
          "description": "oranges on credit"
        }
      ]
    },
    {
      "date": "",
      "flag": "*",
      "payee": "Sell oranges at market",
      "movements": [
        {
          "from": "Income:Sales",
          "to": "Asset:Cash",
          "amount": 37.5,
          "commodity": "GBP",
          "description": "market sales"
        }
      ]
    }
  ]
}

SVG Output

Input -£25.00 Sales -£37.50 Farmer -£25.00 Cash £62.50 Purchases £25.00 investment £25.00 oranges on credit £25.00 market sales £37.50 Equity Income Liability Asset Expense