From 4a8772fddb35805396427f877401a5101a4c4974 Mon Sep 17 00:00:00 2001 From: Jeremy Rangel Date: Mon, 17 Mar 2025 02:53:13 -0700 Subject: [PATCH] Added RD Sales Invoice - 1 print template --- .../fixtures/print_format_rd_quotation_1.json | 1 + .../print_format_rd_sales_invoice.json | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 rangeldigital/fixtures/print_format_rd_sales_invoice.json diff --git a/rangeldigital/fixtures/print_format_rd_quotation_1.json b/rangeldigital/fixtures/print_format_rd_quotation_1.json index 7a8f59e..97f005e 100644 --- a/rangeldigital/fixtures/print_format_rd_quotation_1.json +++ b/rangeldigital/fixtures/print_format_rd_quotation_1.json @@ -11,6 +11,7 @@ "css": ".bold {font-weight:bold} .font-size-1 {font-size:14px!important;} .font-size-2 {font-size:16px!important} .font-size-4 {font-size:24px!important;} .font-color-3 {color:#008AFC!important} .text-left {text-align:left!important;} .text-center {text-align:center!important;} .text-right {text-align:right!important} table {border-spacing: 0 1px;border-collapse:separate} p,td {font-size:14px;} h2 {margin:0!important;} h2.quote-heading {font-size:20px;} .header {margin-bottom:40px;} .print-format td.details {padding-left:20px!important} .addresses {margin-bottom:40px;} .items-table *{line-height:16px} .items-table .row:before {display:none!important;} .items-table th, .items-table td {font-size:14px;} .items-table .header-row {background:#02204B} .items-table .header-row td {font-weight:bold} .items-table .header-row th {color:white;font-weight:bold} .items-table .row:not(.description-row) td {padding-top:5px!important;padding-bottom:0!important;} .items-table .description-row td {padding-top:0!important;padding-bottom:0!important;} .description-row p {padding-left:5px!important} .totals {margin-top:50px;font-size:14px} .totals td {padding-top:3px!important;padding-right:10px!important;padding-bottom:3px!important;} .totals .grand-total {background:#f1f1f1;} .totals .grand-total td{padding-top:7px!important;padding-bottom:7px!important;} .terms-section {margin-top:40px;} .terms-section h3 {margin-bottom:5px;}", "idx": 1, "line_breaks": 0, + "is_default": 1, "modified": "2021-04-15 15:23:28.867135", "modified_by": "Administrator", "module": "Selling", diff --git a/rangeldigital/fixtures/print_format_rd_sales_invoice.json b/rangeldigital/fixtures/print_format_rd_sales_invoice.json new file mode 100644 index 0000000..1cf0137 --- /dev/null +++ b/rangeldigital/fixtures/print_format_rd_sales_invoice.json @@ -0,0 +1,23 @@ +{ + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2011-12-21 11:08:55", + "custom_format": 1, + "disabled": 0, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype": "Print Format", + "html": "

Rangel Digital LLC

sales@rangeldigital.com

541-808-9102

INVOICE

Quote #

Date

{% if doc.due_date %}

Due

{% endif %}

{{ doc.name }}

{{ frappe.utils.formatdate(doc.posting_date, \"MMMM d, YYYY\") }}

{% if doc.due_date %}

{{ frappe.utils.formatdate(doc.due_date, \"MMMM d, yyyy\") }}

{% endif %}

Bill To

{{doc.customer_name }}

{% if doc.address_display%}{{ doc.address_display}}{% endif %}

{% if doc.shipping_address%}

Deliver To

{{doc.party_name }}

{{ doc.shipping_address}}

{% endif %}
{% for item in doc.items %}{% if item.description and item.description != item.item_name %}{% endif %}{% endfor %}
ItemQuantityPriceTotal
{{ item.item_name }}{{ item.qty }}${{ \"{:,.2f}\".format(item.rate) }}${{ \"{:,.2f}\".format(item.amount) }}
{{ item.description }}
Sub-Total: ${{ \"{:,.2f}\".format(doc.base_total) }}
Taxes: ${{ \"{:,.2f}\".format(doc.total_taxes_and_charges) }}
Discount:${{ \"{:,.2f}\".format(doc.discount_amount) }}
Grand Total:${{ \"{:,.2f}\".format(doc.grand_total) }}
{% if doc.terms %}

Terms and Conditions

{{doc.terms}}

{% endif %}", + "css": ".hidden {display:none!important}.bold {font-weight:bold} .font-size-1 {font-size:14px!important;} .font-size-2 {font-size:16px!important} .font-size-4 {font-size:24px!important;} .font-color-3 {color:#008AFC!important} .text-left {text-align:left!important;} .text-center {text-align:center!important;} .text-right {text-align:right!important} table {border-spacing: 0 1px;border-collapse:separate} p,td {font-size:14px;} h2 {margin:0!important;} h2.quote-heading {font-size:20px;} .header {margin-bottom:40px;} .print-format td.details {padding-left:20px!important} .addresses {margin-bottom:40px;} .items-table *{line-height:16px} .items-table .row:before {display:none!important;} .items-table th, .items-table td {font-size:14px;} .items-table .header-row {background:#02204B} .items-table .header-row td {font-weight:bold} .items-table .header-row th {color:white;font-weight:bold} .items-table .row:not(.description-row) td {padding-top:5px!important;padding-bottom:0!important;} .items-table .description-row td {padding-top:0!important;padding-bottom:0!important;} .description-row p {padding-left:5px!important} .totals {margin-top:50px;font-size:14px} .totals td {padding-top:3px!important;padding-right:10px!important;padding-bottom:3px!important;} .totals .grand-total {background:#f1f1f1;} .totals .grand-total td{padding-top:7px!important;padding-bottom:7px!important;} .terms-section {margin-top:40px;} .terms-section h3 {margin-bottom:5px;}", + "line_breaks": 0, + "is_default": 1, + "modified": "2021-04-15 15:23:28.867135", + "modified_by": "Administrator", + "name": "RD Sales Invoice - 1", + "owner": "Administrator", + "print_format_builder": 0, + "print_format_type": "Jinja", + "raw_printing": 0, + "show_section_headings": 0, + "standard": "Yes" + } \ No newline at end of file