From 1cfa9d53e3f3f96698c804369347213cc4036be1 Mon Sep 17 00:00:00 2001 From: Jeremy Rangel Date: Wed, 2 Apr 2025 14:58:26 -0700 Subject: [PATCH] Added print format for RD Contract - 1 --- .../fixtures/contract_custom_fields.json | 108 ++++++++++++++++++ .../fixtures/print_format_rd_contract_1.json | 23 ++++ 2 files changed, 131 insertions(+) create mode 100644 rangeldigital/fixtures/contract_custom_fields.json create mode 100644 rangeldigital/fixtures/print_format_rd_contract_1.json diff --git a/rangeldigital/fixtures/contract_custom_fields.json b/rangeldigital/fixtures/contract_custom_fields.json new file mode 100644 index 0000000..9d7d878 --- /dev/null +++ b/rangeldigital/fixtures/contract_custom_fields.json @@ -0,0 +1,108 @@ +[ + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Contract", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "signature_image_company", + "fieldtype": "Attach", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "signee_company", + "is_system_generated": 1, + "is_virtual": 0, + "label": "Signature Image (Company)", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-01-24 20:38:35.623451", + "module": null, + "name": "contract_signature_image_company", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Contract", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "signed_on_company", + "fieldtype": "Datetime", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "signature_image_company", + "is_system_generated": 1, + "is_virtual": 0, + "label": "Signed On (Company)", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-01-24 20:38:35.623451", + "module": null, + "name": "contract_signed_on_company", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "translatable": 0, + "unique": 0, + "width": null + } + ] \ No newline at end of file diff --git a/rangeldigital/fixtures/print_format_rd_contract_1.json b/rangeldigital/fixtures/print_format_rd_contract_1.json new file mode 100644 index 0000000..45ec20a --- /dev/null +++ b/rangeldigital/fixtures/print_format_rd_contract_1.json @@ -0,0 +1,23 @@ +{ + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2020-03-21 11:08:55", + "custom_format": 1, + "disabled": 0, + "doc_type": "Contract", + "docstatus": 0, + "doctype": "Print Format", + "html": "

Rangel Digital LLC

sales@rangeldigital.com

541-808-9102

CONTRACT

Contract #

Start Date

{% if doc.start_date %}

End Date

{% endif %}

{{ doc.name }}

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

{% if doc.start_date %}

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

{% endif %}
{{ doc.contract_terms }}

I, the undersigned, affirm that I have entered into this agreement voluntarily and with full authority to do so.

Rangel Digital LLC

Full Name: {{ doc.signed_by_company }}

Signature: \"Signature\"

Date: {{ frappe.utils.formatdate(doc.signed_on_company, \"MMMM d, YYYY\") }}

{{ doc.party_name }}

Full Name: ___________________________

Signature: ___________________________

Date: ________________________________

", + "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; } body:last-child .print-format td img.signature_company { height: 20px !important; width: 50px !important; object-fit: contain; } .terms { margin-top: 50px; margin-bottom: 50px; } .signers { margin-top: 10px; } .party-full-name, .party-signature, .party-date, .company-full-name { padding-top: 10px; } table { margin-left: -10px; } .print-format .company-signature { padding: 0 !important; vertical-align: middle !important; }", + "line_breaks": 0, + "is_default": 1, + "modified": "2021-04-15 15:23:28.867135", + "modified_by": "Administrator", + "name": "RD Contract - 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