Skip to content

Commit

Permalink
fix: PSOA ageing
Browse files Browse the repository at this point in the history
(cherry picked from commit fed2d11)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed May 14, 2024
1 parent 14ec635 commit e69e540
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def set_ageing(doc, entry):
ageing_filters = frappe._dict(
{
"company": doc.company,
"report_date": doc.to_date,
"report_date": doc.posting_date,
"ageing_based_on": doc.ageing_based_on,
"range1": 30,
"range2": 60,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,11 @@ <h4 class="text-center">{{ _("Ageing Report based on ") }} {{ ageing.ageing_base
<table class="table table-bordered">
<thead>
<tr>
<th style="width: 25%">30 Days</th>
<th style="width: 25%">60 Days</th>
<th style="width: 25%">90 Days</th>
<th style="width: 25%">120 Days</th>
<th style="width: 25%">0 - 30 Days</th>
<th style="width: 25%">30 - 60 Days</th>
<th style="width: 25%">60 - 90 Days</th>
<th style="width: 25%">90 - 120 Days</th>
<th style="width: 20%">Above 120 Days</th>
</tr>
</thead>
<tbody>
Expand All @@ -352,6 +353,7 @@ <h4 class="text-center">{{ _("Ageing Report based on ") }} {{ ageing.ageing_base
<td>{{ frappe.utils.fmt_money(ageing.range2, currency=data[0]["currency"]) }}</td>
<td>{{ frappe.utils.fmt_money(ageing.range3, currency=data[0]["currency"]) }}</td>
<td>{{ frappe.utils.fmt_money(ageing.range4, currency=data[0]["currency"]) }}</td>
<td>{{ frappe.utils.fmt_money(ageing.range5, currency=filters.presentation_currency) }}</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit e69e540

Please sign in to comment.