Add ProductPrice.cost_amount (integer cents) — the cost to deliver one unit at that price: manufacturing, shipping, a content license or royalty; per billing period for recurring prices. Shop now reports margin natively: subscriptionMetrics() returns `cogs` + `net_mrr`, and Shop::netMrr() gives MRR after cost of goods. Additive: cost_amount defaults to 0, so existing consumers are unchanged. Covered by MrrMetricsTest; full suite green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| 2025_01_01_000001_create_blax_shop_tables.php | ||
| 2025_01_01_000002_create_product_price_tiers_table.php | ||
| 2025_01_01_000003_add_stripe_to_users_table.php | ||
| 2025_01_01_000004_create_blax_shop_subscriptions.php | ||
| 2026_01_01_000000_drop_stock_quantity_from_products.php | ||
| 2026_01_01_000001_drop_in_stock_and_stock_status_from_products.php | ||
| 2026_01_01_000002_add_max_per_cart_and_max_per_user_to_products.php | ||
| 2026_01_01_000003_create_license_seats_table.php | ||
| 2026_01_01_000004_add_cost_amount_to_product_prices.php | ||