# Checkout & sales

The cart, checkout tickets, and sales reports that read invoice records.

Source: https://noxyrbot.com/docs/checkout-sales

## The cart

A cart button appears under the catalog message once checkout is turned on, so buyers can add several products and quantities before checking out once.

- **/checkout setup**: Turn the cart on or off, and set item and quantity limits.
- **/checkout text**: Customize the cart button, embed, and checkout messages.
- **/checkout status**: Show the current checkout settings.

## From cart to order ticket

Checkout opens a ticket with the buyer and staff, and posts the cart contents and total inside it. Link the ticket panel checkout should use with /checkout panel - a dedicated Orders panel with its own staff role keeps sales tickets separate from general support.

- **/checkout panel**: Link the ticket panel that checkout opens.

## Sales reports

Sales reports and the buyer leaderboard read the same invoice records the receipts came from, so the numbers always match what /check invoice would show for any individual order.

Only invoices with a status counted as revenue contribute to a report. By default that is Successful only - toggle Pending or Failed on if your workflow needs them counted too.

- **/invoice sales**: Revenue, best sellers and payment breakdown for a period.
- **/invoice top-buyers**: Rank customers by number of orders or amount spent.
- **/invoice sales-style**: Colour, banner, titles, and which invoice statuses count as revenue.

## Reading the numbers

A revenue report reflects the discounted total on each invoice, not the sticker price, so an active voucher promotion will show as lower average order value - that is expected. Sales reports do not calculate profit or reconcile against your actual payment account; they total what your invoices record.

> Note: At least one invoice status has to count as revenue, otherwise every report reads zero.
