Spaces:
Running
Running
Commit History
3 days ago
-
feat(inventory): add inventory PDF export endpoint with customizable filters and totals
AI Assistant8f88765
27 days ago
-
feat: add advanced filtering, sorting, and balance calculations for customers and products api endpoints
AI Assistant17a7cdf -
feat: add advanced Arabic text search and GIN trigram indexes for customers, suppliers, and products
AI Assistantace3c61
-
feat: include total stock in products response, expand invoice cache invalidation, and fix invoice item updates and returns
AI Assistant38b747d
-
feat: add search and Arabic text normalization to supplier and customer listing endpoints
AI Assistant09f4701
-
refactor: migrate pydantic models to ConfigDict and update product sell prices in invoice service
AI Assistant36a9dc3
-
feat: add advance payment endpoints and service for customers and suppliers
AI Assistantf48bcd8
-
fix: update_invoice endpoint now returns full InvoiceOut via _invoice_out()
AI AssistantPreviously update_invoice_svc returned a partial dict that failed Pydantic validation against InvoiceOut schema (missing required fields like issue_date, InvoiceType enum vs string mismatch). This caused the PATCH /invoices/:id to return garbled data or silently fail, making new items appear not saved in the frontend. Fix: after update_invoice_svc commits, re-fetch the invoice ORM and pass through _invoice_out() — same path used by GET /invoices/:id — ensuring consistent, complete response with all relationships (batch->product, payments) properly loaded.6138f6a
-
feat: implement invoice PDF generation service with custom Readex Pro font support
AI Assistant5623c8c -
update
AI Assistant54f29b1
-
refactor: remove db dependency from create_sell_invoice_svc call in invoices API
AI Assistant93423ad
-
Fix dashboard and reports cache invalidation on transactions
AI Assistant9d3df8b -
feat: implement asynchronous caching for customer and supplier endpoints with TTL support
AI Assistant4967bc2 -
feat: standardize note field extraction and enable note updates in payment endpoints
AI Assistant85db01a -
fix: remove stock filters and update return invoice response format in supplier API
AI Assistant11ed09a -
feat: add notes to payments and refactor report calculations with party balance auditing script
AI Assistant9f74692
-
feat: implement product stock ledger service and expand dashboard reporting metrics
AI Assistantdd6ab5d
-
feat: add automatic payment offsetting for party returns and implement granular tenant cache invalidation across invoice and party operations
AI Assistantb1251c7
-
feat: implement redis-based caching layer for party data and reporting endpoints
AI Assistant9eecb05
-
feat: implement unified dashboard reporting and expense management support
AI Assistantf1a77ff
-
feat: enhance invoice schema with date, tax, and discount fields and implement pro-rata tax/discount calculations for invoice items.
AI Assistant57c98ac
-
feat: add script to sync tenant_ids on orphan stock batches and update invoice reconciliation to sync product total_stock
AI Assistantdffecd4 -
feat: calculate party profit, add average cost tracking for products, and include delivery fees in invoice summaries
AI Assistantc22b2f1
-
feat: store tenant logos as base64 strings in the database with a 2MB file size limit
AI Assistanta48b2b6 -
feat: add super-admin management dashboard and enforce tenant approval requirement for authentication
AI Assistant71b00b7 -
refactor: enhance profit reporting logic, improve invoice service logging, and add database diagnostic/maintenance scripts.
AI Assistant3f1d814
-
refactor: optimize party summary calculations and tighten database integrity constraints
AI Assistant204dd65
-
refactor: simplify product pricing logic using latest batch lookup and add testing utilities
AI Assistanta2f373b -
fix: prevent invoice deletion if returns exist, validate selling prices, and improve batch party filtering logic
AI Assistant616bb9a -
feat: enhance stock handling with party_id support and improve invoice reporting logic
AI Assistante07a263
-
Refactor payment service and enhance invoice handling
AI Assistant- Introduced `get_party_balance` function to calculate party balances considering invoices and payments. - Updated `create_payment` to validate payments against outstanding balances at both invoice and party levels. - Enhanced `get_invoice_totals` to return detailed invoice status and amounts. - Added `get_parties_balances` to fetch balances for multiple parties efficiently. - Refactored invoice type checks in reports to use consistent naming conventions (SELL instead of SALE). - Improved performance of reports by consolidating queries and reducing database hits. - Added migration scripts for database schema updates, including new columns and constraints. - Created utility scripts for database inspection and migration tasks. - Added tests for payment over-allocation scenarios to ensure robust error handling.532e918