35020e02f1
fix(pos-micro): Align frontend with backend API contracts
...
Critical fixes:
- Fix LoginPage to use phone+pin for login (was using businessName)
- Add ownerName field for registration flow
- Fix useProducts hooks: /products?isFavorite=true, /toggle-favorite
- Fix useSales hooks: /sales/recent, /sales/today, POST for cancel
- Align TypeScript types with backend entities:
- stockQuantity/lowStockAlert instead of currentStock/minStock
- discountPercent/discountAmount for proper discount handling
- Add SubscriptionStatus type for tenant state
Cart store improvements:
- Properly calculate subtotals with discount percentage
- Compute tax amount (16% IVA included)
- Track discountAmount and taxAmount separately
Documentation:
- Add comprehensive ANALISIS-GAPS.md comparing:
- POS Micro vs ERP Core architecture patterns
- POS Micro vs Odoo POS feature parity
- Identified gaps and roadmap for future phases
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-08 12:25:06 -06:00
9bfc6fb152
feat(pos-micro): Implement MVP backend and database schema
...
POS Micro - Ultra-minimal point of sale (100 MXN/month):
- Database DDL: 10 tables (tenants, users, categories, products,
payment_methods, sales, sale_items, cash_movements,
daily_summaries, whatsapp_sessions)
- NestJS Backend: Complete API with modules for auth, products,
categories, sales, and payments
- Docker Compose: Development environment with PostgreSQL
- Dev scripts: Easy setup for local development
SaaS Billing Schema:
- 10 tables for subscription management (plans, subscriptions,
invoices, payments, usage_tracking, support_tickets)
- Default plans: POS Micro (100 MXN), ERP Básico (300 MXN),
ERP Pro (500 MXN), Vertical (1000+ MXN)
- Support for Stripe and Conekta payment providers
- CFDI integration ready for Mexico
Target: Mexican informal market (street vendors, small shops, food stands)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-08 11:48:07 -06:00
2781837d9e
feat: Add SaaS products architecture and alignment analysis
...
Analysis and Documentation:
- Add ANALISIS-ALINEACION-WORKSPACE-2025-12-08.md with comprehensive gap analysis
- Document SIMCO v3.2 system with 20+ directives
- Identify alignment gaps between orchestration and projects
New SaaS Products Structure:
- Create apps/products/pos-micro/ - Ultra basic POS (~100 MXN/month)
- Target: Mexican informal market (street vendors, small stores)
- Features: Offline-first PWA, WhatsApp bot, minimal DB (~10 tables)
- Create apps/products/erp-basico/ - Austere ERP (~300-500 MXN/month)
- Target: SMBs needing full ERP without complexity
- Features: Inherits from erp-core, modular pricing
SaaS Layer:
- Create apps/saas/ structure (billing, portal, admin, onboarding)
- Add README.md and CONTEXTO-SAAS.md documentation
Vertical Alignment:
- Verify HERENCIA-ERP-CORE.md exists in all verticals
- Add HERENCIA-SPECS-CORE.md to verticals
- Update orchestration inventories
Updates:
- Update WORKSPACE-STATUS.md with new products and analysis
- Update suite inventories with new structure
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-08 11:34:35 -06:00