diff --git a/erpnext/accounts/report/general_ledger/general_ledger.html b/erpnext/accounts/report/general_ledger/general_ledger.html
index a3fb35ed576..4d744c4da55 100644
--- a/erpnext/accounts/report/general_ledger/general_ledger.html
+++ b/erpnext/accounts/report/general_ledger/general_ledger.html
@@ -1,51 +1,84 @@
-
-
-
| {%= __("Date").toLocaleUpperCase() %} | -{%= __("Particulars").toLocaleUpperCase() %} | - {% if(filters.show_remarks) { %} -{%= __("Remarks").toLocaleUpperCase() %} | - {% } %} -{%= __("Debit").toLocaleUpperCase() %} | -{%= __("Credit").toLocaleUpperCase() %} | -{%= __("Balance").toLocaleUpperCase() %} | -
| {%= __("Date").toLocaleUpperCase() %} | +{%= __("Particulars").toLocaleUpperCase() %} | + + {% if(filters.show_remarks) { %} +{%= __("Remarks").toLocaleUpperCase() %} | + {% } %} + +{%= __("Debit").toLocaleUpperCase() %} | +{%= __("Credit").toLocaleUpperCase() %} | +{%= __("Balance").toLocaleUpperCase() %} | +- {%= frappe.datetime.str_to_user(data[i].posting_date) %} - | -
- {%= data[i].voucher_type %} {%= data[i].voucher_no %}
- {% if(!(filters.party || filters.account)) { %}
- {%= data[i].party || data[i].account %}
- {% } %} - {% if(data[i].bill_no) { %} - {%= __("Supplier Invoice No") %}: {%= data[i].bill_no %} - {% } %} - |
- {% if(filters.show_remarks) { %}
-
- {% if(data[i].remarks != "No Remarks" && data[i].remarks != "") { %}
- {%= __("Remarks") %}: {%= data[i].remarks %} - {% } %} - |
+ {% var row = data[i]; %}
+ ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + {% if(row.posting_date) { %} + {%= frappe.datetime.str_to_user(row.posting_date) %} + {% } else if(i == 0) { %} + {%= frappe.datetime.str_to_user(filters.from_date) %} {% } %} - | - {% if data[i].debit != 0 %} - {%= format_currency(data[i].debit, filters.presentation_currency) %} + | + + +
+ {% if(row.posting_date) { %}
+ {%= row.voucher_type %} {%= row.voucher_no %}
+ {% if(!(filters.party || filters.account)) { %}
+ {%= row.party || row.account %}
+ {% } %} + + {% if(row.bill_no) { %} + {%= __("Supplier Invoice No") %}: {%= row.bill_no %} {% } %} - |
- - {% if data[i].credit != 0 %} - {%= format_currency(data[i].credit, filters.presentation_currency) %} - {% } %} - | - {% } else { %} -- {% if(i == 0) { %} - {%= frappe.datetime.str_to_user(filters.from_date) %} - {% } %} - | -+ + {% } else { %} {% if(i == l-2) { %} {%= __("Total") %} + {% } else if(i == l-1) { %} + {%= __("Closing [Opening + Total] ") %} {% } else { %} - {% if(i == l-1) { %} - {%= __("Closing [Opening + Total] ") %} - {% } else { %} - {%= frappe.format(data[i].account, {fieldtype: "Link"}) || " " %} - {% } %} - {% } %} - | - {% if(filters.show_remarks) { %}{% } %} - | - {% if(i != 0){ %} - {% if(i != l-1){ %} - {%= data[i].account && format_currency(data[i].debit, filters.presentation_currency) %} - {% } %} + {%= frappe.format(row.account, {fieldtype: "Link"}) || " " %} {% } %} - | -- {% if(i != 0){ %} - {% if(i != l-1){ %} - {%= data[i].account && format_currency(data[i].credit, filters.presentation_currency) %} - {% } %} + {% } %} + | + + + {% if(filters.show_remarks) { %} ++ {% if(row.posting_date && row.remarks != "No Remarks" && row.remarks != "") { %} + {%= row.remarks %} {% } %} | {% } %} - {% if(i == l-1) { %} -- {%= format_currency(data[i].balance, filters.presentation_currency) %} - {% if(data[i].balance < 0){ %}Cr{% } %} - {% if(data[i].balance > 0){ %}Dr{% } %} - | - {% } else { %} -- {% if(i != l-2) { %} - {%= format_currency(data[i].balance, filters.presentation_currency) %} - {% } %} - | + + ++ {% if(row.posting_date) { %} + {% if(row.debit != 0) { %} + {%= format_currency(row.debit, filters.presentation_currency) %} + {% } %} + {% } else if(i != 0 && i != l-1) { %} + {%= row.account && format_currency(row.debit, filters.presentation_currency) %} {% } %} + | + + ++ {% if(row.posting_date) { %} + {% if(row.credit != 0) { %} + {%= format_currency(row.credit, filters.presentation_currency) %} + {% } %} + {% } else if(i != 0 && i != l-1) { %} + {%= row.account && format_currency(row.credit, filters.presentation_currency) %} + {% } %} + | + + ++ {% if(i == l-1) { %} + {%= format_currency(row.balance, filters.presentation_currency) %} + {% if(row.balance < 0){ %}Cr{% } %} + {% if(row.balance > 0){ %}Dr{% } %} + {% } else if(i != l-2) { %} + {%= format_currency(row.balance, filters.presentation_currency) %} + {% } %} + | +
{%= __("Printed on {0}", [frappe.datetime.str_to_user(frappe.datetime.get_datetime_as_string())]) %}
-+ {%= __("Printed on {0}", [ + frappe.datetime.str_to_user(frappe.datetime.get_datetime_as_string()) + ]) %} +
+