{%= list.get_avatar_and_id(doc) %}
{%= doc.supplier_name %}
{% if(doc.outstanding_amount > 0 && doc.docstatus==1) { %}
{% if(frappe.datetime.get_diff(doc.due_date) < 0) { %}
{%= __("Overdue: ") + comment_when(doc.due_date) %}
{% } else { %}
{%= doc.get_formatted("due_date") %}
{% } %}
{% } %}
{% if(doc.outstanding_amount==0 && doc.docstatus==1) { %}
{%= __("Paid") %}
{% } %}
{% if(doc.docstatus===0) { %}
{%= __("Draft") %}
{% } %}
{% var completed = cint((doc.grand_total - doc.outstanding_amount) * 100 / doc.grand_total), title = __("Outstanding Amount") + ": " + doc.get_formatted("outstanding_amount") %}
{% include "templates/form_grid/includes/progress.html" %}
{%= doc.get_formatted("grand_total_import") %}