Files
RangelDigital/rangeldigital/fixtures/print_format_rd_sales_invoice.json
2025-03-17 02:53:13 -07:00

23 lines
5.1 KiB
JSON

{
"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": "<table width=\"100%\" class=\"header\" ><tr><td style=\"width: 50%; vertical-align: top; padding: 10px;\"><h2 class=\"font-color-3 font-size-4 bold\">Rangel Digital LLC</h2><p>sales@rangeldigital.com</p><p>541-808-9102</p></td><td class=\"details\" style=\"width: 50%; vertical-align: top; padding: 10px;\"><h2 class=\"quote-heading bold text-right\">INVOICE</h2><table width=\"100%\" class=\"details\" ><tr><td style=\"width: 25%; vertical-align: top; padding:0!important;\"><p class=\"hidden bold\">Quote #</p><p class=\"bold\">Date</p>{% if doc.due_date %}<p class=\"bold\">Due</p> {% endif %}</td><td style=\"width: 70%; vertical-align: top; padding:0!important;\"><p class=\"hidden text-right\">{{ doc.name }}</p><p style=\"text-align: right;\">{{ frappe.utils.formatdate(doc.posting_date, \"MMMM d, YYYY\") }}</p>{% if doc.due_date %}<p class=\"text-right\">{{ frappe.utils.formatdate(doc.due_date, \"MMMM d, yyyy\") }}</p>{% endif %}</td></tr></table></td></tr></table><table width=\"100%\" class=\"addresses\" ><tr><td style=\"width: 50%; vertical-align: top; padding: 10px;\"><p class=\"bill-to-label bold font-size-2\">Bill To</p><p class=\"party-name\">{{doc.customer_name }}</p><p class=\"bill-to-address\"> {% if doc.address_display%}{{ doc.address_display}}{% endif %}</p></td><td style=\"width: 50%; vertical-align: top; padding: 10px;\">{% if doc.shipping_address%}<p class=\"bill-to-label bold font-size-2\">Deliver To</p><p class=\"party-name\">{{doc.party_name }}</p><p class=\"bill-to-address\"> {{ doc.shipping_address}}</p>{% endif %}</td></tr></table></td></tr></table><table class=\"items-table\" width=\"100%\" border=\"0\"><thead><tr class=\"header-row\"><th class=\"item-title text-left\">Item</th><th class=\"quantity-title text-center\">Quantity</th><th class=\"price-title text-center\">Price</th><th class=\"total-title text-right\">Total</th></tr></thead><tbody>{% for item in doc.items %}<tr class=\"row\"><td class=\"item-name bold text-left\">{{ item.item_name }}</td><td class=\"item-quantity text-center\">{{ item.qty }}</td><td class=\"item-rate text-center\">${{ \"{:,.2f}\".format(item.rate) }}</td><td class=\"item-amount text-right\">${{ \"{:,.2f}\".format(item.amount) }}</td></tr>{% if item.description and item.description != item.item_name %}<tr class=\"row description-row\"><td colspan=\"4\" class=\"description-cell\">{{ item.description }}</td></tr>{% endif %}{% endfor %}</tbody></table><div class=\"totals\"><table width=\"250px\" style=\"margin-left:auto;margin-right:0\" class=\"\" ><tr><td class=\"bold\">Sub-Total:</td><td class=\"text-right\"> ${{ \"{:,.2f}\".format(doc.base_total) }}</td></tr><tr><td class=\"bold\">Taxes: </td><td class=\"text-right\">${{ \"{:,.2f}\".format(doc.total_taxes_and_charges) }}</td></tr><td class=\"bold\">Discount:</td><td class=\"text-right\">${{ \"{:,.2f}\".format(doc.discount_amount) }}</td></tr><tr class=\"grand-total\"><td class=\"bold\">Grand Total:</td><td class=\"text-right\">${{ \"{:,.2f}\".format(doc.grand_total) }}</td></tr></table></div>{% if doc.terms %}<div class=\"terms-section\"><h3 class=\"terms-conditions bold\">Terms and Conditions</h3><p>{{doc.terms}}</p></div>{% 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"
}