Add orders tab for recent SystemGroup delivery notes

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-11 13:47:25 +03:30
parent 570b084cc1
commit c1c870e911
18 changed files with 684 additions and 4 deletions

View File

@@ -24,6 +24,10 @@ def products(request):
})
def crm_orders(request):
return render(request, 'slips/crm_orders.html')
def print_queue(request):
pending = Order.objects.select_related('product').filter(status='pending')
history = Order.objects.select_related('product').filter(status='done').order_by('-printed_at')[:20]