From payment to the buyer receipt
The payment.received event means the payment on the deal is posted as a fact. Krokul creates a Checkbox receipt with the invoice lines and sends it to the buyer by e-mail or SMS taken from the contact. The fiscal number and the receipt PDF stay on the payment, and a refund produces a return receipt on the same deal.