Add catalog sale purchase summary endpoint
- Add CatalogSaleSummarySerializer and CatalogSummarySaleLineSerializer - Add CatalogSaleSummary API view for GET requests - Register endpoint at /don_confiao/resumen_compra_catalogo_json/<id> - Add comprehensive test for catalog sale summary - Include nested customer and product details in response - Endpoint returns id, date, customer, and lines with products
This commit is contained in:
@@ -13,6 +13,7 @@ from .api import (
|
||||
SaleView,
|
||||
CatalogSaleView,
|
||||
SaleSummary,
|
||||
CatalogSaleSummary,
|
||||
SalesForTrytonView,
|
||||
SalesToTrytonView,
|
||||
# Payments
|
||||
@@ -44,6 +45,11 @@ urlpatterns = [
|
||||
SaleSummary.as_view(),
|
||||
name="purchase_json_summary",
|
||||
),
|
||||
path(
|
||||
"resumen_compra_catalogo_json/<int:id>",
|
||||
CatalogSaleSummary.as_view(),
|
||||
name="catalog_purchase_json_summary",
|
||||
),
|
||||
path(
|
||||
"payment_methods/all/select_format",
|
||||
PaymentMethodView.as_view(),
|
||||
|
||||
Reference in New Issue
Block a user