django_program.manage.views_purchase_orders¶
Views for purchase order management in the organizer dashboard.
Classes
Cancel a purchase order (POST-only). |
|
Create a new purchase order with line items. |
|
Display full details of a purchase order with payments and credit notes. |
|
Generate and download a PO invoice as PDF. |
|
Issue a credit note against a purchase order (POST-only). |
|
List all purchase orders for the current conference. |
|
Create and send a QuickBooks Online Invoice for a purchase order (POST-only). |
|
Record a payment against a purchase order (POST-only). |
|
Mark a draft purchase order as sent (POST-only). |
|
Create and send a Stripe Invoice for a purchase order (POST-only). |
- class django_program.manage.views_purchase_orders.PurchaseOrderListView[source]¶
Bases:
ConferencePermissionMixin,ListViewList all purchase orders for the current conference.
Supports optional filtering by status via the
?status=query parameter.- template_name = 'django_program/manage/purchase_order_list.html'¶
- context_object_name = 'purchase_orders'¶
- paginate_by = 50¶
- class django_program.manage.views_purchase_orders.PurchaseOrderDetailView[source]¶
Bases:
ConferencePermissionMixin,DetailViewDisplay full details of a purchase order with payments and credit notes.
- template_name = 'django_program/manage/purchase_order_detail.html'¶
- context_object_name = 'purchase_order'¶
- class django_program.manage.views_purchase_orders.PurchaseOrderCreateView[source]¶
Bases:
ConferencePermissionMixin,ViewCreate a new purchase order with line items.
GET renders the create form. POST validates input and creates the PO via the service layer, then redirects to the detail view.
- class django_program.manage.views_purchase_orders.PurchaseOrderRecordPaymentView[source]¶
Bases:
ConferencePermissionMixin,ViewRecord a payment against a purchase order (POST-only).
- class django_program.manage.views_purchase_orders.PurchaseOrderIssueCreditView[source]¶
Bases:
ConferencePermissionMixin,ViewIssue a credit note against a purchase order (POST-only).
- class django_program.manage.views_purchase_orders.PurchaseOrderCancelView[source]¶
Bases:
ConferencePermissionMixin,ViewCancel a purchase order (POST-only).
- class django_program.manage.views_purchase_orders.PurchaseOrderSendView[source]¶
Bases:
ConferencePermissionMixin,ViewMark a draft purchase order as sent (POST-only).
- class django_program.manage.views_purchase_orders.PurchaseOrderInvoiceView[source]¶
Bases:
ConferencePermissionMixin,ViewGenerate and download a PO invoice as PDF.
- class django_program.manage.views_purchase_orders.PurchaseOrderStripeInvoiceView[source]¶
Bases:
ConferencePermissionMixin,ViewCreate and send a Stripe Invoice for a purchase order (POST-only).
Uses the conference’s Stripe keys to create a hosted invoice that the customer can pay via card or ACH. Sets the PO status to SENT on success.
- class django_program.manage.views_purchase_orders.PurchaseOrderQBOInvoiceView[source]¶
Bases:
ConferencePermissionMixin,ViewCreate and send a QuickBooks Online Invoice for a purchase order (POST-only).
Uses the conference’s QBO credentials to create an invoice via the QBO REST API and optionally emails it to the customer. Sets the PO status to SENT on success if currently in draft.