2424 < p > Is Progressible:
2525 < span class ="icon is-small has-text-danger "> {% icon 'maki:roadblock-11' 24 %}</ span >
2626 {% endif %}
27- < p class ="is-size-5 has-text-danger "> You Still Owe: {% currency_symbol %}{{ bill.get_amount_open | currency_format }}</ p >
27+ < p class ="is-size-5 has-text-danger "> You Still Owe:
28+ {% currency_symbol %}{{ bill.get_amount_open | currency_format }}</ p >
2829 < p > Amount Paid: {% currency_symbol %}{{ bill.amount_paid | currency_format }}</ p >
2930 < p > Progressed: {{ bill.get_progress | percentage }}</ p > < br >
3031 < progress class ="progress is-medium is-success "
@@ -55,7 +56,6 @@ <h2 class="card-header-title has-text-weight-light is-size-3">
5556 {% trans 'Bill Info' %}</ h2 >
5657 </ div >
5758 < div class ="card-content ">
58-
5959 {% if bill.paid %}
6060 < p class ="is-size-3 has-text-dark "> Is Paid
6161 < span class ="icon is-large has-text-success-dark ">
@@ -66,53 +66,56 @@ <h2 class="card-header-title has-text-weight-light is-size-3">
6666 < span class ="has-text-weight-bold "> {% currency_symbol %}{{ bill.amount_paid | currency_format }}</ span >
6767 </ p >
6868 {% else %}
69- < p class ="is-size-3 has-text-dark "> Bill Amount:
70- < span class ="has-text-weight-bold "> {% currency_symbol %}{{ bill.amount_due | currency_format }}</ span >
71- </ p >
72- {% if not bill.is_past_due %}
73- < p class ="is-size-4 has-text-info "> Due in: {{ bill.due_date | timeuntil }}</ p >
74- {% else %}
75- < p class ="is-size-4 has-text-info "> Due in: {{ bill.due_date | date }}</ p >
76- < p class ="has-text-danger has-text-weight-bold is-size-3 "> Past
77- Due: {{ bill.due_date | timesince }} ago</ p >
78- {% endif %}
79- < p class ="is-size-5 has-text-danger "> You Still Owe: {% currency_symbol %}{{ bill.get_amount_open | currency_format }}</ p >
8069
81- {% if bill.accrue %}
82- < p > Is Accrued: < span
83- class ="icon has-text-success "> {% icon 'ant-design:check-circle-filled' 24 % }</ span >
70+ {% if not bill.void %}
71+ < p class =" is-size-3 has-text-dark " > Bill Amount:
72+ < span class ="has-text-weight-bold "> {% currency_symbol %}{{ bill.amount_due | currency_format } }</ span >
8473 </ p >
74+ {% if not bill.is_past_due %}
75+ < p class ="is-size-4 has-text-info "> Due in: {{ bill.due_date | timeuntil }}</ p >
76+ {% else %}
77+ < p class ="is-size-4 has-text-info "> Due in: {{ bill.due_date | date }}</ p >
78+ < p class ="has-text-danger has-text-weight-bold is-size-3 "> Past
79+ Due: {{ bill.due_date | timesince }} ago</ p >
80+ {% endif %}
81+ < p class ="is-size-5 has-text-danger "> You Still Owe:
82+ {% currency_symbol %}{{ bill.get_amount_open | currency_format }}</ p >
83+ {% if bill.accrue %}
84+ < p > Is Accrued: < span
85+ class ="icon has-text-success "> {% icon 'ant-design:check-circle-filled' 24 %}</ span >
86+ </ p >
87+ {% else %}
88+ < p > Is Accrued:
89+ < span class ="icon is-small has-text-danger "> {% icon 'maki:roadblock-11' 24 %}</ span >
90+ </ p >
91+ {% endif %}
92+ < p > Amount Paid: {% currency_symbol %}{{ bill.amount_paid | currency_format }}</ p >
93+ < p > Progressed: {{ bill.get_progress | percentage }}</ p > < br >
94+ < progress class ="progress is-medium is-success "
95+ value ="{{ bill.get_progress_percent }} "
96+ max ="100 ">
97+ {{ bill.get_progress | percentage }}
98+ </ progress >
99+ < footer class ="card-footer ">
100+ < a href ="{% url 'django_ledger:bill-update' entity_slug=entity_slug bill_pk=bill.uuid %} "
101+ class ="card-footer-item has-text-primary has-text-centered "> {% trans 'Update' %}</ a >
102+ < a onclick ="djLedger.toggleModal('{{ bill.get_html_id }}') "
103+ class ="card-footer-item has-text-info has-text-centered "> {% trans 'Mark as Paid' %}</ a >
104+ < a href ="{% url 'django_ledger:bill-delete' entity_slug=entity_slug bill_pk=bill.uuid %} "
105+ class ="card-footer-item has-text-danger has-text-centered "> {% trans 'Delete' %}</ a >
106+ < a href ="{% url 'django_ledger:bill-void' entity_slug=entity_slug bill_pk=bill.uuid %} "
107+ class ="card-footer-item has-text-warning has-text-centered "> {% trans 'Void' %}</ a >
108+ </ footer >
109+ {# MARK AS PAID MODAL #}
110+ {% mark_as_paid bill %}
85111 {% else %}
86- < p > Is Accrued :
87- < span class ="icon is-small has-text-danger "> {% icon 'maki:roadblock-11' 24 % }</ span >
112+ < p class =" is-size-3 has-text-dark " > Bill Amount :
113+ < span class ="has-text-weight-bold "> {% currency_symbol %}{{ bill.amount_due | currency_format } }</ span >
88114 </ p >
115+ < p class ="is-size-3 has-text-warning-dark "> VOIDED {{ bill.void_date | date }}</ p >
89116 {% endif %}
90-
91- < p > Amount Paid: {% currency_symbol %}{{ bill.amount_paid | currency_format }}</ p >
92-
93- < p > Progressed: {{ bill.get_progress | percentage }}</ p > < br >
94- < progress class ="progress is-medium is-success "
95- value ="{{ bill.get_progress_percent }} "
96- max ="100 ">
97- {{ bill.get_progress | percentage }}
98- </ progress >
99-
100117 {% endif %}
101-
102- {# MARK AS PAID MODAL #}
103- {% mark_as_paid bill %}
104-
105118 </ div >
106- < footer class ="card-footer ">
107- < a href ="{% url 'django_ledger:bill-update' entity_slug=entity_slug bill_pk=bill.uuid %} "
108- class ="card-footer-item has-text-primary has-text-centered "> {% trans 'Update' %}</ a >
109- < a onclick ="djLedger.toggleModal('{{ bill.get_html_id }}') "
110- class ="card-footer-item has-text-info has-text-centered "> {% trans 'Mark as Paid' %}</ a >
111- < a href ="{% url 'django_ledger:bill-delete' entity_slug=entity_slug bill_pk=bill.uuid %} "
112- class ="card-footer-item has-text-danger has-text-centered "> {% trans 'Delete' %}</ a >
113- < a href ="{% url 'django_ledger:bill-void' entity_slug=entity_slug bill_pk=bill.uuid %} "
114- class ="card-footer-item has-text-warning has-text-centered "> {% trans 'Void' %}</ a >
115- </ footer >
116119 </ div >
117120 {% endif %}
118121{% else %}
0 commit comments