diff --git a/rmax_custom/setup.py b/rmax_custom/setup.py index 1a0b90e..655ff53 100644 --- a/rmax_custom/setup.py +++ b/rmax_custom/setup.py @@ -926,9 +926,6 @@ def _get_ar_summary_print_html(): .row-even td { background-color: #fafaf8; } .row-odd td { background-color: #f5f3ef; } .total-row td { background-color: #334155; color: #fff; font-weight: bold; } - .aging-summary { margin-top: 14px; } - .aging-summary th { background-color: #334155; } - .aging-label-row td { background-color: #e8e4dc; font-weight: bold; } .footer-section { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 16px; border-top: 1px solid #aaa; } .sig-block { text-align: center; } .sig-line { border-bottom: 1px solid #333; width: 200px; margin-top: 50px; margin-bottom: 5px; } @@ -951,41 +948,41 @@ def _get_ar_summary_print_html(): {% } else { %} As of {%= frappe.datetime.str_to_user(frappe.datetime.get_today()) %} {% } %} + {% if (filters.ageing_based_on) { %} + (Ageing Based On: {%= filters.ageing_based_on %}) + {% } %}
| Party Type | -Party | -Advance () | -Invoiced () | -Paid () | -Credit Note () | +Party Type | +Party | Outstanding () | +0-30 Days () | +31-60 Days () | +61-90 Days () | +91-120 Days () | +>120 Days () |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {%= row.party_type || "" %} | {%= row.customer_name || row.party || "" %} | -{%= adv ? format_currency(adv, " ").replace(/[^\d,.\-]/g, "").trim() : "-" %} | -{%= format_currency(invoiced, " ").replace(/[^\d,.\-]/g, "").trim() %} | -{%= format_currency(paid, " ").replace(/[^\d,.\-]/g, "").trim() %} | -{%= cn ? format_currency(cn, " ").replace(/[^\d,.\-]/g, "").trim() : "-" %} | {%= format_currency(outstanding, " ").replace(/[^\d,.\-]/g, "").trim() %} | +{%= r1 ? format_currency(r1, " ").replace(/[^\d,.\-]/g, "").trim() : "-" %} | +{%= r2 ? format_currency(r2, " ").replace(/[^\d,.\-]/g, "").trim() : "-" %} | +{%= r3 ? format_currency(r3, " ").replace(/[^\d,.\-]/g, "").trim() : "-" %} | +{%= r4 ? format_currency(r4, " ").replace(/[^\d,.\-]/g, "").trim() : "-" %} | +{%= r5 ? format_currency(r5, " ").replace(/[^\d,.\-]/g, "").trim() : "-" %} | ||
| Total | -{%= format_currency(t_adv, " ").replace(/[^\d,.\-]/g, "").trim() %} | -{%= format_currency(t_inv, " ").replace(/[^\d,.\-]/g, "").trim() %} | -{%= format_currency(t_paid, " ").replace(/[^\d,.\-]/g, "").trim() %} | -{%= format_currency(t_cn, " ").replace(/[^\d,.\-]/g, "").trim() %} | {%= format_currency(t_out, " ").replace(/[^\d,.\-]/g, "").trim() %} | +{%= format_currency(t_r1, " ").replace(/[^\d,.\-]/g, "").trim() %} | +{%= format_currency(t_r2, " ").replace(/[^\d,.\-]/g, "").trim() %} | +{%= format_currency(t_r3, " ").replace(/[^\d,.\-]/g, "").trim() %} | +{%= format_currency(t_r4, " ").replace(/[^\d,.\-]/g, "").trim() %} | +{%= format_currency(t_r5, " ").replace(/[^\d,.\-]/g, "").trim() %} | |||
| Less than 30 Days | -31 to 60 Days | -61 to 90 Days | -91 to 120 Days | -More than 120 Days | -Total Outstanding | +0-30 Days () | +31-60 Days () | +61-90 Days () | +91-120 Days () | +>120 Days () | +Total Outstanding () |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {%= format_currency(t_r1, " ").replace(/[^\d,.\-]/g, "").trim() %} | {%= format_currency(t_r2, " ").replace(/[^\d,.\-]/g, "").trim() %} | {%= format_currency(t_r3, " ").replace(/[^\d,.\-]/g, "").trim() %} |