| {{ _(" ") }} | {{ _(range1) }} | {{ _(range2) }} | {{ _(range3) }} | {{ _(range4) }} | {{ _(range5) }} | {{ _(range6) }} | {{ _("Total") }} |
|---|---|---|---|---|---|---|---|
| {{ _("Total Outstanding") }} | {{ format_number(balance_row["age"], null, 2) }} | {{ frappe.utils.fmt_money(balance_row["range1"], data[data.length-1]["currency"]) }} | {{ frappe.utils.fmt_money(balance_row["range2"], data[data.length-1]["currency"]) }} | {{ frappe.utils.fmt_money(balance_row["range3"], data[data.length-1]["currency"]) }} | {{ frappe.utils.fmt_money(balance_row["range4"], data[data.length-1]["currency"]) }} | {{ frappe.utils.fmt_money(balance_row["range5"], data[data.length-1]["currency"]) }} | {{ frappe.utils.fmt_money(flt(balance_row["outstanding"]), data[data.length-1]["currency"]) }} | {{ _("Future Payments") }} | {{ frappe.utils.fmt_money(flt(balance_row[("future_amount")]), data[data.length-1]["currency"]) }} |
| {{ _("Cheques Required") }} | {{ frappe.utils.fmt_money(flt(balance_row["outstanding"] - balance_row[("future_amount")]), data[data.length-1]["currency"]) }} |
| {{ _("Date") }} | {{ _("Age (Days)") }} | {% if(report.report_name == "Accounts Receivable" and filters.show_sales_person) %}{{ _("Reference") }} | {{ _("Sales Person") }} | {% else %}{{ _("Reference") }} | {% endif %} {% if not(filters.show_future_payments) %}{% if (filters.customer or filters.supplier or filters.customer_name) %} {{ _("Remarks") }} {% else %} {{ _("Party") }} {% endif %} | {% endif %}{{ _("Invoiced Amount") }} | {% if not(filters.show_future_payments) %}{{ _("Paid Amount") }} | {% if report.report_name == "Accounts Receivable" %} {{ _('Credit Note') }} {% else %} {{ _('Debit Note') }} {% endif %} | {% endif %}{{ _("Outstanding Amount") }} | {% if(filters.show_future_payments) %} {% if(report.report_name == "Accounts Receivable") %}{{ _("Customer LPO No.") }} | {% endif %}{{ _("Future Payment Ref") }} | {{ _("Future Payment Amount") }} | {{ _("Remaining Balance") }} | {% endif %} {% else %}{% if (filters.customer or filters.supplier or filters.customer_name) %} {{ _("Remarks")}} {% else %} {{ _("Party") }} {% endif %} | {{ _("Total Invoiced Amount") }} | {{ _("Total Paid Amount") }} | {% if report.report_name == "Accounts Receivable Summary" %} {{ _('Credit Note Amount') }} {% else %} {{ _('Debit Note Amount') }} {% endif %} | {{ _("Total Outstanding Amount") }} | {% endif %}||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ (data[i]["posting_date"]) }} | {{ data[i]["age"] }} |
{% if not(filters.show_future_payments) %}
{{ data[i]["voucher_type"] }}
{% endif %} {{ data[i]["voucher_no"] }} |
{% if(report.report_name == "Accounts Receivable" and filters.show_sales_person) %}
{{ data[i]["sales_person"] }} | {% endif %} {% if not (filters.show_future_payments) %}
{% if(not(filters.customer or filters.supplier or filters.customer_name)) %}
=======
{% if letter_head.content %}
{{ letter_head.content }}
{% endif %} {{ _(report.report_name) }}{{ filters.customer_name }}{% if (filters.tax_id) %} {{ _("Tax Id: {0}").format(filters.tax_id) }} {% endif %}{{ _("{0} until {1}").format( _(filters.ageing_based_on), frappe.format(filters.report_date, 'Date') ) }}
{% if(filters.payment_terms) %}
{{ _("Payment Terms:") }} {{ filters.payment_terms }}
{% endif %}
{% if(filters.credit_limit) %}
{{ _("Credit Limit:") }} {{ frappe.utils.fmt_money(filters.credit_limit) }}
{% endif %}
{% if ageing %} {{ _("Ageing Report based on ") }} {{ ageing.ageing_based_on }} {{ _("up to " ) }} {{ frappe.format(filters.report_date, 'Date')}}
{{ terms_and_conditions }}
{% endif %}
{{ _("Printed On ") }}{{ frappe.utils.now() }} ======={{ _("Remarks") }}: {{ data[i]["remarks"] }} |
{% else %}
{{ _("Total") }} | {% endif %}{{ frappe.utils.fmt_money(data[i]["invoiced"], currency=data[i]["currency"]) }} | {{ frappe.utils.fmt_money(data[i]["paid"], currency=data[i]["currency"]) }} | {{ frappe.utils.fmt_money(data[i]["credit_note"], currency=data[i]["currency"]) }} | {{ frappe.utils.fmt_money(data[i]["outstanding"], currency=data[i]["currency"]) }} | {% endif %} {% endif %}{{ frappe.utils.fmt_money(data|sum(attribute="invoiced"), currency=data[0]["currency"]) }} | {{ frappe.utils.fmt_money(data|sum(attribute="paid"), currency=data[0]["currency"]) }} | {{ frappe.utils.fmt_money(data|sum(attribute="credit_note"), currency=data[0]["currency"]) }} | {{ frappe.utils.fmt_money(data|sum(attribute="outstanding"), currency=data[0]["currency"]) }} |
| {{ _("0 - 30 Days") }} | {{ _("30 - 60 Days") }} | {{ _("60 - 90 Days") }} | {{ _("90 - 120 Days") }} | {{ _("Above 120 Days") }} |
|---|---|---|---|---|
| {{ frappe.utils.fmt_money(ageing.range1, currency=data[0]["currency"]) }} | {{ frappe.utils.fmt_money(ageing.range2, currency=data[0]["currency"]) }} | {{ frappe.utils.fmt_money(ageing.range3, currency=data[0]["currency"]) }} | {{ frappe.utils.fmt_money(ageing.range4, currency=data[0]["currency"]) }} | {{ frappe.utils.fmt_money(ageing.range5, currency=filters.presentation_currency) }} |
{{ _("Printed on {0}").format(frappe.utils.now()) }}
>>>>>>> ee9a2952d6 (fix: switched asset terminology from cost to value)