emile 7 days ago
parent 7ea45839b9
commit 735b875f0b

@ -386,6 +386,7 @@
<!-- TABLE BODY -->
{% for order in customer_orders %}
<tbody class="bg-white divide-y divide-gray-200">
<a href="{% url 'customer_order_detail' order.id %}">
<td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<p class="text-secondosiblue">{{order.order_id}}</p>
</td>
@ -408,7 +409,7 @@
<td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<p class="text-secondosiblue">${{order.remaining_balance}}</p>
</td>
</a>
</tbody>
{% endfor %}
</table>

@ -241,7 +241,7 @@ def user_recent_activities_modal(request, user_id):
@staff_login_required
def customers(request, *args, **kwargs):
customers = CustomerProfile.objects.all().order_by('-customer_id')
customers = CustomerProfile.objects.all().order_by('-user__first_name')
context = {
'customers' : customers,

Loading…
Cancel
Save