Merge pull request 'feat/46-order-summary-public' (#47) from feat/46-order-summary-public into main

Reviewed-on: #47
This commit is contained in:
2026-08-08 14:25:25 -05:00
9 changed files with 415 additions and 10 deletions

View File

@@ -37,8 +37,9 @@ class SaleAdmin(admin.ModelAdmin):
"customer",
"payment_method",
"external_id",
"code",
)
search_fields = ("date", "customer__name", "payment_method", "external_id")
search_fields = ("date", "customer__name", "payment_method", "external_id", "code")
list_filter = ("date", "customer__name", "payment_method")
@admin.register(SaleLine)
@@ -57,8 +58,9 @@ class CatalogSaleAdmin(admin.ModelAdmin):
"customer_address",
"pickup_method",
"external_id",
"code",
)
search_fields = ("date","customer_name", "customer_phone", "pickup_method","external_id")
search_fields = ("date","customer_name", "customer_phone", "pickup_method","external_id", "code")
list_filter = ("date", "customer_name", "pickup_method")