A received payment becomes a receipt at once
The accountant marks a deal payment as received, and Krokul calls POST /api/v1/receipts/sell. The goods field gets the names, prices and quantities from the invoice, payments gets the amount and payment type, and order_id gets the Krokul document number. If the cashier shift is closed, Krokul opens it before the first receipt of the day.