How prowider5565/choy-pos works
This is a Django business-management API for inventory, sales, customers and suppliers, debts, payments, analytics, media, and messaging. Its clearest evidenced workflow is sale creation: a sale service calculates totals, checks and deducts product batches, records payments, and returns the sale. Other supported branches cover product-batch imports and supplier debt, client records and legacy debt, debt-amount presentation, low-stock analytics, and notifications. The tree indicates additional API capabilities, but no README or excerpts document their internal wiring, so those modules are represented without speculative edges.
Main entry points: sale_service.py Sale service · models.py User and client records · clients.py Client API · client.py Client serializer
Components 21
Sales and inventory
- Sale service
sales/services/sale_service.py - Sale calculations
sales/calculations.py - Sales records
sales/models.py - Product API
products/views - Product inventory
products/models.py - Batch service
products/batch/services.py
Debt and payments
- Debt records
debts/models.py - Supplier debt service
debts/services/new_seller_debt_service.py - Payment records
payments/models.py - Debt amount fields
common/fields.py - Legacy debt serializer
debts/serializers/old_client_debt.py - Bulk payment serializer
payments/tba/serializers/old_client.py
People and messaging
- Client API
users/views/clients.py - Client serializer
users/serializers/client.py - User and client records
users/models.py - Client notifications
bot/services/client_notifications.py - Message sender
bot/services/send_message.py
Analytics and media
- Analytics lists
analytics/services/lists - Dashboard analytics
analytics/services/dashboard - Media API
media/views
Other components
- Operator
Connections 20
- Sale service → Sale calculations: calculates with
sales/services/sale_service.py - Sale service → Sales records: creates and loads
sales/services/sale_service.py - Sale service → Payment records: creates payments
sales/services/sale_service.py - Sale service → Product inventory: checks and deducts
sales/services/sale_service.py - Sale service → User and client records: loads client
sales/services/sale_service.py - Batch service → Product inventory: uses batches
products/batch/services.py - Batch service → Supplier debt service: creates supplier debt
products/batch/services.py - Supplier debt service → Debt records: creates debt
debts/services/new_seller_debt_service.py - Client API → Client serializer: serializes requests
users/views/clients.py - Client API → User and client records: queries clients
users/views/clients.py - Client API → Debt records: creates old debt
users/views/clients.py - Client serializer → Legacy debt serializer: embeds old debt
users/serializers/client.py - Client serializer → User and client records: validates client
users/serializers/client.py - Legacy debt serializer → Debt records: serializes debt
debts/serializers/old_client_debt.py - Bulk payment serializer → User and client records: uses client serializer
payments/tba/serializers/old_client.py - Bulk payment serializer → Payment records: serializes bulk payment
payments/tba/serializers/old_client.py - Debt amount fields → Payment records: reads payments
common/fields.py - Analytics lists → Product inventory: reads inventory
analytics/services/lists/low_stock_service.py - Client notifications → Message sender: sends messages
bot/services/client_notifications.py - Client notifications → Sale calculations: uses calculations
bot/services/client_notifications.py