}
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4" class="text-end fw-bold">总计:</td>
                                <td class="fw-bold fs-5 text-success">¥{{ sale.total_amount|floatformat:2 }}</td>
                            </tr>
                            {% if sale.discount_amount %}
                            <tr>
                                <td colspan="4" class="text-end fw-bold">优�