diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json index 382aeb801666d50efaedc5228866fb7a4bf43791..bb360e84cd324e415377cc1eb1b362bc03c60a4d 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json @@ -3,7 +3,7 @@ "allow_auto_repeat": 1, "allow_import": 1, "autoname": "naming_series:", - "creation": "2013-05-24 19:29:05", + "creation": "2022-01-25 10:29:57.771398", "doctype": "DocType", "engine": "InnoDB", "field_order": [ @@ -1939,7 +1939,8 @@ "print_hide": 1 } ], - "icon": "uil uil-file-alt", + "grid_page_length": 50, + "icon": "fa fa-file-text", "idx": 181, "index_web_pages_for_search": 1, "is_sealed": 1, @@ -1951,7 +1952,7 @@ "link_fieldname": "consolidated_invoice" } ], - "modified": "2025-02-06 15:59:54.636202", + "modified": "2025-03-05 17:06:59.720616", "modified_by": "Administrator", "module": "Accounts", "name": "Sales Invoice", @@ -1998,6 +1999,7 @@ } ], "quick_entry": 1, + "row_format": "Dynamic", "search_fields": "posting_date, due_date, customer, base_grand_total, outstanding_amount", "show_name_in_global_search": 1, "show_preview_popup": 1, diff --git a/erpnext/accounts/print_format/sales_invoice_print/__init__.py b/erpnext/accounts/print_format/sales_invoice_print/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/erpnext/accounts/print_format/sales_invoice_print/sales_invoice_print.html b/erpnext/accounts/print_format/sales_invoice_print/sales_invoice_print.html new file mode 100644 index 0000000000000000000000000000000000000000..958c5c10fc1606fe8300cd09801b5d67055eee43 --- /dev/null +++ b/erpnext/accounts/print_format/sales_invoice_print/sales_invoice_print.html @@ -0,0 +1,161 @@ +{%- macro add_header(page_num, max_pages, doc, letter_head, no_letterhead, footer, print_settings=None, print_heading_template=None) -%} + {% if letter_head and not no_letterhead %} +
{{ _("Sr") }} | +{{ _("Details") }} | +{{ _("Qty") }} | +{{ _("Rate") }} | +{{ _("Amount") }} | +
---|---|---|---|---|
{{ loop.index }} | +
+ {{ item.item_code }}: {{ item.item_name }}
+ {% if (item.description != item.item_name) %}
+ {{ item.description }} + {% endif %} + |
+ + {{ item.get_formatted("qty", 0) }} + {{ item.get_formatted("uom", 0) }} + | +{{ item.get_formatted("net_rate", doc) }} | +{{ item.get_formatted("net_amount", doc) }} | +