{
 "absolute_value": 0,
 "align_labels_right": 0,
 "creation": "2026-03-25 00:31:49.971580",
 "custom_format": 1,
 "default_print_language": "en",
 "disabled": 0,
 "docstatus": 0,
 "doctype": "Print Format",
 "font_size": 14,
 "html": "<style type=\"text/css\">\n    body, html {\n        margin-top: 10px;\n        padding: 0;\n        width: 100%;\n        height: auto;\n        font-family: Inter, sans-serif;\n        font-size: 14px;\n        line-height: 21px;\n        color: #171717;\n    }\n\n    .title-letter-spacing {\n\t\tfont-size: 14px;\n\t\tfont-weight: 600;\n\t\tcolor: #171717;\n    }\n\n    .report-table table {\n        width: 100%;\n        table-layout: fixed;\n        border-collapse: separate;\n        border-spacing: 0;\n    }\n\n    .report-table thead th {\n        background: #f8f8f8;\n        text-align: center;\n\t\tfont-size: 14px;\n        font-weight: 420;\n        color: #7c7c7c;\n        border-top: 1px solid #ededed;\n        border-bottom: 1px solid #ededed;\n        padding: 6px 8px;\n    }\n\n    .report-table tbody td {\n        padding: 6px 8px;\n        border-bottom: 1px solid #ededed;\n        vertical-align: top;\n        word-wrap: break-word;\n        font-size: 14px;\n    }\n\n    .report-table thead tr:first-child th:first-child {\n        border-left: 1px solid #ededed;\n        border-top-left-radius: 10px;\n        border-bottom-left-radius: 10px;\n    }\n    \n    .report-table thead tr:first-child th:last-child {\n        border-right: 1px solid #ededed;\n        border-top-right-radius: 10px;\n        border-bottom-right-radius: 10px;\n    }\n\n    .report-table tbody tr:last-child td {\n        border-bottom: none;\n    }\n\n    .date-col {\n        white-space: nowrap;\n    }\n\n    .text-center { text-align: center; }\n    .text-left { text-align: left; }\n    .text-right { text-align: right; font-variant-numeric: tabular-nums; }\n    .text-muted { color: #7c7c7c; }\n\n    .text-bold { font-weight: 700; }\n\n    .report-meta {\n        margin: 10px 0 14px;\n        padding: 8px 10px;\n        color: #171717;\n\t\tfont-size: 14px;\n        display: flex;\n        justify-content: space-between;\n        align-items: flex-start;\n        gap: 12px;\n    }\n\n    .report-meta .left,\n    .report-meta .right {\n        display: flex;\n        flex-direction: column;\n    }\n\n    .report-meta .filter-row {\n        margin-bottom: 4px;\n        line-height: 1.5;\n    }\n\n    .report-meta strong {\n        color: #7c7c7c;\n        font-weight: 500;\n    }\n\n    @media print {\n        @page {\n            size: A4;\n            margin-top: 10mm;\n        }\n        thead {\n            display: table-header-group;\n        }\n        tfoot {\n            display: table-footer-group;\n        }\n        tr {\n            page-break-inside: avoid;\n        }\n        .no-print {\n            display: none !important;\n        }\n    }\n</style>\n\n<br>\n\n<div>\n\n    <div class=\"text-center\" style=\"margin-bottom: 12px;\">\n        <div class=\"title-letter-spacing\">\n            {%= __(\"Statement Of Accounts\") %}\n        </div>\n    </div>\n\n    {% if (subtitle && subtitle.trim()) { %}\n        <div class=\"report-meta\">\n            {{ subtitle }}\n        </div>\n    {% } else { %}\n       <div class=\"report-meta\">\n\t\t\t<div class=\"left\">\n\t\t\t\t<div class=\"filter-row\">\n\t\t\t\t\t<strong>{%= __(\"Customer\") %}:</strong>\n\t\t\t\t\t{%=\n\t\t\t\t\t\t(filters.party.length && filters.party.join(\", \")) || filters.party_name || \"All Parties\"\n\t\t\t\t\t%}\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class=\"right text-right\">\n\t\t\t\t<div class=\"filter-row\">\n\t\t\t\t\t<strong>{%= __(\"Statement Period\") %}:</strong>\n\t\t\t\t\t{%= __(\"{0} to {1}\", [\n\t\t\t\t\t\tfrappe.datetime.str_to_user(filters.from_date),\n\t\t\t\t\t\tfrappe.datetime.str_to_user(filters.to_date)\n\t\t\t\t\t]) %}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n    {% } %}\n\n    <div class=\"report-table\">\n        <table>\n            <thead>\n                <tr>\n                    <th style=\"width: 8em; text-align: left;\">{%= __(\"Date\") %}</th>\n                    <th style=\"text-align: left;\">{%= __(\"Voucher Details\") %}</th>\n\n                    {% if(filters.show_remarks) { %}\n                        <th>{%= __(\"Remarks\") %}</th>\n                    {% } %}\n\n                    <th style=\"width: 10em; text-align: right;\">{%= __(\"Debit\") %}</th>\n                    <th style=\"width: 10em; text-align: right;\">{%= __(\"Credit\") %}</th>\n                    <th style=\"width: 10em; text-align: right;\">{%= __(\"Balance\") %}</th>\n                </tr>\n            </thead>\n\n            <tbody>\n\t\t\t\t{% for(var i=0, l=data.length; i<l; i++) { %}\n\t\t\t\t\t{% var row = data[i]; %}\n\t\t\t\t\t{% var is_entry = row.posting_date; %}\n\t\t\t\t\t{% var is_last = i == l-1; %}\n\t\t\t\t\t{% var is_second_last = i == l-2; %}\n\n\t\t\t\t\t<tr>\n\n\t\t\t\t\t\t<!-- Date -->\n\t\t\t\t\t\t<td class=\"text-left date-col\">\n\t\t\t\t\t\t\t{% if(is_entry) { %}\n\t\t\t\t\t\t\t\t{%= frappe.datetime.str_to_user(row.posting_date) %}\n\t\t\t\t\t\t\t{% } else if(i == 0) { %}\n\t\t\t\t\t\t\t\t{%= frappe.datetime.str_to_user(filters.from_date) %}\n\t\t\t\t\t\t\t{% } %}\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<!-- Voucher Details -->\n\t\t\t\t\t\t<td class=\"{% if(!is_entry) { %}text-left text-bold{% } %}\">\n\t\t\t\t\t\t\t{% if(is_entry) { %}\n\n\t\t\t\t\t\t\t\t{%= row.voucher_type %} {%= row.voucher_no %}\n\n\t\t\t\t\t\t\t\t{% if(!(filters.party || filters.account)) { %}\n\t\t\t\t\t\t\t\t\t<div style=\"margin-top: 2px;\">\n\t\t\t\t\t\t\t\t\t\t{%= row.party || row.account %}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t{% } %}\n\n\t\t\t\t\t\t\t\t{% if(row.bill_no) { %}\n\t\t\t\t\t\t\t\t\t<div style=\"margin-top: 2px;\">\n\t\t\t\t\t\t\t\t\t\t{%= __(\"Supplier Invoice No\") %}: {%= row.bill_no %}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t{% } %}\n\n\t\t\t\t\t\t\t{% } else { %}\n\n\t\t\t\t\t\t\t\t{% if(is_second_last) { %}\n\t\t\t\t\t\t\t\t\t{%= __(\"Total\") %}\n\t\t\t\t\t\t\t\t{% } else if(is_last) { %}\n\t\t\t\t\t\t\t\t\t{%= __(\"Closing [Opening + Total] \") %}\n\t\t\t\t\t\t\t\t{% } else { %}\n\t\t\t\t\t\t\t\t\t{%= frappe.format(row.account, {fieldtype: \"Link\"}) || \"&nbsp;\" %}\n\t\t\t\t\t\t\t\t{% } %}\n\n\t\t\t\t\t\t\t{% } %}\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<!-- Remarks -->\n\t\t\t\t\t\t{% if(filters.show_remarks) { %}\n\t\t\t\t\t\t<td class=\"text-left\">\n\t\t\t\t\t\t\t{% if(is_entry && row.remarks && row.remarks != \"No Remarks\") { %}\n\t\t\t\t\t\t\t\t{%= row.remarks %}\n\t\t\t\t\t\t\t{% } %}\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t{% } %}\n\n\t\t\t\t\t\t<!-- Debit -->\n\t\t\t\t\t\t<td class=\"text-right\">\n\t\t\t\t\t\t\t{% if(is_entry) { %}\n\t\t\t\t\t\t\t\t{% if(row.debit != 0) { %}\n\t\t\t\t\t\t\t\t\t{%= format_currency(row.debit, filters.presentation_currency) %}\n\t\t\t\t\t\t\t\t{% } %}\n\t\t\t\t\t\t\t{% } else if(i != 0 && !is_last) { %}\n\t\t\t\t\t\t\t\t{%= row.account && format_currency(row.debit, filters.presentation_currency) %}\n\t\t\t\t\t\t\t{% } %}\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<!-- Credit -->\n\t\t\t\t\t\t<td class=\"text-right\">\n\t\t\t\t\t\t\t{% if(is_entry) { %}\n\t\t\t\t\t\t\t\t{% if(row.credit != 0) { %}\n\t\t\t\t\t\t\t\t\t{%= format_currency(row.credit, filters.presentation_currency) %}\n\t\t\t\t\t\t\t\t{% } %}\n\t\t\t\t\t\t\t{% } else if(i != 0 && !is_last) { %}\n\t\t\t\t\t\t\t\t{%= row.account && format_currency(row.credit, filters.presentation_currency) %}\n\t\t\t\t\t\t\t{% } %}\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<!-- Balance -->\n\t\t\t\t\t\t<td class=\"text-right {% if(is_last) { %}text-bold{% } %}\">\n\t\t\t\t\t\t\t{% if(is_last) { %}\n\t\t\t\t\t\t\t\t{%= format_currency(row.balance, filters.presentation_currency) %}\n\t\t\t\t\t\t\t\t{% if(row.balance < 0) { %} Cr{% } %}\n\t\t\t\t\t\t\t\t{% if(row.balance > 0) { %} Dr{% } %}\n\t\t\t\t\t\t\t{% } else { %}\n\t\t\t\t\t\t\t\t{%= format_currency(row.balance, filters.presentation_currency) %}\n\t\t\t\t\t\t\t{% } %}\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t</tr>\n\t\t\t\t{% } %}\n\t\t\t</tbody>\n        </table>\n    </div>\n\n    <p class=\"text-right text-muted\">\n        {%= __(\"Printed on {0}\", [\n            frappe.datetime.str_to_user(frappe.datetime.get_datetime_as_string())\n        ]) %}\n    </p>\n\n</div>",
 "idx": 0,
 "line_breaks": 0,
 "margin_bottom": 15.0,
 "margin_left": 15.0,
 "margin_right": 15.0,
 "margin_top": 15.0,
 "modified": "2026-05-20 20:05:27.699070",
 "modified_by": "Administrator",
 "module": "Accounts",
 "name": "General Ledger Standard",
 "owner": "Administrator",
 "page_number": "Hide",
 "pdf_generator": "chrome",
 "print_format_builder": 0,
 "print_format_builder_beta": 0,
 "print_format_for": "Report",
 "print_format_type": "JS",
 "raw_printing": 0,
 "report": "General Ledger",
 "show_section_headings": 0,
 "standard": "Yes"
}
