[ { "align_labels_right": 0, "css": ".print-format {\n margin-top: 1cm;\n}\n\n.print-format td, .print-format th {\n padding-left: 0 !important;\n padding-right: 0 !important;\n}\n\n.print-format th {\n background-color: white !important;\n border-bottom: 1px solid #d2d2d2 !important;\n}\n\n.print-format .table > tbody > tr > td {\n border-top-color: transparent;\n}", "custom_format": 0, "default_print_language": null, "disabled": 0, "pg_type": "Invoice", "docstatus": 0, "doctype": "Print Format", "font": "Default", "format_data": "[{\"fieldname\": \"print_heading_template\", \"fieldtype\": \"Custom HTML\", \"options\": \"{% set months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] %}\\n\\n
\\n Invoice for {{ months[pg.month - 1] }} {{ pg.year}} billing period\\n
\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"
\\n \\n
\\n Jingrow Technologies Pvt. Ltd.
\\n D/324, Neelkanth Business Park,
\\n Vidyavihar (W), Mumbai 4000 86, India.\\n
\\n
\\n\\n
\\n \\n
\\n {% set address = jingrow.db.get_value('Team', pg.team, 'billing_address') %}\\n {{ jingrow.get_pg('Address', address).get_display() if address else '' }}\\n
\\n
\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"{% set details = {\\n 'Invoice': pg.name,\\n 'Payment due on': jingrow.utils.global_date_format(pg.due_date)\\n} %}\\n{% for d in details %}\\n
\\n
\\n \\n
\\n
\\n {{ details[d] }}\\n
\\n
\\n{% endfor %}\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"

\\n Total due {{ pg.get_formatted('amount_due') }} on {{\\n jingrow.utils.global_date_format(pg.due_date) }}\\n

\\n\\n

Usage Charges

\\n\\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n {% for row in pg.site_usage %} {% set lineitem = pg.items[loop.index - 1]\\n %}\\n \\n \\n \\n \\n \\n \\n {% endfor %}\\n \\n \\n \\n \\n \\n \\n \\n \\n {% if pg.amount_due > 0 %}\\n \\n \\n \\n \\n \\n \\n \\n \\n {% endif %}\\n
SitePlanDaysAmount
{{ row.site }}{{ jingrow.db.get_value('Plan', row.plan, 'plan_title') }}{{ jingrow.utils.cint(row.days_active) }}{{ lineitem.get_formatted('amount') }}
\\n Total\\n {{ pg.get_formatted('total') }}
\\n Applied Credit Balance\\n {{ pg.get_formatted('starting_balance') }}
\\n Amount Due\\n {{ pg.get_formatted('amount_due') }}
\\n\"}, {\"fieldtype\": \"Section Break\", \"label\": \"Stripe Billing\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"
\\n If you have added a card on file, then it will automatically be charged.
If not, pay using the following link: {{ pg.stripe_invoice_url }}\\n
\"}]", "html": null, "line_breaks": 0, "modified": "2020-07-23 12:04:26.876744", "module": "Press", "name": "Jingrow Brand 2020", "parent": null, "parentfield": null, "parenttype": null, "print_format_builder": 1, "print_format_type": "Jinja", "raw_commands": null, "raw_printing": 0, "show_section_headings": 0, "standard": "No" } ]