From 51bfdb273521c8949e5748ab9d4f830f18455be2 Mon Sep 17 00:00:00 2001 From: Jeremy Rangel Date: Mon, 5 May 2025 02:16:10 -0700 Subject: [PATCH] Changes to Sales Invoce Template - 1 --- rangeldigital/fixtures/print_format_rd_sales_invoice.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rangeldigital/fixtures/print_format_rd_sales_invoice.json b/rangeldigital/fixtures/print_format_rd_sales_invoice.json index 1cf0137..5645361 100644 --- a/rangeldigital/fixtures/print_format_rd_sales_invoice.json +++ b/rangeldigital/fixtures/print_format_rd_sales_invoice.json @@ -7,8 +7,8 @@ "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;}", +"html": "

Rangel Digital LLC

sales@rangeldigital.com

541-808-9102

INVOICE ID: {{ doc.name | upper }}

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 2 == 2 %}

Pay To

Rangel Digital LLC

{{ doc.company_address_display }}

{% 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 }}
{% for tax in doc.taxes %}{% endfor %}
Sub-Total:${{ \"{:,.2f}\".format(doc.base_total) }}
Taxes and Charges:${{ \"{:,.2f}\".format(doc.total_taxes_and_charges) }}
{{ tax.description }}${{ \"{:,.2f}\".format(tax.tax_amount) }}
Discount:${{ \"{:,.2f}\".format(doc.discount_amount) }}
Grand Total:${{ \"{:,.2f}\".format(doc.grand_total) }}
{% if doc.terms %}

Terms and Conditions

{{ doc.terms }}

{% endif %}", +"css": ".print-format td.padding-left-20px {padding-left:20px!important} .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",