     * Method that generate Receipt by specific Invoice
     *
     * @param idInvioce id of the Invoice
     * @return Receipt of the invoice paid
     */
    public Receipt generateReceipt(int idInvioce) throws SQLException {
        InvoiceDataHandler invoiceDataHandler = new InvoiceDataHandler();
        Invoice invoice = invoiceDataHandler.getById(idInvioce);

        boolean payInvoice = InvoicePayment.payInvoice(invoice.getidUser(), invoice.getTotalPrice());
