{% extends "base.html" %} {% block page_title %}My Store Credit{% endblock %} {% block content %}
{% if not eligible %} {% if data_error %} {% else %}
Available Credit

{{ currency_symbol | default(value='₹') }}{{ available | default(value=0) | price }}

Credit Limit: {{ currency_symbol | default(value='₹') }}{{ credit_limit | default(value=0) | price }}

{{ error | default(value='You do not have an active store credit account yet. Please contact the store to request a credit line.') }}
{% endif %} {% else %}
Available Credit

{{ currency_symbol | default(value='₹') }}{{ available | default(value=0) | price }}

Credit Limit: {{ currency_symbol | default(value='₹') }}{{ credit_limit | default(value=0) | price }}

Outstanding Balance {{ currency_symbol | default(value='₹') }}{{ outstanding | default(value=0) | price }}
Interest Due {{ currency_symbol | default(value='₹') }}{{ interest_due | default(value=0) | price }}
{% if outstanding | default(value=0) > 0 %}
{% if overdue %} Overdue Notice: Your grace period has ended. Daily interest of {{ daily_interest_rate_pct | default(value=0) }}% is being accrued. Please pay the outstanding balance immediately. {% else %} {% if days_remaining | default(value=0) == 0 %} Interest-Free Period: Your grace period ends today. Daily interest of {{ daily_interest_rate_pct | default(value=0) }}% starts tomorrow. {% else %} Interest-Free Period: You have {{ days_remaining | default(value=0) }} days remaining before interest starts accruing at {{ daily_interest_rate_pct | default(value=0) }}% per day. {% endif %} {% endif %}
{% endif %} {% set total_due = outstanding | default(value=0) + interest_due | default(value=0) %} {% if total_due > 0 %}

Pay Outstanding Amount

Clear your outstanding balance of {{ currency_symbol | default(value='₹') }}{{ total_due | price }}

{% endif %}

Transaction Ledger

{% for item in ledger | default(value=[]) %} {% else %} {% endfor %}
Your store credit transactions
Date Type Amount Reference / Description
{{ item.created_at | date_in_tz(timezone=settings.timezone) }} {{ item.type | capitalize }} {% if item.type == 'debit' or item.type == 'interest' %}-{% else %}+{% endif %}{{ currency_symbol | default(value='₹') }}{{ item.amount | default(value=0) | price }} {% if item.order_ref %} Order: {{ item.order_ref }} {% elif item.gateway_ref %} Payment Ref: {{ item.gateway_ref }} {% endif %} {% if item.note %}{{ item.note }}{% endif %}
No transactions recorded yet.
{% if interest_logs | default(value=[]) %}
View Daily Interest Accruals ({{ interest_logs | length }})
{% for log in interest_logs %} {% endfor %}
Daily interest charged to your store credit account
Accrual Date Principal Base Daily Rate Amount Charged
{{ log.accrual_date | date_in_tz(timezone=settings.timezone) }} {{ currency_symbol | default(value='₹') }}{{ log.principal | default(value=0) | price }} {{ log.rate_pct | default(value=0) }}% +{{ currency_symbol | default(value='₹') }}{{ log.amount | default(value=0) | price }}
{% endif %} {% endif %}
{% endblock %}