Sales documents
Every sale in a Wino shop leaves a document: a receipt at the cash register, or a quote, an invoice, a delivery note or a credit note for business sales. This page explains how these documents fit together. They're read-only in the API. Every field is described in the GraphQL schema.
At the cash register
- A
SalesReceiptis the receipt of a sale at the cash register, with its lines (items), discounts, taxes and payments. - A
RefundReceiptis the receipt of a refund for a sales receipt (salesReceipt), with itsreason(CANCELLATION_SALE,CASHING_ERROR,PRODUCT_NOT_COMPLIANT_OR_DAMAGED,OTHER_REASON). Its amounts are positive: subtract them from your sales.
Business documents
- A
Quoteis a price proposal to a customer (status:PUBLISHED, thenACCEPTED). It can become an invoice or a delivery note. - An
Invoiceis a sales invoice, with anissueDateand adueDate, itspayments, and astatus:DRAFT,UNPAIDorPAID. It can come from a quote (parentQuote) or from a sales receipt (salesReceipt). - A
DeliveryNoteis a document for goods delivered to a customer (status:DRAFTorPUBLISHED), possibly created from a quote or an invoice. - A
CreditNotecancels all or part of an invoice (parentInvoice).
What every document has
- Its shop, the device it was made on (
device) and, often, the staff member who made it (staff). - Its lines (
items), taxes and totals (totalAmountIncludingTaxes,totalAmountExcludingTaxes…). - Quotes, invoices, delivery notes and credit notes also keep the customer and shop details as printed (
customerName,shopName…), which can differ from the currentCustomerandShoprecords.
To read sales into your own tools, see Connect an analytics system.