KFSH/asset_lite/fixtures/print_format.json
2025-12-11 13:37:26 +05:30

777 lines
218 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": null,
"disabled": 0,
"doc_type": "Purchase Order",
"docstatus": 0,
"doctype": "Print Format",
"font": "Default",
"font_size": 0,
"format_data": null,
"html": "<div class=\"page-break\">\n <div class=\"print-heading\">\n\t\t<h2>Purchase Order<br>\n\t <small>{{doc.name}}</small>\n </h2>\n </div>\n <div class=\"row section-break\">\n <div class=\"col-xs-6 column-break\">\n <div class=\"row\">\n\t\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t\t<label>Supplier Name</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"col-xs-7 value\">\n\t\t\t\t\t\t{{doc.supplier_name}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t{% if doc.address_display %}\n\t <div class=\"row\">\n\t\t\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t\t\t<label>Address</label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"col-xs-7 value\">\n\t\t\t\t\t\t\t{{doc.address_display}}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t{%- endif -%}\n\t\t\t\t{% if doc.contact_display %}\n\t <div class=\"row\">\n\t\t\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t\t\t<label>Contact</label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"col-xs-7 value\">\n\t\t\t\t\t\t\t{{doc.contact_display}}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t{%- endif -%}\n\t\t\t\t{% if doc.contact_mobile %}\n\t <div class=\"row\">\n\t\t\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t\t\t<label>Mobile No</label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"col-xs-7 value\">\n\t\t\t\t\t\t\t{{doc.contact_mobile}}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t{%- endif -%}\n </div>\n \n <div class=\"col-xs-6 column-break\">\n <div class=\"row\">\n\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t<label>Date</label>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-xs-7 value\">\n\t\t\t\t\t{{doc.transaction_date}}\n\t\t\t\t</div>\n\t\t\t</div>\n <div class=\"row\">\n\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t<label>Customer Name</label>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-xs-7 value\">\n\t\t\t\t\t{{doc.customer_name}}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{% if doc.shipping_address_display %}\n\t <div class=\"row\">\n\t\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t\t<label>Customer Address</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"col-xs-7 value\">\n\t\t\t\t\t\t{{doc.shipping_address_display}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{%- endif -%}\n\t\t\t{% if doc.customer_contact_display %}\n\t <div class=\"row\">\n\t\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t\t<label>Customer Contact</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"col-xs-7 value\">\n\t\t\t\t\t\t{{doc.customer_contact_display}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{%- endif -%}\n\t\t\t{% if doc.customer_contact_mobile %}\n\t <div class=\"row\">\n\t\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t\t<label>Customer Mobile No</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"col-xs-7 value\">\n\t\t\t\t\t\t{{doc.customer_contact_mobile}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{%- endif -%}\n </div>\n </div>\n\t<table class=\"table table-bordered\">\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<th>Sr</th>\n\t\t\t\t<th>Item Name</th>\n\t\t\t\t<th>Description</th>\n\t\t\t\t<th class=\"text-right\">Qty</th>\n\t\t\t\t<th class=\"text-right\">Rate</th>\n\t\t\t\t<th class=\"text-right\">Amount</th>\n\t\t\t</tr>\n\t\t\t{%- for row in doc.items -%}\n\t\t\t<tr>\n\t\t\t\t<td style=\"width: 3%;\">{{ row.idx }}</td>\n\t\t\t\t<td style=\"width: 20%;\">\n\t\t\t\t\t{{ row.item_name }}\n\t\t\t\t\t{% if row.item_code != row.item_name -%}\n\t\t\t\t\t<br>Item Code: {{ row.item_code}}\n\t\t\t\t\t{%- endif %}\n\t\t\t\t</td>\n\t\t\t\t<td style=\"width: 37%;\">\n\t\t\t\t\t<div style=\"border: 0px;\">{{ row.description }}</div></td>\n\t\t\t\t<td style=\"width: 10%; text-align: right;\">{{ row.qty }} {{ row.uom or row.stock_uom }}</td>\n\t\t\t\t<td style=\"width: 15%; text-align: right;\">{{\n\t\t\t\t\trow.get_formatted(\"rate\", doc) }}</td>\n\t\t\t\t<td style=\"width: 15%; text-align: right;\">{{\n\t\t\t\t\trow.get_formatted(\"amount\", doc) }}</td>\n\t\t\t</tr>\n\t\t\t{%- endfor -%}\n\t\t</tbody>\n\t</table>\n <div class=\"row section-break\">\n <div class=\"col-xs-6 column-break\">\n </div>\n <div class=\"col-xs-6 column-break\">\n <div class=\"row\">\n\t\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t\t<label>Total</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"col-xs-7 text-right value\">\n\t\t\t\t\t\t{{doc.total}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n <div class=\"row\">\n\t\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t\t<label>Grand Total</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"col-xs-7 text-right value\">\n\t\t\t\t\t\t{{doc.grand_total}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n <div class=\"row\">\n\t\t\t\t\t<div class=\"col-xs-5 text-right\">\n\t\t\t\t\t\t<label>In Words</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"col-xs-7 text-right value\">\n\t\t\t\t\t\t{{doc.in_words}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n </div>\n </div>\n</div>",
"line_breaks": 0,
"margin_bottom": 0.0,
"margin_left": 0.0,
"margin_right": 0.0,
"margin_top": 0.0,
"modified": "2016-03-07 20:49:39.443328",
"module": "Buying",
"name": "Drop Shipping Format",
"page_number": null,
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "Yes"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": null,
"disabled": 0,
"doc_type": "Sales Invoice",
"docstatus": 0,
"doctype": "Print Format",
"font": "Default",
"font_size": 0,
"format_data": null,
"html": "<style>\n\t.print-format table, .print-format tr, \n\t.print-format td, .print-format div, .print-format p {\n\t\tfont-family: Monospace;\n\t\tline-height: 200%;\n\t\tvertical-align: middle;\n\t}\n\t@media screen {\n\t\t.print-format {\n\t\t\twidth: 4in;\n\t\t\tpadding: 0.25in;\n\t\t\tmin-height: 8in;\n\t\t}\n\t}\n</style>\n\n<p class=\"text-center\">\n\t{{ company }}<br>\n\t{{ __(\"POS No : \") }} {{ offline_pos_name }}<br>\n</p>\n<p>\n\t<b>{{ __(\"Customer\") }}:</b> {{ customer }}<br>\n</p>\n\n<p>\n\t<b>{{ __(\"Date\") }}:</b> {{ dateutil.global_date_format(posting_date) }}<br>\n</p>\n\n<hr>\n<table class=\"table table-condensed cart no-border\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th width=\"50%\">{{ __(\"Item\") }}</b></th>\n\t\t\t<th width=\"25%\" class=\"text-right\">{{ __(\"Qty\") }}</th>\n\t\t\t<th width=\"25%\" class=\"text-right\">{{ __(\"Amount\") }}</th>\n\t\t</tr>\n\t</thead>\n\t<tbody>\n\t\t{% for item in items %}\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t{{ item.item_name }}\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">{{ format_number(item.qty, null,precision(\"difference\")) }}<br>@ {{ format_currency(item.rate, currency) }}</td>\n\t\t\t<td class=\"text-right\">{{ format_currency(item.amount, currency) }}</td>\n\t\t</tr>\n\t\t{% endfor %}\n\t</tbody>\n</table>\n\n<table class=\"table table-condensed no-border\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 70%\">\n\t\t\t\t{{ __(\"Net Total\") }}\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ format_currency(total, currency) }}\n\t\t\t</td>\n\t\t</tr>\n\t\t{% for row in taxes %}\n\t\t{% if not row.included_in_print_rate %}\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 70%\">\n\t\t\t\t{{ row.description }}\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ format_currency(row.tax_amount, currency) }}\n\t\t\t</td>\n\t\t</tr>\n\t\t{% endif %}\n\t\t{% endfor %}\n\t\t{% if discount_amount %}\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t{{ __(\"Discount\") }}\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ format_currency(discount_amount, currency) }}\n\t\t\t</td>\n\t\t</tr>\n\t\t{% endif %}\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t<b>{{ __(\"Grand Total\") }}</b>\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ format_currency(grand_total, currency) }}\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t<b>{{ __(\"Paid Amount\") }}</b>\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ format_currency(paid_amount, currency) }}\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t<b>{{ __(\"Qty Total\") }}</b>\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ qty_total }}\n\t\t\t</td>\n\t\t</tr>\n\t</tbody>\n</table>\n\n\n<hr>\n<p>{{ terms }}</p>\n<p class=\"text-center\">{{ __(\"Thank you, please visit again.\") }}</p>",
"line_breaks": 0,
"margin_bottom": 0.0,
"margin_left": 0.0,
"margin_right": 0.0,
"margin_top": 0.0,
"modified": "2019-09-05 17:20:30.726659",
"module": "Accounts",
"name": "Point of Sale",
"page_number": null,
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "JS",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "Yes"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "POS Invoice",
"docstatus": 0,
"doctype": "Print Format",
"font": "Default",
"font_size": 0,
"format_data": null,
"html": "<style>\n\t.print-format table, .print-format tr, \n\t.print-format td, .print-format div, .print-format p {\n\t\tfont-family: Tahoma, sans-serif;\n\t\tline-height: 150%;\n\t\tvertical-align: middle;\n\t}\n\t@media screen {\n\t\t.print-format {\n\t\t\twidth: 4in;\n\t\t\tpadding: 0.25in;\n\t\t\tmin-height: 8in;\n\t\t}\n\t}\n</style>\n\n{% if letter_head %}\n {{ letter_head }}\n{% endif %}\n\n<p class=\"text-center\" style=\"margin-bottom: 1rem\">\n\t{{ doc.company }}<br>\n\t{{ doc.select_print_heading or _(\"Return Invoice\") }}<br>\n</p>\n<p>\n\t<b>{{ _(\"Receipt No\") }}:</b> {{ doc.name }}<br>\n\t<b>{{ _(\"Original Invoice\") }}:</b> {{ doc.return_against }}<br>\n\t<b>{{ _(\"Date\") }}:</b> {{ doc.get_formatted(\"posting_date\") }}<br>\n\t<b>{{ _(\"Customer\") }}:</b> {{ doc.customer_name }}\n</p>\n\n<hr>\n<table class=\"table table-condensed cart no-border\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th width=\"50%\">{{ _(\"Item\") }}</th>\n\t\t\t<th width=\"25%\" class=\"text-right\">{{ _(\"Qty\") }}</th>\n\t\t\t<th width=\"25%\" class=\"text-right\">{{ _(\"Amount\") }}</th>\n\t\t</tr>\n\t</thead>\n\t<tbody>\n\t\t{%- for item in doc.items -%}\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t{{ item.item_code }}\n\t\t\t\t{%- if item.item_name != item.item_code -%}\n\t\t\t\t\t<br>{{ item.item_name }}\n\t\t\t\t{%- endif -%}\n\t\t\t\t{%- if item.serial_no -%}\n\t\t\t\t\t<br><b>{{ _(\"SR.No\") }}:</b><br>\n\t\t\t\t\t{{ item.serial_no | replace(\"\\n\", \", \") }}\n\t\t\t\t{%- endif -%}\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">{{ item.qty }}<br>@ {{ item.get_formatted(\"rate\") }}</td>\n\t\t\t<td class=\"text-right\">{{ item.get_formatted(\"amount\") }}</td>\n\t\t</tr>\n\t\t{%- endfor -%}\n\t</tbody>\n</table>\n<table class=\"table table-condensed no-border\">\n\t<tbody>\n\t\t<tr>\n\t\t\t{% if doc.flags.show_inclusive_tax_in_print %}\n\t\t\t\t<td class=\"text-right\" style=\"width: 70%\">\n\t\t\t\t\t{{ _(\"Total Excl. Tax\") }}\n\t\t\t\t</td>\n\t\t\t\t<td class=\"text-right\">\n\t\t\t\t\t{{ doc.get_formatted(\"net_total\", doc) }}\n\t\t\t\t</td>\n\t\t\t{% else %}\n\t\t\t\t<td class=\"text-right\" style=\"width: 70%\">\n\t\t\t\t\t{{ _(\"Total\") }}\n\t\t\t\t</td>\n\t\t\t\t<td class=\"text-right\">\n\t\t\t\t\t{{ doc.get_formatted(\"total\", doc) }}\n\t\t\t\t</td>\n\t\t\t{% endif %}\n\t\t</tr>\n\t\t{%- for row in doc.taxes -%}\n\t\t {%- if not row.included_in_print_rate or doc.flags.show_inclusive_tax_in_print -%}\n\t\t\t<tr>\n\t\t\t\t<td class=\"text-right\" style=\"width: 70%\">\n\t\t\t\t {% if '%' in row.description %}\n\t\t\t\t\t {{ row.description }}\n\t\t\t\t\t{% else %}\n\t\t\t\t\t {{ row.description }}@{{ row.rate }}%\n\t\t\t\t\t{% endif %}\n\t\t\t\t</td>\n\t\t\t\t<td class=\"text-right\">\n\t\t\t\t\t{{ row.get_formatted(\"tax_amount\", doc)}}\n\t\t\t\t</td>\n\t\t\t<tr>\n\t\t {%- endif -%}\n\t\t{%- endfor -%}\n\n\t\t{%- if doc.discount_amount -%}\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t{{ _(\"Discount\") }}\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ doc.get_formatted(\"discount_amount\") }}\n\t\t\t</td>\n\t\t</tr>\n\t\t{%- endif -%}\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t<b>{{ _(\"Grand Total\") }}</b>\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ doc.get_formatted(\"grand_total\") }}\n\t\t\t</td>\n\t\t</tr>\n\t\t{%- if doc.rounded_total -%}\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t<b>{{ _(\"Rounded Total\") }}</b>\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ doc.get_formatted(\"rounded_total\") }}\n\t\t\t</td>\n\t\t</tr>\n\t\t{%- endif -%}\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t<b>{{ _(\"Paid Amount\") }}</b>\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ doc.get_formatted(\"paid_amount\") }}\n\t\t\t</td>\n\t\t</tr>\n\t\t{%- if doc.change_amount -%}\n\t\t\t<tr>\n\t\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t\t<b>{{ _(\"Change Amount\") }}</b>\n\t\t\t\t</td>\n\t\t\t\t<td class=\"text-right\">\n\t\t\t\t\t{{ doc.get_formatted(\"change_amount\")}}\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t{%- endif -%}\n\t</tbody>\n</table>\n<hr>\n<p>{{ doc.terms or \"\" }}</p>\n<p class=\"text-center\">{{ _(\"Thank you, please visit again.\") }}</p>",
"line_breaks": 0,
"margin_bottom": 0.0,
"margin_left": 0.0,
"margin_right": 0.0,
"margin_top": 0.0,
"modified": "2020-05-14 17:13:29.354015",
"module": "Selling",
"name": "Return POS Invoice",
"page_number": null,
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "Yes"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": "",
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Supplier",
"docstatus": 0,
"doctype": "Print Format",
"font": "Default",
"font_size": 0,
"format_data": "[{\"fieldname\": \"print_heading_template\", \"fieldtype\": \"Custom HTML\", \"options\": \"<div class=\\\"print-heading\\\">\\t\\t\\t\\t<h2>TAX Invoice<br><small>{{ doc.name }}</small>\\t\\t\\t\\t</h2></div>\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"print_hide\": 0, \"fieldname\": \"customer_name\", \"label\": \"Customer Name\"}, {\"print_hide\": 0, \"fieldname\": \"customer_name_in_arabic\", \"label\": \"Customer Name in Arabic\"}, {\"fieldtype\": \"Column Break\"}, {\"print_hide\": 0, \"fieldname\": \"posting_date\", \"label\": \"Date\"}, {\"fieldtype\": \"Section Break\", \"label\": \"Address\"}, {\"fieldtype\": \"Column Break\"}, {\"print_hide\": 0, \"fieldname\": \"company\", \"label\": \"Company\"}, {\"print_hide\": 0, \"fieldname\": \"company_trn\", \"label\": \"Company TRN\"}, {\"fieldtype\": \"Column Break\"}, {\"print_hide\": 0, \"fieldname\": \"company_address_display\", \"label\": \"Company Address\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"visible_columns\": [{\"print_hide\": 0, \"fieldname\": \"item_code\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"description\", \"print_width\": \"200px\"}, {\"print_hide\": 0, \"fieldname\": \"uom\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"tax_code\", \"print_width\": \"\"}], \"print_hide\": 0, \"fieldname\": \"items\", \"label\": \"Items\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldtype\": \"Column Break\"}, {\"print_hide\": 0, \"fieldname\": \"total\", \"label\": \"Total\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"visible_columns\": [{\"print_hide\": 0, \"fieldname\": \"charge_type\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"row_id\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"account_head\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"cost_center\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"description\", \"print_width\": \"300px\"}, {\"print_hide\": 0, \"fieldname\": \"rate\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"tax_amount\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"total\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"tax_amount_after_discount_amount\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"base_tax_amount\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"base_total\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"base_tax_amount_after_discount_amount\", \"print_width\": \"\"}, {\"print_hide\": 0, \"fieldname\": \"item_wise_tax_detail\", \"print_width\": \"\"}], \"print_hide\": 0, \"fieldname\": \"taxes\", \"label\": \"Sales Taxes and Charges\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldtype\": \"Column Break\"}, {\"print_hide\": 0, \"fieldname\": \"grand_total\", \"label\": \"Grand Total\"}, {\"print_hide\": 0, \"fieldname\": \"rounded_total\", \"label\": \"Rounded Total\"}, {\"print_hide\": 0, \"fieldname\": \"in_words\", \"align\": \"left\", \"label\": \"In Words\"}]",
"html": "<div id=\"copy_a\" style=\"position: relative; top:0cm; width:17cm;height:28.0cm;\">\n <table>\n <tbody>\n <tr style=\"height:12mm\">\n <td class=\"tbs rbs lbs bbs\" style=\"width:86mm\" colspan=\"4\" ; rowspan=\"3\">PAYER'S name, street address,\n city or town, state or province, country, ZIP<br>or foreign postal code, and telephone no.<br>\n {{ company or \"\" }}<br>\n {{ payer_street_address or \"\" }}\n </td>\n <td class=\"tbs rbs lbs bbs\" style=\"width:35mm\">1 Rents</td>\n <td class=\"tbs rbs lbs bbs\" style=\"width:25mm\" rowspan=\"2\">OMB No. 1545-0115<br>\n <yone>{{ fiscal_year[:2] }}</yone>\n <ytwo>{{ fiscal_year[-2:] }}</ytwo><br>Form 1099-MISC\n </td>\n <td class=\"lbs bbs\" style=\"width:38mm\" colspan=\"2\" rowspan=\"2\">Miscellaneous Income</td>\n </tr>\n <tr style=\"height:12mm\">\n <td class=\"tbs rbs lbs bbs\" style=\"width:35mm\">2 Royalties</td>\n </tr>\n <tr style=\"height:9mm\">\n <td class=\"tbs rbs lbs bbs\">3 Other Income<br>{{ payments or \"\" }}</td>\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">4 Federal Income tax withheld</td>\n <td class=\"tbs lbs bbs\" style=\"width:29mm\" rowspan=\"2\">Copy A<br>For<br>Internal Revenue<br>Service\n Center<br><br>File with Form 1096</td>\n </tr>\n <tr style=\"height:16mm\">\n <td class=\"tbs rbs lbs bbs\" style=\"width:43mm\">PAYER'S TIN<br>{{ company_tin or \"\" }}</td>\n\n <td class=\"tbs rbs lbs bbs\" colspan=\"3\">RECIPIENT'S TIN<br><br>{{ tax_id or \"None\" }}</td>\n <td class=\"tbs rbs lbs bbs\">Fishing boat proceeds</td>\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">6 Medical and health care payments</td>\n </tr>\n <tr style=\"height:12mm\">\n <td class=\"tbs rbs lbs bbs\" colspan=\"4\">RECIPIENT'S name <br>{{ supplier or \"\" }}</td>\n <td class=\"tbs rbs lbs bbs\">7 Nonemployee compensation<br>\n </td>\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">Substitute payments in lieu of dividends or interest</td>\n <td class=\"tbs lbs bbs\" rowspan=\"6\">For Privacy Act<br>and Paperwork<br>Reduction Act<br>Notice, see\n the<br>2018 General<br>Instructions for<br>Certain<br>Information<br>Returns.</td>\n </tr>\n <tr style=\"height:6mm\">\n <td class=\"tbs rbs lbs bbs\" colspan=\"4\" rowspan=\"2\">Street address (including apt. no.)<br>\n {{ recipient_street_address or \"\" }}\n </td>\n <td class=\"tbs rbs lbs bbs\">$___________</td>\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">$___________</td>\n </tr>\n <tr style=\"height:7mm\">\n <td class=\"tbs rbs lbs bbs\" rowspan=\"2\">9 Payer made direct sales of<br>$5,000 or more of consumer\n products<br>to a buyer<br>(recipient) for resale</td>\n <td class=\"tbs rbs lbs\" colspan=\"2\">10 Crop insurance proceeds</td>\n </tr>\n <tr style=\"height:5mm\">\n <td class=\"tbs rbs lbs bbs\" colspan=\"4\" rowspan=\"2\">City or town, state or province, country, and ZIP or\n foreign postal code<br>\n {{ recipient_city_state or \"\" }}\n </td>\n <td style=\"vertical-align:bottom\" class=\" rbs lbs bbs\" colspan=\"2\">$___________</td>\n </tr>\n <tr style=\"height:9mm\">\n <td class=\"tbs rbs lbs bbs\">11</td>\n <td class=\"tbs rbs lbs bbs\" colspan=2>12</td>\n </tr>\n <tr style=\"height:13mm\">\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">Account number (see instructions)</td>\n <td class=\"tbs rbs lbs bbs\" style=\"width:16mm\">FACTA filing<br>requirement</td>\n <td class=\"tbs rbs lbs bbs\" style=\"width:14mm\">2nd TIN not.</td>\n <td class=\"tbs rbs lbs bbs\">13 Excess golden parachute payments<br>$___________</td>\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">14 Gross proceeds paid to an<br>attorney<br>$___________</td>\n </tr>\n <tr style=\"height:12mm\">\n <td class=\"tbs rbs lbs \">15a Section 409A deferrals</td>\n <td class=\"tbs rbs lbs \" colspan=\"3\">15b Section 409 income</td>\n <td class=\"tbs rbs lbs \">16 State tax withheld</td>\n <td class=\"tbs rbs lbs \" colspan=\"2\">17 State/Payer's state no.</td>\n <td class=\"tbs lbs\">18 State income</td>\n </tr>\n <tr>\n <td class=\"lbs rbs bbs\">$</td>\n <td class=\"lbs rbs bbs\" colspan=\"3\">$</td>\n <td class=\"lbs rbs bbs tbd\">$</td>\n <td class=\"lbs rbs bbs tbd\" colspan=\"2\"></td>\n <td class=\"lbs bbs tbd\">$</td>\n </tr>\n\n <tr style=\"height:8mm\">\n <td class=\"tbs\" colspan=\"8\">Form 1099-MISC Cat. No. 14425J www.irs.gov/Form1099MISC Department of the\n Treasury - Internal Revenue Service</td>\n </tr>\n\n </tbody>\n </table>\n</div>\n<div id=\"copy_1\" style=\"position: relative; top:0cm; width:17cm;height:28.0cm;\">\n <table>\n <tbody>\n <tr style=\"height:12mm\">\n <td class=\"tbs rbs lbs bbs\" style=\"width:86mm\" colspan=\"4\" ; rowspan=\"3\">PAYER'S name, street address,\n city or town, state or province, country, ZIP<br>or foreign postal code, and telephone no.<br>\n {{ company or \"\"}}<b r>\n {{ payer_street_address or \"\" }}\n </td>\n <td class=\"tbs rbs lbs bbs\" style=\"width:35mm\">1 Rents</td>\n <td class=\"tbs rbs lbs bbs\" style=\"width:25mm\" rowspan=\"2\">OMB No. 1545-0115<br>\n <yone>{{ fiscal_year[:2] }}</yone>\n <ytwo>{{ fiscal_year[-2:] }}</ytwo><br>Form 1099-MISC\n </td>\n <td class=\"lbs bbs\" style=\"width:38mm\" colspan=\"2\" rowspan=\"2\">Miscellaneous Income</td>\n </tr>\n <tr style=\"height:12mm\">\n <td class=\"tbs rbs lbs bbs\" style=\"width:35mm\">2 Royalties</td>\n </tr>\n <tr style=\"height:9mm\">\n <td class=\"tbs rbs lbs bbs\">3 Other Income<br>\n {{ payments or \"\" }}\n </td>\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">4 Federal Income tax withheld</td>\n <td class=\"tbs lbs bbs\" style=\"width:29mm\" rowspan=\"2\">Copy 1<br>For State Tax<br>Department</td>\n </tr>\n <tr style=\"height:16mm\">\n <td class=\"tbs rbs lbs bbs\" style=\"width:43mm\">PAYER'S TIN<br>\n {{ company_tin or \"\" }}\n </td>\n <td class=\"tbs rbs lbs bbs\" colspan=\"3\">RECIPIENT'S TIN<br>\n {{ tax_id or \"\" }}\n </td>\n <td class=\"tbs rbs lbs bbs\">Fishing boat proceeds</td>\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">6 Medical and health care payments</td>\n </tr>\n <tr style=\"height:12mm\">\n <td class=\"tbs rbs lbs bbs\" colspan=\"4\">RECIPIENT'S name</td>\n {{ supplier or \"\" }}\n <td class=\"tbs rbs lbs bbs\">7 Nonemployee compensation<br>\n </td>\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">Substitute payments in lieu of dividends or interest</td>\n <td class=\"tbs lbs bbs\" rowspan=\"6\"></td>\n </tr>\n <tr style=\"height:6mm\">\n <td class=\"tbs rbs lbs bbs\" colspan=\"4\" rowspan=\"2\">Street address (including apt. no.)<br>\n {{ recipient_street_address or \"\" }}\n </td>\n <td class=\"tbs rbs lbs bbs\">$___________</td>\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">$___________</td>\n </tr>\n <tr style=\"height:7mm\">\n <td class=\"tbs rbs lbs bbs\" rowspan=\"2\">9 Payer made direct sales of<br>$5,000 or more of consumer\n products<br>to a buyer<br>(recipient) for resale</td>\n <td class=\"tbs rbs lbs\" colspan=\"2\">10 Crop insurance proceeds</td>\n </tr>\n <tr style=\"height:5mm\">\n <td class=\"tbs rbs lbs bbs\" colspan=\"4\" rowspan=\"2\">City or town, state or province, country, and ZIP or\n foreign postal code<br>\n {{ recipient_city_state or \"\" }}\n </td>\n <td style=\"vertical-align:bottom\" class=\" rbs lbs bbs\" colspan=\"2\">$___________</td>\n </tr>\n <tr style=\"height:9mm\">\n <td class=\"tbs rbs lbs bbs\">11</td>\n <td class=\"tbs rbs lbs bbs\" colspan=2>12</td>\n </tr>\n <tr style=\"height:13mm\">\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">Account number (see instructions)</td>\n <td class=\"tbs rbs lbs bbs\" style=\"width:16mm\">FACTA filing<br>requirement</td>\n <td class=\"tbs rbs lbs bbs\" style=\"width:14mm\">2nd TIN not.</td>\n <td class=\"tbs rbs lbs bbs\">13 Excess golden parachute payments<br>$___________</td>\n <td class=\"tbs rbs lbs bbs\" colspan=\"2\">14 Gross proceeds paid to an<br>attorney<br>$___________</td>\n </tr>\n <tr style=\"height:12mm\">\n <td class=\"tbs rbs lbs \">15a Section 409A deferrals</td>\n <td class=\"tbs rbs lbs \" colspan=\"3\">15b Section 409 income</td>\n <td class=\"tbs rbs lbs \">16 State tax withheld</td>\n <td class=\"tbs rbs lbs \" colspan=\"2\">17 State/Payer's state no.</td>\n <td class=\"tbs lbs\">18 State income</td>\n </tr>\n <tr>\n <td class=\"lbs rbs bbs\">$</td>\n <td class=\"lbs rbs bbs\" colspan=\"3\">$</td>\n <td class=\"lbs rbs bbs tbd\">$</td>\n <td class=\"lbs rbs bbs tbd\" colspan=\"2\"></td>\n <td class=\"lbs bbs tbd\">$</td>\n </tr>\n\n <tr style=\"height:8mm\">\n <td class=\"tbs\" colspan=\"8\">Form 1099-MISC Cat. No. 14425J www.irs.gov/Form1099MISC Department of the\n Treasury - Internal Revenue Service</td>\n </tr>\n\n </tbody>\n </table>\n</div>\n<style>\n body {\n font-family: 'Helvetica', sans-serif;\n font-size: 5.66pt;\n }\n\n yone {\n font-family: 'Helvetica', sans-serif;\n font-size: 14pt;\n color: black;\n -webkit-text-fill-color: white;\n /* Will override color (regardless of order) */\n -webkit-text-stroke-width: 1px;\n -webkit-text-stroke-color: black;\n }\n\n ytwo {\n font-family: 'Helvetica', sans-serif;\n font-size: 14pt;\n color: black;\n -webkit-text-stroke-width: 1px;\n -webkit-text-stroke-color: black;\n }\n\n table,\n th,\n td {\n font-family: 'Helvetica', sans-serif;\n font-size: 5.66pt;\n border: none;\n }\n\n .tbs {\n border-top: 1px solid black;\n }\n\n .bbs {\n border-bottom: 1px solid black;\n }\n\n .lbs {\n border-left: 1px solid black;\n }\n\n .rbs {\n border-right: 1px solid black;\n }\n\n .allBorder {\n border-top: 1px solid black;\n border-right: 1px solid black;\n border-left: 1px solid black;\n border-bottom: 1px solid black;\n }\n\n .bottomBorderOnlyDashed {\n border-bottom: 1px dashed black;\n }\n\n .tbd {\n border-top: 1px dashed black;\n }\n\n .address {\n vertical-align: bottom;\n }\n</style>",
"line_breaks": 0,
"margin_bottom": 0.0,
"margin_left": 0.0,
"margin_right": 0.0,
"margin_top": 0.0,
"modified": "2021-01-19 07:25:16.333666",
"module": "Regional",
"name": "IRS 1099 Form",
"page_number": null,
"print_format_builder": 1,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": "th,td{\r\n font-size:12px;\r\n color:black;\r\n word-break:break-all;\r\n}",
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "PPM",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<table style=\"max-width: 2480px; width: 100%;\">\n <tr>\n <td style=\"width: 20%; text-align: center;\">\n <img src=\"/files/SeeraArabia_Logo-120 2.jpg\" alt=\"Logo\" style=\"width: 80%; height: auto; max-height: 40px;\">\n </td>\n \n <td style=\"width: 25%; ;\">\n Seera Arabia<br>Medical Services\n </td>\n \n <td style=\"width: 10%;\"></td>\n \n <td style=\"width: 25%; ;\">\n سيرا العربية<br>الخدمات الطبية\n </td>\n \n <td style=\"width: 20%; text-align: center;\">\n <img src=\"/files/HMC.png\" alt=\"Logo\" style=\"width: 100%;\">\n </td>\n </tr>\n</table>\n<table style=\"max-width: 2480px; width: 100%;\">\n <tr>\n <td style=\"width: 40%;font-size:11;\">\n Al Arabia II, Arcade 345 - P.O. Box 99<br>\nRiyadh 35436, Saudi Arabia<br>\nTel:+432 4354 4565 Toll Free Fax +556<br>\nToll Free No.:4354 543 534\n </td>\n <td style=\"width: 2%;\"></td>\n \n <td style=\"width: 16%;\"><b>تقرير الخدمة<br>Service Report</b></td>\n <td style=\"width: 2%;\"></td>\n <td style=\"width: 40%;font-size:11;\">\n العربية 2، رواق 345 - ص.ب. صندوق 99<br>\nالرياض 35436، المملكة العربية السعودية<br>\nهاتف:+432 4354 4565 رقم الفاكس المجاني +556 <br>\nالرقم المجاني: 4354 543 534\n </td>\n </tr>\n</table>\n<hr style=\"border: none; border-top: 1px solid black; margin: 15px 0;\">\n\n{% if doc.asset_maintenance_log %}\n{% set am = frappe.get_doc(\"Asset Maintenance Log\", doc.asset_maintenance_log) %}\n{%- endif-%}\n<table style=\"max-width: 2480px; width:100%; \">\n <tr>\n <td colspan=\"3\"><b>Date:</b>{{am.get_formatted(\"completion_date\")}}</td>\n <td colspan=\"5\"><b>PPM No:</b>{{doc.name}}</td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;\"><b>SERVICE CALLS</b></td>\n <td style=\"border: 1px solid black;\">Warranty</td>\n <td style=\"border: 1px solid black;\">HBS</td>\n <td style=\"border: 1px solid black;\">&#10004;PM</td>\n <td style=\"border: 1px solid black;\">PPM Contract</td>\n <td style=\"border: 1px solid black;\">Call</td>\n <td style=\"border: 1px solid black;\">Extended<br>Warranty</td>\n </tr>\n \n <tr>\n <td colspan:\"8\"><b>CUSTOMER/SITE NAME:</b>\n <br><br><b>POSITION/DEPT./CONTACT NO.:</b>\n <br><br><b>JOB NO./CASE NO.:</b></td>\n </tr>\n {% set asset = frappe.get_doc(\"Asset\", doc.asset) %}\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;text-align:center;\" colspan=\"4\"><b>EQUIPMENT</b></td>\n <td style=\"border: 1px solid black;text-align:center;\"colspan=\"4\">{{asset.asset_name}}</td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;text-align:center;\" colspan=\"4\"><b>MODEL</b></td>\n <td style=\"border: 1px solid black;text-align:center;\"colspan=\"4\">{{asset.custom_model}}</td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;text-align:center;\" colspan=\"4\"><b>SYSTEM ID/SW.NO.</b></td>\n <td style=\"border: 1px solid black;text-align:center;\"colspan=\"4\">{{asset.custom_serial_number}}</td>\n </tr>\n \n</table><br>\n\n<p style=\"word-break:break-all;\"><b>NATURE OF COMPLAINT:</b><br></p>\n<hr style=\"border: none; border-top: 1px solid black; margin: 20px 0;\">\n{% if doc.asset_maintenance_log %}\n{% set aml = frappe.get_doc(\"Asset Maintenance Log\", doc.asset_maintenance_log) %}\n <p style=\"word-break:break-all;\"><b>WORK PERFORMED:</b><br>{{aml.actions_performed}}</p>\n{% else %}\n <p style=\"word-break:break-all;\"><b>WORK PERFORMED:</b><br></p>\n{%- endif-%}\n<br>\n<table style=\"max-width: 2480px; width:50%; \">\n <tr >\n <td style=\"border: 1px solid black;\" colspan=\"1\"><b>JOB COMPLETED</b> &emsp;&emsp;\n {%- if aml.maintenance_status ==\"Completed\" -%}&#10004;{%- endif-%} YES &emsp;&emsp;\n {%- if aml.maintenance_status ==\"Planned\" -%}&#10004;{%- endif-%} NO</td>\n </tr>\n \n</table><br>\n\n<table style=\"max-width: 2480px; width:100%; \">\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;\"><b>TOTAL MAIN HOUR AT SITE</b></td>\n <td style=\"border: 1px solid black;text-align:center;\">{{aml.custom_total_main_hour_at_site}}</td>\n <td style=\"border: 1px solid black;\"><b>TOTAL TRAVEL HOUR</b></td>\n <td style=\"border: 1px solid black;text-align:center;\">{{aml.custom_total_travel_hour}}</td>\n <td style=\"border: 1px solid black;\"><b>TOTAL HOURS</b></td>\n <td style=\"border: 1px solid black;text-align:center;\">{{aml.custom_total_hours}}</td>\n \n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"2\">Serviced By:{{aml.custom_serviced_by}}\n <br><br>Signature:\n <br><br>Date:\n </td>\n <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"2\">End-User:{{aml.custom_end_user}}\n <br><br>Signature:\n <br><br>Date:\n </td>\n <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"2\">Bio-Med Dept.:{{aml.custom_bio_med_dept}}\n <br><br>Signature:\n <br><br>Date:\n </td>\n </tr>\n <!--<tr style=\"border: 1px solid black; border-collapse: collapse;\">-->\n <!-- <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"6\">Customer Comments:{{aml.customer_comments}}</td>-->\n \n <!--</tr>-->\n \n</table><br>\n\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2024-09-27 16:21:12.377441",
"module": "Asset Lite",
"name": "PPM Service Report",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": "th,td{\r\n font-size:12px;\r\n color:black;\r\n word-break:break-all;\r\n}",
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Work_Order",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<table style=\"max-width: 2480px; width: 100%;\">\n <tr>\n <td style=\"width: 20%; text-align: center;\">\n <img src=\"/files/HMC.png\" alt=\"Logo\" style=\"width: 100%;\">\n </td>\n <td style=\"width: 25%; ;\">\n Seera Arabia<br>Medical Services\n </td>\n \n <td style=\"width: 10%;\"></td>\n \n <td style=\"width: 25%; ;\">\n سيرا العربية<br>الخدمات الطبية\n </td>\n \n <td style=\"width: 20%; text-align: center;\">\n <img src=\"/files/HMC.png\" alt=\"Logo\" style=\"width: 100%;\">\n </td>\n </tr>\n</table>\n<table style=\"max-width: 2480px; width: 100%;\">\n <tr>\n <td style=\"width: 40%;font-size:11;\">\n Al Arabia II, Arcade 345 - P.O. Box 99<br>\nRiyadh 35436, Saudi Arabia<br>\nTel:+432 4354 4565 Toll Free Fax +556 445656<br>\nToll Free No.:4354 543 534\n </td>\n <td style=\"width: 2%;\"></td>\n \n <td style=\"width: 16%;\"><b>تقرير الخدمة<br>Service Report</b></td>\n <td style=\"width: 2%;\"></td>\n <td style=\"width: 40%;font-size:11;\">\n العربية 2، رواق 345 - ص.ب. صندوق 99<br>\nالرياض 35436، المملكة العربية السعودية<br>\nهاتف:+432 4354 4565 رقم الفاكس المجاني +556 445656<br>\nالرقم المجاني: 4354 543 534\n </td>\n </tr>\n</table>\n<hr style=\"border: none; border-top: 1px solid black; margin: 15px 0;\">\n\n\n<table style=\"max-width: 2480px; width:100%; \">\n <tr>\n <td colspan=\"3\"><b>Date:</b>{{doc.failure_date}}</td>\n <td colspan=\"5\"><b>Work Order No:</b>{{doc.name}}</td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;\"><b>SERVICE CALLS</b></td>\n <td style=\"border: 1px solid black;\">{%- if doc.work_order_type ==\"Installation\" -%}&#10004;{%- endif-%}Installation</td>\n <td style=\"border: 1px solid black;\">{%- if doc.work_order_type ==\"Warranty\" -%}&#10004;{%- endif-%}Warranty</td>\n <td style=\"border: 1px solid black;\">{%- if doc.work_order_type ==\"HBS\" -%}&#10004;{%- endif-%}HBS</td>\n <td style=\"border: 1px solid black;\">{%- if doc.work_order_type ==\"PM\" -%}&#10004;{%- endif-%}PM</td>\n <td style=\"border: 1px solid black;\">{%- if doc.work_order_type ==\"PPM Contract\" -%}&#10004;{%- endif-%}PPM Contract</td>\n <td style=\"border: 1px solid black;\">{%- if doc.work_order_type ==\"Call\" -%}&#10004;{%- endif-%}Call</td>\n <td style=\"border: 1px solid black;\">{%- if doc.work_order_type ==\"Extended Warranty\" -%}&#10004;{%- endif-%}Extended<br>Warranty</td>\n </tr>\n \n <tr>\n <td colspan:\"8\"><b>CUSTOMER/SITE NAME:</b>\n <br><br><b>POSITION/DEPT./CONTACT NO.:</b>\n <br><br><b>JOB NO./CASE NO.:</b></td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;text-align:center;\" colspan=\"4\"><b>EQUIPMENT</b></td>\n <td style=\"border: 1px solid black;text-align:center;\"colspan=\"4\">{{doc.asset_name}}</td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;text-align:center;\" colspan=\"4\"><b>MODEL</b></td>\n <td style=\"border: 1px solid black;text-align:center;\"colspan=\"4\">{{doc.model}}</td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;text-align:center;\" colspan=\"4\"><b>SYSTEM ID/SW.NO.</b></td>\n <td style=\"border: 1px solid black;text-align:center;\"colspan=\"4\">{{doc.serial_number}}</td>\n </tr>\n \n</table><br>\n<p style=\"word-break:break-all;\"><b>NATURE OF COMPLAINT:</b><br>{{doc.description}}</p>\n<hr style=\"border: none; border-top: 1px solid black; margin: 20px 0;\">\n<p style=\"word-break:break-all;\"><b>WORK PERFORMED:</b><br>{{doc.actions_performed}}</p>\n<br>\n<table style=\"max-width: 2480px; width:100%; \">\n <tr >\n <td style=\"border: 1px solid black;\" colspan=\"1\"><b>JOB COMPLETED</b> &emsp;&emsp;\n {%- if doc.job_completed ==\"Yes\" -%}&#10004;{%- endif-%} YES &emsp;&emsp;\n {%- if doc.job_completed ==\"No\" -%}&#10004;{%- endif-%} NO</td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;text-align:center;\"><b>DEFECTIVE SPARE PARTS</b></td>\n <td style=\"border: 1px solid black;text-align:center;\"><b>PART NO.</b></td>\n <td style=\"border: 1px solid black;text-align:center;\"><b>QTY.</b></td>\n </tr>\n {% for row in doc.table_cmqp %}\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;text-align:center;\">{{row.item_code}}</td>\n <td style=\"border: 1px solid black;text-align:center;\"></td>\n <td style=\"border: 1px solid black;text-align:center;\">{{row.qty}}</td>\n </tr>\n {% endfor%}\n</table><br>\n\n<table style=\"max-width: 2480px; width:100%; \">\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;\"><b>TOTAL MAIN HOUR AT SITE</b></td>\n <td style=\"border: 1px solid black;text-align:center;\">{{doc.total_main_hour_at_site}}</td>\n <td style=\"border: 1px solid black;\"><b>TOTAL TRAVEL HOUR</b></td>\n <td style=\"border: 1px solid black;text-align:center;\">{{doc.total_travel_hour}}</td>\n <td style=\"border: 1px solid black;\"><b>TOTAL HOURS</b></td>\n <td style=\"border: 1px solid black;text-align:center;\">{{doc.total_hours}}</td>\n \n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"2\">Serviced By:{{doc.serviced_by}}\n <br><br>Signature:\n <br><br>Date:\n </td>\n <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"2\">End-User:{{doc.end_user}}\n <br><br>Signature:\n <br><br>Date:\n </td>\n <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"2\">Bio-Med Dept.:{{doc.bio_med_dept}}\n <br><br>Signature:\n <br><br>Date:\n </td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"6\">Customer Comments:{{doc.customer_comments}}</td>\n \n </tr>\n \n</table><br>\n\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-07-08 11:07:05.115562",
"module": "Asset Lite",
"name": "Service Report",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "PPM",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<div style=\"border: 2px solid #00a651; padding: 10px; width: 400px; height: 250px; background-color: #d4edda;\">\n <h3 style=\"text-align: center; margin-top: 0;\">PPM</h3>\n <table style=\"width: 100%; border-spacing: 0;\">\n <tr>\n <td style=\"padding-bottom: 10px;\">Asset ID : </td>\n <td style=\"padding-bottom: 10px;\">{{doc.asset}}</td>\n </tr>\n <tr>\n <td style=\"padding-bottom: 10px;\">Asset Name : </td>\n <td style=\"padding-bottom: 10px;\">{{doc.asset_name}}</td>\n </tr>\n {% set am = frappe.get_doc(\"Asset Maintenance Log\",doc.asset_maintenance_log) %}\n <tr>\n <td style=\"padding-bottom: 10px;\">PPM Done Date</td>\n <td style=\"padding-bottom: 10px;\">{{am.completion_date}}</td>\n </tr>\n <tr>\n <td style=\"padding-bottom: 10px;\">PPM Next Due Date</td>\n <td style=\"padding-bottom: 10px;\">{{am.due_date}}</td>\n </tr>\n <tr>\n <td style=\"padding-bottom: 10px;\">Engineer</td>\n <td style=\"padding-bottom: 10px;\">{{am.assign_to_name}}</td></td>\n </tr>\n </table>\n</div>\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2024-09-24 13:05:04.215792",
"module": "Asset Lite",
"name": "PPM Sticker",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Asset Maintenance Log",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<div style=\"border: 2px solid #00a651; padding: 10px; width: 400px; height: 250px; background-color: #d4edda;\">\n <h3 style=\"text-align: center; margin-top: 0;\">PPM</h3>\n <table style=\"width: 100%; border-spacing: 0;\">\n <tr>\n <td style=\"padding-bottom: 10px;\">Asset ID : </td>\n <td style=\"padding-bottom: 10px;\">{{doc.asset_maintenance}}</td>\n </tr>\n <tr>\n <td style=\"padding-bottom: 10px;\">Asset Name : </td>\n <td style=\"padding-bottom: 10px;\">{{doc.custom_asset_names}}</td>\n </tr>\n {% set am = frappe.get_doc(\"Asset Maintenance Log\",doc.asset_maintenance_log) %}\n <tr>\n <td style=\"padding-bottom: 10px;\">PPM Done Date</td>\n <td style=\"padding-bottom: 10px;\">{{doc.completion_date}}</td>\n </tr>\n <tr>\n <td style=\"padding-bottom: 10px;\">PPM Next Due Date</td>\n <td style=\"padding-bottom: 10px;\">{{doc.due_date}}</td>\n </tr>\n <tr>\n <td style=\"padding-bottom: 10px;\">Engineer</td>\n <td style=\"padding-bottom: 10px;\">{{am.assign_to_name}}</td></td>\n </tr>\n </table>\n</div>\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2024-10-21 16:01:57.773237",
"module": "Assets",
"name": "PPM Asset",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": "th,td{\r\n font-size:12px;\r\n color:black;\r\n word-break:break-all;\r\n}",
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "PPM",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<table style=\"max-width: 2480px; width: 100%;\">\n <tr>\n <td style=\"width: 20%; text-align: center;\">\n <img src=\"/files/Seera logo.png\" alt=\"Logo\" style=\"width: 80%; height: auto; max-height: 40px;\">\n </td>\n \n <td style=\"width: 25%; ;\">\n Seera Arabia<br>Medical Services\n </td>\n \n <td style=\"width: 10%;\"></td>\n \n <td style=\"width: 25%; ;\">\n سيرا العربية<br>الخدمات الطبية\n </td>\n \n <td style=\"width: 20%; text-align: center;\">\n <img src=\"/files/HMC.png\" alt=\"Logo\" style=\"width: 100%;\">\n </td>\n </tr>\n</table>\n<table style=\"max-width: 2480px; width: 100%;\">\n <tr>\n <td style=\"width: 40%;font-size:11;\">\n Al Arabia II, Arcade 345 - P.O. Box 99<br>\nRiyadh 35436, Saudi Arabia<br>\nTel:+432 4354 4565 Toll Free Fax +556<br>\nToll Free No.:4354 543 534\n </td>\n <td style=\"width: 2%;\"></td>\n \n <td style=\"width: 16%;\"><b>تقرير الخدمة<br>Service Report</b></td>\n <td style=\"width: 2%;\"></td>\n <td style=\"width: 40%;font-size:11;\">\n العربية 2، رواق 345 - ص.ب. صندوق 99<br>\nالرياض 35436، المملكة العربية السعودية<br>\nهاتف:+432 4354 4565 رقم الفاكس المجاني +556 <br>\nالرقم المجاني: 4354 543 534\n </td>\n </tr>\n</table>\n<hr style=\"border: none; border-top: 1px solid black; margin: 15px 0;\">\n\n{% if doc.asset_maintenance_log %}\n{% set am = frappe.get_doc(\"Asset Maintenance Log\", doc.asset_maintenance_log) %}\n{%- endif-%}\n<table style=\"max-width: 2480px; width:100%; \">\n <tr>\n <td colspan=\"3\"><b>Date:</b>{{doc.get_formatted(\"completion_date\")}}</td>\n <td colspan=\"5\"><b>PPM No:</b>{{doc.custom_template}}</td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;\"><b>SERVICE CALLS</b></td>\n <td style=\"border: 1px solid black;\">Warranty</td>\n <td style=\"border: 1px solid black;\">HBS</td>\n <td style=\"border: 1px solid black;\">&#10004;PM</td>\n <td style=\"border: 1px solid black;\">PPM Contract</td>\n <td style=\"border: 1px solid black;\">Call</td>\n <td style=\"border: 1px solid black;\">Extended<br>Warranty</td>\n </tr>\n \n <tr>\n <td colspan:\"8\"><b>CUSTOMER/SITE NAME:</b>\n <br><br><b>POSITION/DEPT./CONTACT NO.:</b>\n <br><br><b>JOB NO./CASE NO.:</b></td>\n </tr>\n {% set asset = frappe.get_doc(\"Asset\", doc.asset) %}\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;text-align:center;\" colspan=\"4\"><b>EQUIPMENT</b></td>\n <td style=\"border: 1px solid black;text-align:center;\"colspan=\"4\">{{asset.asset_name}}</td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;text-align:center;\" colspan=\"4\"><b>MODEL</b></td>\n <td style=\"border: 1px solid black;text-align:center;\"colspan=\"4\">{{asset.custom_model}}</td>\n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;text-align:center;\" colspan=\"4\"><b>SYSTEM ID/SW.NO.</b></td>\n <td style=\"border: 1px solid black;text-align:center;\"colspan=\"4\">{{asset.custom_serial_number}}</td>\n </tr>\n \n</table><br>\n\n<p style=\"word-break:break-all;\"><b>NATURE OF COMPLAINT:</b><br></p>\n<hr style=\"border: none; border-top: 1px solid black; margin: 20px 0;\">\n{% if doc.asset_maintenance_log %}\n{% set aml = frappe.get_doc(\"Asset Maintenance Log\", doc.asset_maintenance_log) %}\n <p style=\"word-break:break-all;\"><b>WORK PERFORMED:</b><br>{{aml.actions_performed}}</p>\n{% else %}\n <p style=\"word-break:break-all;\"><b>WORK PERFORMED:</b><br></p>\n{%- endif-%}\n<br>\n<table style=\"max-width: 2480px; width:50%; \">\n <tr >\n <td style=\"border: 1px solid black;\" colspan=\"1\"><b>JOB COMPLETED</b> &emsp;&emsp;\n {%- if doc.maintenance_status ==\"Completed\" -%}&#10004;{%- endif-%} YES &emsp;&emsp;\n {%- if doc.maintenance_status ==\"Planned\" -%}&#10004;{%- endif-%} NO</td>\n </tr>\n \n</table><br>\n\n<table style=\"max-width: 2480px; width:100%; \">\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;\"><b>TOTAL MAIN HOUR AT SITE</b></td>\n <td style=\"border: 1px solid black;text-align:center;\">{{doc.custom_total_main_hour_at_site}}</td>\n <td style=\"border: 1px solid black;\"><b>TOTAL TRAVEL HOUR</b></td>\n <td style=\"border: 1px solid black;text-align:center;\">{{doc.custom_total_travel_hour}}</td>\n <td style=\"border: 1px solid black;\"><b>TOTAL HOURS</b></td>\n <td style=\"border: 1px solid black;text-align:center;\">{{doc.custom_total_hours}}</td>\n \n </tr>\n <tr style=\"border: 1px solid black; border-collapse: collapse;\">\n <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"2\">Serviced By:{{doc.custom_serviced_by}}\n <br><br>Signature:\n <br><br>Date:\n </td>\n <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"2\">End-User:{{doc.custom_end_user}}\n <br><br>Signature:\n <br><br>Date:\n </td>\n <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"2\">Bio-Med Dept.:{{doc.custom_bio_med_dept}}\n <br><br>Signature:\n <br><br>Date:\n </td>\n </tr>\n <!--<tr style=\"border: 1px solid black; border-collapse: collapse;\">-->\n <!-- <td style=\"border: 1px solid black;word-break:break-all;\" colspan=\"6\">Customer Comments:{{doc.customer_comments}}</td>-->\n \n <!--</tr>-->\n \n</table><br>\n\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-07-08 11:13:40.581773",
"module": "Asset Lite",
"name": "PPM Asset Service",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Work_Order",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "{% set wo = doc %}\r\n\r\n<style>\r\n .header { text-align: center; font-size: 18px; font-weight: bold; margin-bottom: 10px; }\r\n .section-title { background-color: #f2f2f2; font-weight: bold; padding: 5px; margin-top: 10px; }\r\n .table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }\r\n .table th, .table td { border: 1px solid #ddd; padding: 8px; text-align: left; }\r\n .table th { background-color: #f2f2f2; font-weight: 600; }\r\n .logo-table td { border: none; padding: 5px; }\r\n</style>\r\n\r\n<!-- Logo Section -->\r\n<table style=\"width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 10px;\">\r\n <tr>\r\n <td style=\"width: 25%; text-align: left;\">\r\n <img src=\"/files/imageccab6c.jpg\" alt=\"Al Jouf Hospital Logo\" style=\"width: 150px; height: 90px; margin-top: 5px;\">\r\n </td>\r\n <td style=\"width: 50%; text-align: center;\">\r\n <br>\r\n <br>\r\n <b> {{ wo.company}}</b> \r\n </td>\r\n <td style=\"width: 25%; text-align: right;\">\r\n <img src=\"/files/clusterlogopng-Resized.png\" alt=\"Cluster Logo\" style=\"width: 150px; height: 90px; margin-top: 4px;\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<!-- Work Order Header -->\r\n<!--<div class=\"header\">Work Order: {{ wo.name }}</div>-->\r\n\r\n<!-- Work Order Details -->\r\n<div class=\"section-title\">Work Order Details</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Work Order Number</th> <td>{{ wo.name }}</td>\r\n <th>Work Order Type</th> <td>{{ wo.work_order_type or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Hospital Name</th> <td>{{ wo.company or \"-\" }}</td>\r\n <th>Priority</th> <td>{{ wo.custom_priority_ or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Department</th> <td>{{ wo.department or \"-\" }}</td>\r\n <th>Manufacturer</th> <td>{{ wo.manufacturer or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Asset ID</th> <td>{{ wo.asset or \"-\" }}</td>\r\n <th>Asset Name</th> <td>{{ wo.asset_name or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Serial Number</th> <td>{{ wo.serial_number or \"-\" }}</td>\r\n <th>Manufacturing Year</th> <td>{{ wo.custom_manufacturing_year or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Supplier</th> <td>{{ wo.supplier or \"-\" }}</td>\r\n <th>Workflow State</th> <td>{{ wo.workflow_state or \"-\" }}</td>\r\n </tr>\r\n</table>\r\n\r\n<!-- Service Coverage -->\r\n<div class=\"section-title\">Service Coverage</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Site Contractor</th> <td>{{ wo.custom_site_contractor or \"-\" }}</td>\r\n <th>Subcontractor</th> <td>{{ wo.custom_subcontractor or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Service Coverage</th> <td>{{ wo.custom_service_agreement or \"-\" }}</td>\r\n <th>Start Date</th> <td>{{ wo.custom_start_date or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>End Date</th> <td>{{ wo.custom_end_date or \"-\" }}</td>\r\n <th>Total Amount</th> <td>{{ wo.custom_total_amount or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Service Agreement</th> <td>{{ wo.custom_service_coverage or \"-\" }}</td>\r\n <th>Comments</th> <td>{{ wo.custom_comments or \"-\" }}</td>\r\n </tr>\r\n</table>\r\n\r\n<!-- Work Details -->\r\n<div class=\"section-title\">Work Details</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Failure Date</th> <td>{{ wo.failure_date or \"-\" }}</td>\r\n <th>Total Hours Spent</th> <td>{{ wo.total_hours_spent or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Deadline Date</th> <td>{{ wo.custom_deadline_date or \"-\" }}</td>\r\n <th>Completion Date</th> <td>{{ wo.completion_date or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Assigned Manager</th> <td>{{ wo.assigned_manager or \"-\" }}</td>\r\n <th>First Responded On</th> <td>{{ wo.first_responded_on or \"-\" }}</td>\r\n </tr>\r\n</table>\r\n\r\n<!-- Stock Consumption -->\r\n<div class=\"section-title\">Stock Consumption Details</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Item</th> <th>Warehouse</th> <th>Valuation Rate</th> <th>Consumed Quantity</th> <th>Total Value</th>\r\n </tr>\r\n {% for item in wo.stock_items %}\r\n <tr>\r\n <td>{{ item.item_code or \"-\" }}</td>\r\n <td>{{ item.warehouse or \"-\" }}</td>\r\n <td>{{ item.valuation_rate or \"-\" }}</td>\r\n <td>{{ item.consumed_quantity or \"-\" }}</td>\r\n <td>{{ item.total_value or \"-\" }}</td>\r\n </tr>\r\n {% endfor %}\r\n</table>\r\n\r\n<!-- Invoice Details -->\r\n<div class=\"section-title\">Invoice Details</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Purchase Invoice</th> <th>Cost</th>\r\n </tr>\r\n {% for invoice in wo.invoice_table %}\r\n <tr>\r\n <td>{{ invoice.purchase_invoice or \"-\" }}</td>\r\n <td>{{ invoice.cost or \"-\" }}</td>\r\n </tr>\r\n {% endfor %}\r\n</table>\r\n\r\n<!-- Repair Cost -->\r\n<div class=\"section-title\">Repair Cost</div>\r\n<table class=\"table\">\r\n <!--<tr>-->\r\n <!-- <th>Repair Cost</th> <td>{{ wo.repair_cost or \"-\" }}</td>-->\r\n <!--</tr>-->\r\n <tr>\r\n <th>Total Repair Cost</th> <td>{{ wo.total_repair_cost or \"-\" }}</td>\r\n </tr>\r\n</table>\r\n\r\n<!-- Work Performed -->\r\n<div class=\"section-title\">Work Performed</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Nature of Complaint</th> <td>{{ wo.description or \"-\" }}</td>\r\n <th>Work Performed</th> <td>{{ wo.actions_performed or \"-\" }}</td>\r\n </tr>\r\n</table>\r\n\r\n<!-- Service Details -->\r\n<div class=\"section-title\">Service Details</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Total Main Hours At Site</th> <td>{{ wo.total_main_hour_at_site or \"-\" }}</td>\r\n <th>Serviced By</th> <td>{{ wo.serviced_by or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Total Travel Hours</th> <td>{{ wo.total_travel_hour or \"-\" }}</td>\r\n <th>End User</th> <td>{{ wo.end_user or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <!--<th>Serviced By</th> <td>{{ wo.serviced_by or \"-\" }}</td>-->\r\n <!--<th>Signature</th> <td>{{ wo.sign1 }}</td>-->\r\n <!--<th>Date</th> <td>{{ wo.date1 }}</td>-->\r\n </tr>\r\n</table>\r\n\r\n<!-- Customer Comments -->\r\n<div class=\"section-title\">Customer Comments</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Comments</th> <td>{{ wo.customer_comments or \"-\" }}</td>\r\n </tr>\r\n</table>\r\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-07-08 09:54:49.201720",
"module": "Asset Lite",
"name": "Work_Order PF",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 1,
"doc_type": "Asset Maintenance",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "\r\n\r\n<style>\r\n .header { text-align: center; font-size: 18px; font-weight: bold; margin-bottom: 10px; }\r\n .section-title { background-color: #f2f2f2; font-weight: bold; padding: 5px; margin-top: 10px; }\r\n .table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }\r\n .table th, .table td { border: 1px solid #ddd; padding: 8px; text-align: left; }\r\n .table th { background-color: #f2f2f2; font-weight: 600; }\r\n</style>\r\n\r\n<!-- Logo Section -->\r\n<table style=\"width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 10px;\">\r\n <tr>\r\n <td style=\"width: 25%; text-align: left;\">\r\n <img src=\"/files/imageccab6c.jpg\" alt=\"Logo\" style=\"width: 150px; height: 90px;\">\r\n </td>\r\n <td style=\"width: 50%; text-align: center;\">\r\n <b>{{ doc.company }}</b>\r\n </td>\r\n <td style=\"width: 25%; text-align: right;\">\r\n <img src=\"/files/clusterlogopng-Resized.png\" alt=\"Cluster Logo\" style=\"width: 150px; height: 90px;\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<!-- Asset Details -->\r\n<div class=\"section-title\">Asset Maintenance Details</div>\r\n<table class=\"table\">\r\n <tr><th>Asset ID</th> <td>{{ doc.name }}</td></tr>\r\n <tr><th>Asset Name</th> <td>{{ doc.custom_asset_name or \"-\" }}</td></tr>\r\n <tr><th>Asset Type</th> <td>{{ doc.custom_asset_type or \"-\" }}</td></tr>\r\n <!--<tr><th>Asset Category</th> <td>{{ doc.asset_category or \"-\" }}</td></tr>-->\r\n <tr><th>Serial Number</th> <td>{{ doc.custom_serial_number or \"-\" }}</td></tr>\r\n <tr><th>Department</th> <td>{{ doc.custom_department or \"-\" }}</td></tr>\r\n</table>\r\n\r\n<!-- Maintenance Details -->\r\n<div class=\"section-title\">Maintenance Details</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Type of Maintenance</th> <td>{{ doc.custom_type_of_maintenance or \"-\" }}</td>\r\n <th>Maintenance Team</th> <td>{{ doc.maintenance_team or \"-\" }}</td>\r\n </tr>\r\n </table>\r\n<div class=\"section-title\">Contract Details/Coverage</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Site Contractor</th> <td>{{ doc.custom_site_contractor or \"-\" }}</td>\r\n <th>Subcontractor</th> <td>{{ doc.custom_subcontractor or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Service Coverage</th> <td>{{ doc.custom_service_coverage or \"-\" }}</td>\r\n <th>Service Agreement</th> <td>{{ doc.custom_service_agreement or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Start Date</th> <td>{{ doc.custom_start_date or \"-\" }}</td>\r\n <th>End Date</th> <td>{{ doc.custom_end_date or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Total Amount</th> <td>{{ doc.custom_total_amount or \"-\" }}</td>\r\n </tr>\r\n</table>\r\n\r\n<!-- Contract Details -->\r\n\r\n<!-- Maintenance Schedule -->\r\n<!--<div class=\"section-title\">Maintenance Schedule</div>-->\r\n<!--<table class=\"table\">-->\r\n<!-- <tr>-->\r\n<!-- <th>Task</th>-->\r\n<!-- <th>Maintenance Type</th>-->\r\n<!-- <th>Status</th>-->\r\n<!-- <th>Start Date</th>-->\r\n<!-- <th>Periodicity</th>-->\r\n<!-- <th>Assigned To</th>-->\r\n<!-- <th>Next Due Date</th>-->\r\n<!-- <th>Last Completion Date</th>-->\r\n<!-- </tr>-->\r\n<!-- <tr>-->\r\n<!-- <td>Maintenance Task</td>-->\r\n<!-- <td>{{ doc.maintenance_type or \"-\" }}</td>-->\r\n<!-- <td>{{ doc.maintenance_status or \"-\" }}</td>-->\r\n<!-- <td>{{ doc.start_date or \"-\" }}</td>-->\r\n<!-- <td>{{ doc.periodicity or \"-\" }}</td>-->\r\n<!-- <td>{{ doc.assigned_to or \"-\" }}</td>-->\r\n<!-- <td>{{ doc.next_due_date or \"-\" }}</td>-->\r\n<!-- <td>{{ doc.last_completion_date or \"-\" }}</td>-->\r\n<!-- </tr>-->\r\n<!--</table>-->\r\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-07-08 10:02:21.408868",
"module": "Assets",
"name": "Asset Maintenance PF",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": ".subtitle {\r\n font-size: 14px;\r\n font-weight: 600; /* Medium weight */\r\n margin-top: 0px;\r\n}\r\n\r\n.value {\r\n margin-left: 10px; /* Slight indentation for better readability */\r\n}\r\n.section-title {\r\n font-size: 16px;\r\n font-weight: bold;\r\n color: #0056b3; /* Blue title */\r\n margin-bottom: 0; /* Remove bottom margin */\r\n padding-bottom: 0; /* Ensure no extra spacing */\r\n}\r\n\r\n.table {\r\n margin-top: 0; /* Remove any top margin */\r\n border-collapse: collapse; /* Ensure no extra spacing */\r\n width: 100%;\r\n}\r\n.inline-fields {\r\n margin-top: 05px;\r\n display: flex;\r\n gap: 150px; /* Space between Incoterm and Named Place */\r\n}\r\n\r\n.inline-fields p {\r\n \r\n margin: 0; /* Remove extra margins */\r\n font-weight: 300; /* Slightly bold */\r\n}\r\n\r\n.large-terms {\r\n font-size: 14px;\r\n font-weight: 600;\r\n margin-top: 05px;\r\n}\r\n.medium-text {\r\n font-weight: 500; /* Medium-bold */\r\n}\r\n",
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Request for Quotation",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "{% set rfq = doc %}\r\n\r\n<style>\r\n .header { text-align: center; font-size: 18px; font-weight: bold; margin-bottom: 10px; }\r\n .section-title { background-color: #f2f2f2; font-weight: bold; padding: 5px; margin-top: 05px; }\r\n .table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }\r\n .table th, .table td { border: 1px solid #ddd; padding: 8px; text-align: left; }\r\n .table th { background-color: #f2f2f2; font-weight: 600; }\r\n</style>\r\n\r\n<!-- Logo Section -->\r\n<table style=\"width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 10px;\">\r\n <tr>\r\n <td style=\"width: 25%; text-align: left;\">\r\n <img src=\"/private/files/image.jpg\" alt=\"Al Jouf Hospital Logo\" style=\"width: 150px; height: 90px; margin-top: 5px;\">\r\n </td>\r\n <td style=\"width: 50%; text-align: center;font-weight: 800;font-size: 16px;\">\r\n <br>\r\n <br>\r\n <b>{{ rfq.company }}</b>\r\n </td>\r\n <td style=\"width: 25%; text-align: right;\">\r\n <img src=\"/files/clusterlogopng-Resized.png\" alt=\"Cluster Logo\" style=\"width: 150px; height: 90px; margin-top: 4px;\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n\r\n<!-- RFQ Header -->\r\n<div class=\"header\" style=\"color: #0056b3; font-size: 20px; font-weight: bold;\">Request for Quotation</div>\r\n<!--<div class=\"header\">Request for Quotation</div>-->\r\n<table class=\"table\">\r\n <tr>\r\n <th>RFQ Number</th> <td>{{ rfq.name }}</td>\r\n <th>Date</th> <td>{{ rfq.transaction_date or \"-\" }}</td>\r\n </tr>\r\n <tr>\r\n <th>Company Billing Address</th> <td>{{ rfq.billing_address or \"-\" }}</td>\r\n <th>Required Date</th> <td>{{ rfq.schedule_date or \"-\" }}</td>\r\n </tr>\r\n <!--<tr>-->\r\n <!-- <th>Name</th> <td>{{ rfq.custom_name or \"-\" }}</td>-->\r\n <!-- <th>Department</th> <td>{{ rfq.custom_department or \"-\" }}</td>-->\r\n <!--</tr>-->\r\n <!--<tr>-->\r\n <!-- <th>Manufacturer</th> <td>{{ rfq.custom_manufacturer or \"-\" }}</td>-->\r\n <!-- <th>Model</th> <td>{{ rfq.custom_model or \"-\" }}</td>-->\r\n <!--</tr>-->\r\n</table>\r\n\r\n\r\n<div class=\"section-title\">Supplier Details</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Sr</th> <th>Supplier</th> <th>Supplier Name</th> <th>Contact</th> \r\n <th>Quote Status</th> <th>Email Id</th> <th>Email Sent</th> <th>Send Email</th> \r\n </tr>\r\n {% for supplier in rfq.suppliers %}\r\n <tr>\r\n <td>{{ loop.index }}</td>\r\n <td>{{ supplier.supplier or \"-\" }}</td>\r\n <td>{{ supplier.supplier_name or \"-\" }}</td>\r\n <td>{{ supplier.contact or \"-\" }}</td>\r\n <td>{{ supplier.quote_status or \"-\" }}</td>\r\n <td>{{ supplier.email_id }}</td>\r\n <td>{% if supplier.email_sent %}✓{% else %}-{% endif %}</td>\r\n <td>{% if supplier.send_email %}✓{% else %}-{% endif %}</td>\r\n <!--<td>{{ supplier.send_email or \"-\" }}</td>-->\r\n <!--<td>{{ supplier.email_sent or \"-\" }}</td>-->\r\n </tr>\r\n {% endfor %}\r\n</table>\r\n\r\n\r\n\r\n<!-- Item Details -->\r\n<div class=\"section-title\">Item Details</div>\r\n<table class=\"table\">\r\n <tr>\r\n <th>Sr</th> <th>Item Name</th> <th>Item Group</th> <th>Item Code</th> <th>Brand</th> <th>Description</th>\r\n <th>Required Date</th> \r\n <!--<th>Reason</th>-->\r\n <th>Quantity</th> \r\n <!--<th>UOM</th>-->\r\n <!--<th>Material Request</th> -->\r\n </tr>\r\n {% for item in rfq.items %}\r\n <tr>\r\n <td>{{ loop.index }}</td>\r\n <td>{{ item.item_name or \"-\" }}</td>\r\n <td>{{ item.item_group or \"-\" }}</td>\r\n <td>{{ item.item_code or \"-\" }}</td>\r\n <td>{{ item.brand or \"-\" }}</td>\r\n <td>{{ item.description or \"-\" }}</td>\r\n <td>{{ item.schedule_date or \"-\" }}</td>\r\n <!--<td>{{ item.custom_reason or \"-\" }}</td>-->\r\n <td>{{ item.qty or \"-\" }}</td>\r\n <!--<td>{{ item.uom or \"-\" }}</td>-->\r\n <!--<td>{{ item.material_request or \"-\" }}</td>-->\r\n </tr>\r\n {% endfor %}\r\n</table>\r\n\r\n<!--Email Details-->\r\n<!--<div class=\"section-title\">Email Details</div>-->\r\n<!--<div class=\"inline-fields\">-->\r\n<!-- <p><span class=\"medium-text\">• Email Template:</span> <span>{{ rfq.email_template or \"-\"}}</span></p>-->\r\n<!--</div>-->\r\n<br>\r\n<div class=\"subsection\">\r\n <p class=\"subtitle\">• Message for Supplier:</p>\r\n <p class=\"value\">{{ rfq.message_for_supplier or \"-\" }}</p>\r\n</div>\r\n<br>\r\n<!--Terms and Conditions -->\r\n<div class=\"section-title\">Terms and Conditions</div>\r\n\r\n<div class=\"inline-fields\">\r\n <p><span class=\"medium-text\">Incoterm:</span> <span>{{ rfq.incoterm or \"-\" }}</span></p>\r\n <p><span class=\"medium-text\">Named Place:</span> <span>{{ rfq.named_place or \"-\" }}</span></p>\r\n <p><span class=\"medium-text\">Terms:</span> <span>{{ rfq.tc_name or \"-\" }}</span></p>\r\n</div>\r\n<br>\r\n<p class=\"large-terms\"><strong>• Terms and Conditions:</strong> <span>{{ rfq.terms or \"-\" }}</span></p>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<!-- Attachments -->\r\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-07-08 10:00:29.448089",
"module": "Buying",
"name": "RFQ",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Asset",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<div style=\"display: flex; gap: 20px;\">\r\n\r\n <!-- QR Code Box -->\r\n <div style=\"border: 2px solid #00a651; padding: 10px; width: 250px; height: 250px; background-color: #d4edda; display: flex; flex-direction: column; align-items: center; justify-content: center;\">\r\n <h4 style=\"margin-top: 0;\">{{doc.name}}</h4>\r\n {% if doc.custom_attach_image %}\r\n <img src=\"{{ doc.custom_attach_image }}\" alt=\"QR Code\" style=\"max-width: 150px; max-height: 150px;\">\r\n {% else %}\r\n <p>No QR code available</p>\r\n {% endif %}\r\n </div>\r\n\r\n</div>\r\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-04-22 11:26:12.393060",
"module": "Assets",
"name": "Asset QR",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": null,
"disabled": 0,
"doc_type": "POS Invoice",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 0,
"format_data": null,
"html": "<style>\n\t.print-format table, .print-format tr, \n\t.print-format td, .print-format div, .print-format p {\n\t\tline-height: 150%;\n\t\tvertical-align: middle;\n\t}\n\t@media screen {\n\t\t.print-format {\n\t\t\twidth: 4in;\n\t\t\tpadding: 0.25in;\n\t\t\tmin-height: 8in;\n\t\t}\n\t}\n</style>\n\n{% if letter_head %}\n {{ letter_head }}\n{% endif %}\n\n<p class=\"text-center\" style=\"margin-bottom: 1rem\">\n\t{{ doc.company }}<br>\n\t<b>{{ doc.select_print_heading or _(\"Invoice\") }}</b><br>\n</p>\n<p>\n\t<b>{{ _(\"Receipt No\") }}:</b> {{ doc.name }}<br>\n\t<b>{{ _(\"Cashier\") }}:</b> {{ doc.owner }}<br>\n\t<b>{{ _(\"Customer\") }}:</b> {{ doc.customer_name }}<br>\n\t<b>{{ _(\"Date\") }}:</b> {{ doc.get_formatted(\"posting_date\") }}<br>\n\t<b>{{ _(\"Time\") }}:</b> {{ doc.get_formatted(\"posting_time\") }}<br>\n</p>\n\n<hr>\n<table class=\"table table-condensed\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th width=\"50%\">{{ _(\"Item\") }}</th>\n\t\t\t<th width=\"25%\" class=\"text-right\">{{ _(\"Qty\") }}</th>\n\t\t\t<th width=\"25%\" class=\"text-right\">{{ _(\"Amount\") }}</th>\n\t\t</tr>\n\t</thead>\n\t<tbody>\n\t\t{%- for item in doc.items -%}\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t{{ item.item_code }}\n\t\t\t\t{%- if item.item_name != item.item_code -%}\n\t\t\t\t\t<br>{{ item.item_name }}\n\t\t\t\t{%- endif -%}\n\t\t\t\t{%- if item.serial_no -%}\n\t\t\t\t\t<br><b>{{ _(\"SR.No\") }}:</b><br>\n\t\t\t\t\t{{ item.serial_no | replace(\"\\n\", \", \") }}\n\t\t\t\t{%- endif -%}\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">{{ item.qty }}<br>@ {{ item.get_formatted(\"rate\") }}</td>\n\t\t\t<td class=\"text-right\">{{ item.get_formatted(\"amount\") }}</td>\n\t\t</tr>\n\t\t{%- endfor -%}\n\t</tbody>\n</table>\n<table class=\"table table-condensed no-border\">\n\t<tbody>\n\t\t<tr>\n\t\t\t{% if doc.flags.show_inclusive_tax_in_print %}\n\t\t\t\t<td class=\"text-right\" style=\"width: 70%\">\n\t\t\t\t\t{{ _(\"Total Excl. Tax\") }}\n\t\t\t\t</td>\n\t\t\t\t<td class=\"text-right\">\n\t\t\t\t\t{{ doc.get_formatted(\"net_total\", doc) }}\n\t\t\t\t</td>\n\t\t\t{% else %}\n\t\t\t\t<td class=\"text-right\" style=\"width: 70%\">\n\t\t\t\t\t{{ _(\"Total\") }}\n\t\t\t\t</td>\n\t\t\t\t<td class=\"text-right\">\n\t\t\t\t\t{{ doc.get_formatted(\"total\", doc) }}\n\t\t\t\t</td>\n\t\t\t{% endif %}\n\t\t</tr>\n\t\t{%- for row in doc.taxes -%}\n\t\t {%- if not row.included_in_print_rate or doc.flags.show_inclusive_tax_in_print -%}\n\t\t\t<tr>\n\t\t\t\t<td class=\"text-right\" style=\"width: 70%\">\n\t\t\t\t {% if '%' in row.description %}\n\t\t\t\t\t {{ row.description }}\n\t\t\t\t\t{% else %}\n\t\t\t\t\t {{ row.description }}@{{ row.rate }}%\n\t\t\t\t\t{% endif %}\n\t\t\t\t</td>\n\t\t\t\t<td class=\"text-right\">\n\t\t\t\t\t{{ row.get_formatted(\"tax_amount\", doc) }}\n\t\t\t\t</td>\n\t\t\t<tr>\n\t\t {%- endif -%}\n\t\t{%- endfor -%}\n\n\t\t{%- if doc.discount_amount -%}\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t{{ _(\"Discount\") }}\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ doc.get_formatted(\"discount_amount\") }}\n\t\t\t</td>\n\t\t</tr>\n\t\t{%- endif -%}\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t<b>{{ _(\"Grand Total\") }}</b>\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ doc.get_formatted(\"grand_total\") }}\n\t\t\t</td>\n\t\t</tr>\n\t\t{%- if doc.rounded_total -%}\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t<b>{{ _(\"Rounded Total\") }}</b>\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ doc.get_formatted(\"rounded_total\") }}\n\t\t\t</td>\n\t\t</tr>\n\t\t{%- endif -%}\n\t\t{%- for row in doc.payments -%}\n\t\t\t<tr>\n\t\t\t\t<td class=\"text-right\" style=\"width: 70%\">\n\t\t\t\t {{ row.mode_of_payment }}\n\t\t\t\t</td>\n\t\t\t\t<td class=\"text-right\">\n\t\t\t\t\t{{ row.get_formatted(\"amount\", doc) }}\n\t\t\t\t</td>\n\t\t\t<tr>\n\t\t{%- endfor -%}\n\t\t<tr>\n\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t<b>{{ _(\"Paid Amount\") }}</b>\n\t\t\t</td>\n\t\t\t<td class=\"text-right\">\n\t\t\t\t{{ doc.get_formatted(\"paid_amount\") }}\n\t\t\t</td>\n\t\t</tr>\n\t\t{%- if doc.change_amount -%}\n\t\t\t<tr>\n\t\t\t\t<td class=\"text-right\" style=\"width: 75%\">\n\t\t\t\t\t<b>{{ _(\"Change Amount\") }}</b>\n\t\t\t\t</td>\n\t\t\t\t<td class=\"text-right\">\n\t\t\t\t\t{{ doc.get_formatted(\"change_amount\") }}\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t{%- endif -%}\n\t</tbody>\n</table>\n<hr>\n<p>{{ doc.terms or \"\" }}</p>\n<p class=\"text-center\">{{ _(\"Thank you, please visit again.\") }}</p>",
"line_breaks": 0,
"margin_bottom": 0.0,
"margin_left": 0.0,
"margin_right": 0.0,
"margin_top": 0.0,
"modified": "2021-04-15 15:23:28.867135",
"module": "Selling",
"name": "POS Invoice",
"page_number": null,
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "Yes"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": null,
"disabled": 0,
"doc_type": "Journal Entry",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 0,
"format_data": null,
"html": "<div style=\"position: relative\">\n\n\t{%- from \"templates/print_formats/standard_macros.html\" import add_header -%}\n<div class=\"page-break\">\n {%- if not doc.get(\"print_heading\") and not doc.get(\"select_print_heading\") \n and doc.set(\"select_print_heading\", _(\"Payment Advice\")) -%}{%- endif -%}\n {{ add_header(0, 1, doc, letter_head, no_letterhead) }}\n\n{%- for label, value in (\n (_(\"Voucher Date\"), frappe.utils.formatdate(doc.voucher_date)),\n (_(\"Reference / Cheque No.\"), doc.cheque_no),\n (_(\"Reference / Cheque Date\"), frappe.utils.formatdate(doc.cheque_date))\n ) -%}\n <div class=\"row\">\n <div class=\"col-xs-4\"><label class=\"text-right\">{{ label }}</label></div>\n <div class=\"col-xs-8\">{{ value }}</div>\n </div>\n{%- endfor -%}\n\t<hr>\n\t<p>{{ _(\"This amount is in full / part settlement of the listed bills\") }}:</p>\n{%- for label, value in (\n (_(\"Amount\"), \"<strong>\" + doc.get_formatted(\"total_amount\") + \"</strong><br>\" + (doc.total_amount_in_words or \"\") + \"<br>\"),\n (_(\"References\"), doc.remark)\n ) -%}\n <div class=\"row\">\n <div class=\"col-xs-4\"><label class=\"text-right\">{{ label }}</label></div>\n <div class=\"col-xs-8\">{{ value }}</div>\n </div>\n {%- endfor -%}\n <hr>\n\t<div style=\"position: absolute; top: 14cm; left: 0cm;\">\n\t\tPrepared By</div>\n\t<div style=\"position: absolute; top: 14cm; left: 5.5cm;\">\n\t\tAuthorised Signatory</div>\n\t<div style=\"position: absolute; top: 14cm; left: 11cm;\">\n\t\tReceived Payment as Above</div>\n\t<div style=\"position: absolute; top: 16.4cm; left: 5.9cm;\">\n\t\t<strong>_____________</strong></div>\n\t<div style=\"position: absolute; top: 16.7cm; left: 6cm;\">\n\t\t<strong>A/C Payee</strong></div>\n\t<div style=\"position: absolute; top: 16.7cm; left: 5.9cm;\">\n\t\t<strong>_____________</strong></div>\n\t<div style=\"position: absolute; top: 16.9cm; left: 12cm;\">\n\t\t{{ frappe.utils.formatdate(doc.cheque_date) }}</div>\n\t<div style=\"position: absolute; top: 17.9cm; left: 1cm;\">\n\t\t{{ doc.pay_to_recd_from }}</div>\n\t<div style=\"position: absolute; top: 18.6cm; left: 1cm; width: 7cm;\">\n\t\t{{ doc.total_amount_in_words }}</div>\n\t<div style=\"position: absolute; top: 19.7cm; left: 12cm;\">\n\t\t{{ doc.get_formatted(\"total_amount\") }}</div>\n</div>",
"line_breaks": 0,
"margin_bottom": 0.0,
"margin_left": 0.0,
"margin_right": 0.0,
"margin_top": 0.0,
"modified": "2015-05-29 01:57:51.203850",
"module": "Accounts",
"name": "Cheque Printing Format",
"page_number": null,
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "Yes"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Work_Order",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <meta charset=\"UTF-8\">\r\n <style>\r\n * {\r\n margin: 0;\r\n padding: 0;\r\n box-sizing: border-box;\r\n }\r\n \r\n body {\r\n font-family: Arial, sans-serif;\r\n font-size: 10px;\r\n line-height: 1.2;\r\n color: #000;\r\n background: white;\r\n margin: 0;\r\n padding: 0;\r\n }\r\n \r\n .form-container {\r\n width: 100%;\r\n max-width: 800px;\r\n margin: 0 auto;\r\n padding: 15px;\r\n border: 2px solid #000;\r\n background: white;\r\n }\r\n \r\n .header {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n border: 2px solid #000;\r\n padding: 6px;\r\n margin-bottom: 4px;\r\n flex-wrap: wrap;\r\n }\r\n \r\n .logo {\r\n background: #1e3a8a;\r\n color: white;\r\n padding: 6px 12px;\r\n font-weight: bold;\r\n font-size: 14px;\r\n flex-shrink: 0;\r\n }\r\n\t\t.logoNB {\r\n color: white;\r\n padding: 6px 12px;\r\n font-weight: bold;\r\n font-size: 14px;\r\n flex-shrink: 0;\r\n }\r\n \r\n .center-logo {\r\n text-align: center;\r\n color: #1e3a8a;\r\n flex: 1;\r\n min-width: 150px;\r\n }\r\n \r\n .arabic-text {\r\n text-align: right;\r\n font-size: 10px;\r\n direction: rtl;\r\n flex-shrink: 0;\r\n max-width: 200px;\r\n }\r\n .arabic-line-1 {\r\n text-align: left;\r\n direction: rtl;\r\n padding-left: 15px;\r\n }\r\n \r\n .arabic-line-3 {\r\n text-align: left;\r\n direction: rtl;\r\n }\r\n \r\n .arabic-line-2 {\r\n text-align: center;\r\n margin: 2px 0;\r\n }\r\n \r\n .job-order-section {\r\n display: flex;\r\n align-items: center;\r\n margin: 6px 0;\r\n font-weight: bold;\r\n flex-wrap: wrap;\r\n gap: 10px;\r\n }\r\n \r\n .job-order-number {\r\n color: #dc2626;\r\n font-size: 16px;\r\n font-weight: bold;\r\n }\r\n \r\n .checkboxes {\r\n display: flex;\r\n gap: 15px;\r\n flex-wrap: wrap;\r\n }\r\n \r\n .checkbox-item {\r\n display: flex;\r\n align-items: center;\r\n gap: 3px;\r\n }\r\n \r\n .checkbox {\r\n width: 15px;\r\n height: 15px;\r\n border: 1px solid #000;\r\n display: inline-block;\r\n }\r\n \r\n .form-row {\r\n display: flex;\r\n margin: 3px 0;\r\n }\r\n \r\n .form-field {\r\n border: 1px solid #000;\r\n padding: 3px 6px;\r\n flex: 1;\r\n min-height: 22px;\r\n display: flex;\r\n align-items: center;\r\n font-size: 9px;\r\n }\r\n \r\n .form-field.full-width {\r\n width: 100%;\r\n }\r\n \r\n .form-field.half-width {\r\n width: 50%;\r\n }\r\n \r\n .field-label {\r\n font-weight: bold;\r\n margin-right: 10px;\r\n white-space: nowrap;\r\n }\r\n \r\n .field-value {\r\n flex: 1;\r\n border-bottom: 1px dotted #666;\r\n min-height: 15px;\r\n }\r\n \r\n .maintenance-section {\r\n display: flex;\r\n margin: 8px 0;\r\n }\r\n \r\n .maintenance-left, .maintenance-right {\r\n flex: 1;\r\n border: 1px solid #000;\r\n padding: 8px;\r\n margin: 0 2px;\r\n }\r\n \r\n .maintenance-header {\r\n font-weight: bold;\r\n margin-bottom: 8px;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n }\r\n \r\n .spares-table {\r\n width: 100%;\r\n border-collapse: collapse;\r\n border: 1px solid #000;\r\n margin: 6px 0;\r\n font-size: 9px;\r\n }\r\n \r\n .spares-table th, .spares-table td {\r\n border: 1px solid #000;\r\n padding: 3px 4px;\r\n text-align: left;\r\n min-height: 20px;\r\n word-wrap: break-word;\r\n }\r\n \r\n .spares-table th {\r\n background: #f5f5f5;\r\n font-weight: bold;\r\n text-align: center;\r\n }\r\n \r\n .spares-table .qty-col {\r\n width: 60px;\r\n text-align: center;\r\n }\r\n \r\n .final-report {\r\n border: 1px solid #000;\r\n padding: 4px;\r\n margin: 8px 0;\r\n min-height: 40px;\r\n }\r\n \r\n .final-report-header {\r\n font-weight: bold;\r\n /*margin-bottom: 4px;*/\r\n }\r\n \r\n .signatures-section {\r\n border: 1px solid #000;\r\n margin: 8px 0;\r\n }\r\n \r\n .signatures-row {\r\n display: flex;\r\n border-bottom: 1px solid #000;\r\n }\r\n \r\n .signatures-row:last-child {\r\n border-bottom: none;\r\n }\r\n \r\n .signature-cell {\r\n flex: 1;\r\n border-right: 1px solid #000;\r\n padding: 8px;\r\n text-align: center;\r\n min-height: 60px;\r\n font-weight: bold;\r\n }\r\n \r\n .signature-cell:last-child {\r\n border-right: none;\r\n }\r\n \r\n .date-section {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n margin: 5px 0;\r\n }\r\n \r\n .underline {\r\n border-bottom: 1px solid #000;\r\n display: inline-block;\r\n min-width: 80px;\r\n height: 20px;\r\n }\r\n \r\n .sign-space {\r\n display: inline-block;\r\n min-width: 80px;\r\n height: 20px;\r\n }\r\n \r\n @media print {\r\n body {\r\n -webkit-print-color-adjust: exact;\r\n color-adjust: exact;\r\n margin: 0;\r\n padding: 0;\r\n }\r\n \r\n .form-container {\r\n border: 2px solid #000;\r\n box-shadow: none;\r\n width: 100%;\r\n max-width: none;\r\n padding: 10px;\r\n page-break-inside: avoid;\r\n }\r\n \r\n .header {\r\n page-break-inside: avoid;\r\n }\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n <div class=\"form-container\">\r\n <!-- Header Section -->\r\n <div class=\"header\">\r\n\t\t {% if doc.asset_type == \"Biomedical\" %}\r\n <div class=\"logo\"><img src='/files/aljouf-wo.jpg' width='100px'></div>\r\n <div class=\"center-logo\">\r\n <div style=\"font-size: 24px; color: #1e3a8a;\"><img src='/files/SEMH!.png' width='80px' height='70px'></div>\r\n <div style=\"font-size: 10px; color: #666;\">تجمع الجوف الصحي<br>Aljouf Health Cluster</div>\r\n </div>\r\n\t\t\t{% endif %}\r\n\t\t\t{% if doc.asset_type == \"Non Biomedical\" %}\r\n\t\t\t<div class=\"logoNB\">\r\n\t\t\t <div style=\"font-size: 24px; color: #1e3a8a;\"><img src='/files/SEMH!.png' width='80px' height='70px'></div>\r\n <div style=\"font-size: 10px; color: #666;\">تجمع الجوف الصحي<br>Aljouf Health Cluster</div>\r\n\t\t\t</div>\r\n\t\t\t{% endif %}\r\n <div class=\"arabic-text\">\r\n <div class=\"arabic-line-1\">المملكة العربية السعودية</div>\r\n <div class=\"arabic-line-2\">تجمع الجوف الصحي</div>\r\n <div class=\"arabic-line-3\">إدارة الصيانة بتجمع الجوف الصحي</div>\r\n </div>\r\n </div>\r\n\r\n <!-- Job Order Section -->\r\n <div class=\"job-order-section\">\r\n <span>JOB ORDER NO :</span>\r\n <span class=\"underline\">{{doc.name}}</span>\r\n <span>: رقم أمر العمل</span>\r\n <span class=\"job-order-number\" style=\"margin: 0 20px;\"></span>\r\n\t\t\t<span class=\"job-order-number\" style=\"margin: 0 20px;\"></span>\r\n <div class=\"checkbox-item\">\r\n <span>PPM</span>\r\n <span class=\"checkbox\" style=\"margin-left: 3px;\"></span>\r\n </div>\r\n <div class=\"checkbox-item\">\r\n <span>REPAIR</span>\r\n \r\n\t\t\t\t\r\n\t\t\t\t\r\n <span class=\"checkbox\" style=\"margin-left: 3px;\">{% if doc.work_order_type == \"Repair (CM)\" -%}{{ \"&#10003;\" | safe }}{%- endif %}</span>\r\n \r\n </div>\r\n <div class=\"checkbox-item\">\r\n <span>CHECK</span>\r\n <span class=\"checkbox\" style=\"margin-left: 3px;\"></span>\r\n </div>\r\n </div>\r\n\r\n <!-- Hospital Name -->\r\n\t\t{% if doc.asset_type == \"Biomedical\" %}\r\n <div class=\"form-row\">\r\n <div class=\"form-field full-width\">\r\n <span class=\"field-label\">HOSPITAL NAME :</span>\r\n <span class=\"field-value\">{{doc.company or \"\"}}</span>\r\n <span style=\"margin-left: auto;\">: اسم المستشفى</span>\r\n </div>\r\n </div>\r\n\t\t{% endif %}\r\n\t\t{% if doc.asset_type == \"Non Biomedical\" %}\r\n\t\t<div class=\"form-row\">\r\n <div class=\"form-field full-width\">\r\n <span class=\"field-label\">Site Name :</span>\r\n <span class=\"field-value\">{{doc.site_name or \"\"}}</span>\r\n <span style=\"margin-left: auto;\">: اسم الموقع</span>\r\n </div>\r\n </div>\r\n\t\t{% endif %}\r\n\r\n <div class=\"form-row\">\r\n <div class=\"form-field full-width\">\r\n <span class=\"field-label\">Work Order Type :</span>\r\n <span class=\"field-value\">{{doc.work_order_type or \"\"}}</span>\r\n <span style=\"margin-left: auto;\">: نوع أمر العمل</span>\r\n </div>\r\n </div>\r\n <!-- Equipment Details -->\r\n <div class=\"form-row\">\r\n <div class=\"form-field full-width\">\r\n <span class=\"field-label\">EQUIPMENT :</span>\r\n <span class=\"field-value\">{{doc.asset or \"\"}}</span>\r\n <span style=\"margin-left: auto;\">: اسم الجهاز</span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-row\">\r\n <div class=\"form-field full-width\">\r\n <span class=\"field-label\">MANF :</span>\r\n <span class=\"field-value\">{{doc.manufacturer or \"\"}}</span>\r\n <span style=\"margin-left: auto;\">: اسم الصانع</span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-row\">\r\n <div class=\"form-field full-width\">\r\n <span class=\"field-label\">S.NO :</span>\r\n <span class=\"field-value\">{{doc.serial_number or \"\"}}</span>\r\n <span style=\"margin-left: auto;\">: الرقم المسلسل</span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-row\">\r\n <div class=\"form-field full-width\">\r\n <span class=\"field-label\">Dep :</span>\r\n <span class=\"field-value\">{{doc.department or \"\"}}</span>\r\n <span style=\"margin-left: auto;\">: القسم</span>\r\n </div>\r\n </div>\r\n\r\n <!-- Request Details -->\r\n <div class=\"form-row\">\r\n <div class=\"form-field half-width\">\r\n <span class=\"underline\" style=\"flex: 1; margin-right: 10px;\"></span>\r\n <span>: لا الجهاز ينتع المقاول الرئيسي شركة</span>\r\n <span class=\"checkbox\" style=\"margin-left: 5px;\"></span>\r\n </div>\r\n <div class=\"form-field half-width\">\r\n <span class=\"underline\" style=\"flex: 1; margin-right: 10px;\"></span>\r\n <span>: نعم اسم الشركة/الوردة</span>\r\n <span class=\"checkbox\" style=\"margin-left: 5px;\"></span>\r\n <span style=\"margin-left: 10px;\">ضمان</span>\r\n </div>\r\n </div>\r\n\r\n <!-- Sign and Date Section -->\r\n <div class=\"form-row\">\r\n <div class=\"form-field full-width\" style=\"display: flex; align-items: center; gap: 0;\">\r\n <span class=\"field-label\">SIGN :</span>\r\n <span class=\"underline\" style=\"width: 80px; margin: 0 5px;\"></span>\r\n <span>: التوقيع</span>\r\n <span class=\"underline\" style=\"width: 80px; margin: 0 5px;\"></span>\r\n <span>: الاسم</span>\r\n <span style=\"border-left: 1px solid #000; height: 20px; margin: 0 10px;\"></span>\r\n <span class=\"field-label\">DATE :</span>\r\n <span class=\"underline\" style=\"width: 80px; margin: 0 5px;\"></span>\r\n <span>: التاريخ</span>\r\n <span style=\"border-left: 1px solid #000; height: 20px; margin: 0 10px;\"></span>\r\n <span style=\"white-space: nowrap;\">تم فتح أمر العمل بناءا على بلاغ المستشفى/المركز</span>\r\n </div>\r\n </div>\r\n\r\n <!-- Fault Details -->\r\n <div class=\"form-row\">\r\n <div class=\"form-field full-width\" style=\"min-height: 30px; flex-direction: column; padding: 6px;\">\r\n <div style=\"display: flex; align-items: center; width: 100%;\">\r\n <span class=\"field-label\">FAULTE DETAILS</span>\r\n <span style=\"flex: 1;\"></span>\r\n <span>: تفاصيل العطل الموجود بالجهاز</span>\r\n </div>\r\n {% if doc.description %}\r\n <div style=\"width: 100%; border-bottom: 1px dotted #666; min-height: 20px; padding: 4px 0; white-space: pre-wrap; word-wrap: break-word;\">\r\n {{ doc.description or '' }}\r\n </div>\r\n {% endif %}\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Maintenance Section -->\r\n <div class=\"maintenance-section\">\r\n <!--<div class=\"maintenance-left\">-->\r\n <!-- <div class=\"maintenance-header\" style=\"display: flex; align-items: center;\">-->\r\n <!-- <span class=\"checkbox\" style=\"display:inline-block; width:16px; height:16px; border:1px solid #000; margin-right:6px; text-align:center;\">-->\r\n <!-- {%- if doc.status and doc.status != \"Completed\" -%}-->\r\n <!-- ✓-->\r\n <!-- {%- endif -%}-->\r\n <!-- </span>-->\r\n <!-- <span>MAINTENANCE NOT COMP</span>-->\r\n <!-- <span style=\"margin-left: auto;\">لم تكتمل الصيانة</span>-->\r\n <!-- </div>-->\r\n \r\n <!-- <div style=\"margin-top: 10px; display: flex; align-items: center;\">-->\r\n <!-- <span class=\"field-label\">REASON</span>-->\r\n <!-- <span class=\"underline\" style=\"flex:1; margin: 0 6px; border-bottom: 1px dotted #666; min-height:20px; white-space: pre-wrap; word-wrap: break-word;\">-->\r\n <!-- {{ doc.custom_pending_reason or '' }}-->\r\n <!-- </span>-->\r\n <!-- <span>: السبب</span>-->\r\n <!-- </div>-->\r\n <!-- </div>-->\r\n <div class=\"maintenance-left\">\r\n <div class=\"maintenance-header\" style=\"display: flex; align-items: center;\">\r\n <span class=\"checkbox\" style=\"display:inline-block; width:16px; height:16px; border:1px solid #000; margin-right:6px; text-align:center; line-height:16px;\">\r\n {%- if doc.repair_status not in [\"Completed\", \"Cancelled\", \"Closed\"] -%}\r\n ✓\r\n {%- endif -%}\r\n </span>\r\n <span>MAINTENANCE NOT COMP</span>\r\n <span style=\"margin-left: auto;\">لم تكتمل الصيانة</span>\r\n </div>\r\n \r\n <div style=\"margin-top: 10px; display: flex; align-items: center;\">\r\n <span class=\"field-label\">REASON</span>\r\n <div style=\"flex:1; margin: 0 6px; border-bottom: 1px dotted #666; min-height:20px; padding:2px 0; overflow-wrap: break-word; white-space: pre-wrap; font-size: 12px !important; line-height: 14px;\">\r\n {%- if doc.repair_status not in [\"Completed\", \"Cancelled\", \"Closed\"] -%}\r\n {{ doc.custom_pending_reason or '' }}\r\n {%- endif -%}\r\n </div>\r\n <span>: السبب</span>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"maintenance-right\">\r\n <div class=\"maintenance-header\" style=\"display: flex; align-items: center;\">\r\n <span class=\"checkbox\" style=\"display:inline-block; width:16px; height:16px; border:1px solid #000; margin-right:6px; text-align:center; line-height:16px;\">\r\n {%- if doc.repair_status in [\"Completed\", \"Cancelled\", \"Closed\"] -%}\r\n ✓\r\n {%- endif -%}\r\n </span>\r\n <span>MAINTENANCE DONE</span>\r\n <span style=\"margin-left: auto;\">تمت الصيانة</span>\r\n </div>\r\n \r\n <div style=\"margin-top: 10px; display: flex; align-items: center;\">\r\n <span class=\"field-label\">PROCEDURE</span>\r\n <div style=\"flex:1; margin: 0 6px; border-bottom: 1px dotted #666; min-height:20px; padding:2px 0; overflow-wrap: break-word; white-space: pre-wrap;font-size: 12px !important; line-height: 14px;\">\r\n {%- if doc.repair_status in [\"Completed\", \"Cancelled\", \"Closed\"] -%}\r\n {{ doc.actions_performed or '' }}\r\n {%- endif -%}\r\n </div>\r\n <span>: الإجراء</span>\r\n </div>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n <!--Spares Table dfault 1 lin-->\r\n <!--<table class=\"spares-table\" style=\"width: 100%; border-collapse: collapse;\">-->\r\n <!-- <thead>-->\r\n <!-- <tr>-->\r\n <!-- <th style=\"width: 45%;\">Spares Description/Part No<br>إسم قطعة الغيار ووصفها</th>-->\r\n <!-- <th class=\"qty-col\">الكمية<br>QTY</th>-->\r\n <!-- <th style=\"width: 45%;\">Spares Description/Part No<br>إسم قطعة الغيار ووصفها</th>-->\r\n <!-- <th class=\"qty-col\">الكمية<br>QTY</th>-->\r\n <!-- </tr>-->\r\n <!-- </thead>-->\r\n <!-- <tbody>-->\r\n <!-- {%- if doc.stock_items and doc.stock_items|length > 0 -%}-->\r\n <!-- {%- for row in doc.stock_items -%}-->\r\n <!-- <tr>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px;\">{{ row.item_code }}</td>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px; text-align: center;\">{{ row.consumed_quantity }}</td>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px;\">{{ row.item_code }}</td>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px; text-align: center;\">{{ row.consumed_quantity }}</td>-->\r\n <!-- </tr>-->\r\n <!-- {%- endfor -%}-->\r\n <!-- {%- else -%}-->\r\n <!-- <tr>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px;\">&nbsp;</td>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px; text-align: center;\">&nbsp;</td>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px;\">&nbsp;</td>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px; text-align: center;\">&nbsp;</td>-->\r\n <!-- </tr>-->\r\n <!-- {%- endif -%}-->\r\n <!-- </tbody>-->\r\n <!--</table>-->\r\n \r\n <table class=\"spares-table\" style=\"width: 100%; border-collapse: collapse;\">\r\n <thead>\r\n <tr>\r\n <th style=\"width: 45%;\">Spares Description/Part No<br>إسم قطعة الغيار ووصفها</th>\r\n <th class=\"qty-col\">الكمية<br>QTY</th>\r\n <th style=\"width: 45%;\">Spares Description/Part No<br>إسم قطعة الغيار ووصفها</th>\r\n <th class=\"qty-col\">الكمية<br>QTY</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n {%- for row_pair in doc.stock_items|batch(2, '') -%}\r\n <tr>\r\n <td style=\"border-bottom: 1px dotted #666; padding: 4px;\">\r\n {{ row_pair[0].item_code if row_pair[0] }}\r\n </td>\r\n <td style=\"border-bottom: 1px dotted #666; padding: 4px; text-align: center;\">\r\n {{ row_pair[0].consumed_quantity if row_pair[0] }}\r\n </td>\r\n <td style=\"border-bottom: 1px dotted #666; padding: 4px;\">\r\n {{ row_pair[1].item_code if row_pair[1] }}\r\n </td>\r\n <td style=\"border-bottom: 1px dotted #666; padding: 4px; text-align: center;\">\r\n {{ row_pair[1].consumed_quantity if row_pair[1] }}\r\n </td>\r\n </tr>\r\n {%- endfor -%}\r\n </tbody>\r\n</table>\r\n\r\n \r\n <!--<table class=\"spares-table\" style=\"width: 100%; border-collapse: collapse;\">-->\r\n <!-- <thead>-->\r\n <!-- <tr>-->\r\n <!-- <th style=\"width: 45%;\">Spares Description/Part No<br>إسم قطعة الغيار ووصفها</th>-->\r\n <!-- <th class=\"qty-col\">الكمية<br>QTY</th>-->\r\n <!-- <th style=\"width: 45%;\">Spares Description/Part No<br>إسم قطعة الغيار ووصفها</th>-->\r\n <!-- <th class=\"qty-col\">الكمية<br>QTY</th>-->\r\n <!-- </tr>-->\r\n <!-- </thead>-->\r\n <!-- <tbody>-->\r\n <!-- {%- for row in doc.stock_items -%}-->\r\n <!-- <tr>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px;\">{{ row.item_code }}</td>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px; text-align: center;\">{{ row.consumed_quantity }}</td>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px;\">{{ row.item_code }}</td>-->\r\n <!-- <td style=\"border-bottom: 1px dotted #666; padding: 4px; text-align: center;\">{{ row.consumed_quantity }}</td>-->\r\n <!-- </tr>-->\r\n <!-- {%- endfor -%}-->\r\n <!-- </tbody>-->\r\n <!--</table>-->\r\n\r\n\r\n\r\n <!-- Technician Details -->\r\n <div class=\"form-row\">\r\n <div class=\"form-field full-width\" style=\"padding: 6px;\">\r\n <div style=\"display: flex; align-items: stretch; width: 100%;\">\r\n <div style=\"display: flex; align-items: center;\">\r\n <span class=\"field-label\">SIGN :</span>\r\n <span class=\"sign-space\"></span>\r\n <span class=\"field-label\">: التوقيع</span>\r\n </div>\r\n <span style=\"border-left: 1px solid #000; margin: 0 10px;\"></span>\r\n <div style=\"display: flex; align-items: center;\">\r\n <span class=\"field-label\">NAME :</span>\r\n <span class=\"sign-space\"></span>\r\n <span class=\"field-label\">: الاسم</span>\r\n </div>\r\n <span style=\"border-left: 1px solid #000; margin: 0 10px;\"></span>\r\n <div style=\"flex: 1;\">\r\n <div>اسم المهندس/الفني القائم بالإصلاح أو طلب قطع الغيار :</div>\r\n <div style=\"margin-top: 3px; font-size: 9px;\">NAME OF THE TECHNICION/ENGINEER REQUESTING PARTS OR REPAIRING :</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Final Report -->\r\n <div class=\"final-report\">\r\n <div style=\"display: flex; justify-content: space-between; align-items: center;\">\r\n <span class=\"final-report-header\">Final Report :</span>\r\n <span style=\"font-weight: bold;\">: التقرير النهائي فقط بعد إكتمال الإصلاح</span>\r\n </div>\r\n {% if doc.final_report %}\r\n <div style=\"width: 100%; border-bottom: 1px dotted #666; min-height: 1px; margin-top: 1px; padding: 0px 0; white-space: pre-wrap; word-wrap: break-word;\">\r\n {{ doc.final_report or '' }}\r\n </div>\r\n {% endif %}\r\n </div>\r\n\r\n\r\n <!-- Date Section -->\r\n <div class=\"date-section\" style=\"display: flex; justify-content: space-between; align-items: center; font-size: 9px;\">\r\n <div style=\"display: flex; align-items: center;\">\r\n <span class=\"field-label\">Compiled by Tec/Eng</span>\r\n <span class=\"underline\" style=\"width: 60px; margin: 0 3px;\"></span>\r\n <span>: أجرها فني / مهندس</span>\r\n </div>\r\n <div style=\"display: flex; align-items: center;\">\r\n <span class=\"field-label\">Finish Date</span>\r\n <span class=\"underline\" style=\"width: 80px; margin: 0 3px;\"></span>\r\n <span>: تاريخ الإنجاز</span>\r\n </div>\r\n <div style=\"display: flex; align-items: center;\">\r\n <span class=\"field-label\">Start Date</span>\r\n <span class=\"underline\" style=\"width: 80px; margin: 0 3px;\"></span>\r\n <span>: تاريخ البدء</span>\r\n </div>\r\n </div>\r\n\r\n <!-- Signatures Section -->\r\n <div class=\"signatures-section\">\r\n <div class=\"signatures-row\" style=\"border-bottom: 1px solid #000;\">\r\n <div class=\"signature-cell\" style=\"border-bottom: none;\">\r\n <div>مدير المستشفى / المركز الصحي</div>\r\n </div>\r\n <div class=\"signature-cell\" style=\"border-bottom: none;\">\r\n\t\t\t\t\t<div>مشرف الصيانة</div>\r\n </div>\r\n <div class=\"signature-cell\" style=\"border-bottom: none;\">\r\n <div style=\"display: flex; justify-content: space-between; align-items: center;\">\r\n <span>Operator</span>\r\n <span>المقاول</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"signatures-row\">\r\n <div class=\"signature-cell\" style=\"min-height: 80px;\">\r\n <div style=\"margin-top: 15px; font-size: 10px; font-weight: normal; width: 100%;\">\r\n <div style=\"text-align: right; margin-bottom: 15px;\">\r\n <span>الاسم :</span>\r\n </div>\r\n <div style=\"text-align: right;\">\r\n <span>التوقيع :</span>\r\n </div>\r\n\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t<div style=\"text-align: right;\">\r\n <span>الختم :</span>\r\n </div>\r\n\t\t\t\t\t\t\r\n </div>\r\n </div>\r\n <div class=\"signature-cell\" style=\"min-height: 80px;\">\r\n <div style=\"margin-top: 15px; font-size: 10px; font-weight: normal; width: 100%;\">\r\n <div style=\"display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;\">\r\n <span>NAME:</span>\r\n <span>الاسم :</span>\r\n </div>\r\n <div style=\"display: flex; justify-content: space-between; align-items: center;\">\r\n <span>SIGN:</span>\r\n <span>التوقيع :</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"signature-cell\" style=\"min-height: 80px;\">\r\n <div style=\"margin-top: 15px; font-size: 10px; font-weight: normal; width: 100%;\">\r\n <div style=\"display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;\">\r\n <span>NAME:</span>\r\n <span>الاسم :</span>\r\n </div>\r\n <div style=\"display: flex; justify-content: space-between; align-items: center;\">\r\n <span>SIGN:</span>\r\n <span>التوقيع :</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</body>\r\n</html>",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-08-28 13:09:24.054206",
"module": "Asset Lite",
"name": "Job Order",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Asset Maintenance Log",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <meta charset=\"utf-8\">\r\n <title>PPM Form</title>\r\n <style>\r\n body {\r\n font-family: Arial, sans-serif;\r\n font-size: 12px;\r\n margin: 0;\r\n padding: 20px;\r\n direction: ltr;\r\n word-wrap: break-word;\r\n overflow-wrap: break-word;\r\n hyphens: auto;\r\n }\r\n \r\n .header {\r\n border: 2px solid black;\r\n display: flex;\r\n align-items: center;\r\n padding: 10px;\r\n margin-bottom: 0;\r\n }\r\n \r\n .logo {\r\n background-color: #1a237e;\r\n color: white;\r\n padding: 8px 12px;\r\n font-weight: bold;\r\n margin-right: 20px;\r\n font-size: 14px;\r\n }\r\n \r\n .header-center {\r\n flex: 1;\r\n text-align: center;\r\n }\r\n \r\n .star-logo {\r\n color: #1976d2;\r\n font-size: 24px;\r\n margin-bottom: 5px;\r\n }\r\n \r\n .header-right {\r\n text-align: right;\r\n font-size: 10px;\r\n line-height: 1.2;\r\n direction: rtl;\r\n min-width: 200px;\r\n word-wrap: break-word;\r\n overflow-wrap: break-word;\r\n }\r\n \r\n .form-section {\r\n border: 1px solid black;\r\n border-top: none;\r\n padding: 8px;\r\n margin: 0;\r\n }\r\n \r\n .sign-section {\r\n border: 1px solid black;\r\n border-top: none;\r\n padding: 0 8px;\r\n margin: 0;\r\n height: 25px;\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .form-row {\r\n display: flex;\r\n margin-bottom: 8px;\r\n align-items: center;\r\n justify-content: space-between;\r\n }\r\n \r\n .form-row label {\r\n font-weight: bold;\r\n margin-right: 10px;\r\n white-space: nowrap;\r\n font-size: 11px;\r\n width: 120px;\r\n display: inline-block;\r\n }\r\n \r\n .form-row label.job-label {\r\n width: 150px;\r\n }\r\n \r\n .form-row label.hospital-label {\r\n width: 150px;\r\n }\r\n \r\n .form-input-section {\r\n display: flex;\r\n align-items: center;\r\n flex: 1;\r\n margin: 0 15px;\r\n }\r\n \r\n .form-input-section input {\r\n flex: 1;\r\n border: none;\r\n border-bottom: 1px solid black;\r\n padding: 2px;\r\n background: transparent;\r\n }\r\n \r\n .form-row input {\r\n border: none;\r\n border-bottom: 1px solid black;\r\n flex: 1;\r\n padding: 2px;\r\n background: transparent;\r\n margin: 0;\r\n word-wrap: break-word;\r\n overflow-wrap: break-word;\r\n }\r\n \r\n .arabic-label {\r\n direction: rtl;\r\n font-size: 10px;\r\n font-weight: bold;\r\n width: 120px;\r\n text-align: right;\r\n }\r\n \r\n .checkbox-section {\r\n border: 1px solid black;\r\n border-top: none;\r\n padding: 0 8px;\r\n display: flex;\r\n margin: 0;\r\n height: 25px;\r\n }\r\n \r\n .checkbox-item {\r\n display: flex;\r\n align-items: center;\r\n margin-right: 30px;\r\n }\r\n \r\n .checkbox {\r\n width: 15px;\r\n height: 15px;\r\n border: 2px solid black;\r\n margin-right: 8px;\r\n display: inline-block;\r\n }\r\n \r\n .ppm-checkbox {\r\n width: 18px;\r\n height: 18px;\r\n border: 2px solid black;\r\n margin-left: 10px;\r\n display: inline-block;\r\n position: relative;\r\n }\r\n \r\n .ppm-checkbox.checked::after {\r\n content: '■';\r\n position: absolute;\r\n top: -2px;\r\n left: 2px;\r\n font-size: 14px;\r\n font-weight: bold;\r\n }\r\n \r\n .ppm-section {\r\n border: 1px solid black;\r\n border-top: none;\r\n margin: 0;\r\n }\r\n \r\n .ppm-title {\r\n text-align: center;\r\n font-weight: bold;\r\n font-size: 16px;\r\n padding: 10px;\r\n border-bottom: 1px solid black;\r\n }\r\n \r\n .maintenance-row {\r\n display: flex;\r\n border-bottom: 1px solid black;\r\n }\r\n \r\n .maintenance-left, .maintenance-right {\r\n flex: 1;\r\n padding: 8px;\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .maintenance-right {\r\n border-left: 1px solid black;\r\n }\r\n \r\n .spares-table {\r\n border-collapse: collapse;\r\n width: 100%;\r\n margin-top: 0;\r\n }\r\n \r\n .spares-table th, .spares-table td {\r\n border: 1px solid black;\r\n padding: 8px;\r\n text-align: center;\r\n font-size: 11px;\r\n word-wrap: break-word;\r\n overflow-wrap: break-word;\r\n hyphens: auto;\r\n }\r\n \r\n .spares-table th {\r\n font-weight: bold;\r\n background-color: #f0f0f0;\r\n }\r\n \r\n .spares-row {\r\n height: 25px;\r\n }\r\n \r\n .final-report {\r\n border: 1px solid black;\r\n border-top: none;\r\n padding: 8px;\r\n margin: 0;\r\n }\r\n \r\n .report-lines {\r\n margin-top: 10px;\r\n }\r\n \r\n .report-line {\r\n border-bottom: 1px solid black;\r\n height: 20px;\r\n margin-bottom: 5px;\r\n }\r\n \r\n .signature-section {\r\n border: 1px solid black;\r\n border-top: none;\r\n margin: 0;\r\n }\r\n \r\n .signature-table {\r\n width: 100%;\r\n border-collapse: collapse;\r\n }\r\n \r\n .signature-table td {\r\n border: 1px solid black;\r\n padding: 8px;\r\n text-align: center;\r\n font-size: 10px;\r\n height: 40px;\r\n vertical-align: bottom;\r\n word-wrap: break-word;\r\n overflow-wrap: break-word;\r\n hyphens: auto;\r\n }\r\n \r\n .signature-header {\r\n font-weight: bold;\r\n background-color: #f0f0f0;\r\n }\r\n \r\n .arabic-text {\r\n font-size: 10px;\r\n color: #666;\r\n direction: rtl;\r\n display: inline-block;\r\n max-width: 300px;\r\n word-wrap: break-word;\r\n overflow-wrap: break-word;\r\n hyphens: auto;\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n <!-- Header Section -->\r\n <div class=\"header\">\r\n <div class=\"logo\">samama</div>\r\n <div class=\"header-center\">\r\n <div class=\"star-logo\">✦</div>\r\n <div style=\"font-weight: bold;\">Aljouf Health Cluster</div>\r\n </div>\r\n <div class=\"header-right\">\r\n <div>المملكة العربية السعودية</div>\r\n <div>تجمع الجوف الصحي</div>\r\n <div>إدارة الصيانة ( الصيانة الطبية )</div>\r\n </div>\r\n </div>\r\n \r\n <!-- Job Order Information with PPM -->\r\n <div class=\"form-section\">\r\n <div class=\"form-row\">\r\n <label class=\"job-label\">JOB ORDER NO :</label>\r\n <div class=\"form-input-section\">\r\n <input type=\"text\" value=\"{{ doc.job_order_no or '' }}\">\r\n </div>\r\n <span class=\"arabic-label\">رقم أمر العمل :</span>\r\n <div style=\"margin-left: auto; display: flex; align-items: center;\">\r\n <span style=\"font-weight: bold; font-size: 14px; margin-right: 10px;\">PPM</span>\r\n <span class=\"ppm-checkbox {% if doc.ppm_completed %}checked{% endif %}\"></span>\r\n </div>\r\n </div>\r\n \r\n <div class=\"form-row\" style=\"margin-bottom: 20px;\">\r\n <label class=\"hospital-label\">HOSPITAL NAME :</label>\r\n <div style=\"display: flex; align-items: center; flex: 1; margin: 0 15px;\">\r\n <input type=\"text\" value=\"{{ doc.hospital_name or '' }}\" style=\"flex: 1; border: none; border-bottom: 1px solid black; padding: 2px; background: transparent; margin-right: 20px;\">\r\n <input type=\"text\" value=\"\" style=\"width: 150px; border: none; border-bottom: 1px solid black; padding: 2px; background: transparent;\">\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <!-- Equipment Information -->\r\n <div class=\"form-section\">\r\n <div class=\"form-row\">\r\n <label>EQUIPMENT :</label>\r\n <div class=\"form-input-section\">\r\n <input type=\"text\" value=\"{{ doc.equipment or '' }}\">\r\n </div>\r\n <span class=\"arabic-label\">اسم الجهاز :</span>\r\n </div>\r\n \r\n <div class=\"form-row\">\r\n <label>MANF :</label>\r\n <div class=\"form-input-section\">\r\n <input type=\"text\" value=\"{{ doc.manufacturer or '' }}\">\r\n </div>\r\n <span class=\"arabic-label\">اسم الصانع :</span>\r\n </div>\r\n \r\n <div class=\"form-row\">\r\n <label>MODEL :</label>\r\n <div class=\"form-input-section\">\r\n <input type=\"text\" value=\"{{ doc.model or '' }}\">\r\n </div>\r\n <span class=\"arabic-label\">الموديل :</span>\r\n </div>\r\n \r\n <div class=\"form-row\">\r\n <label>S.NO :</label>\r\n <div class=\"form-input-section\">\r\n <input type=\"text\" value=\"{{ doc.serial_no or '' }}\">\r\n </div>\r\n <span class=\"arabic-label\">الرقم المسلسل :</span>\r\n </div>\r\n \r\n <div class=\"form-row\">\r\n <label>Dep :</label>\r\n <div class=\"form-input-section\">\r\n <input type=\"text\" value=\"{{ doc.department or '' }}\">\r\n </div>\r\n <span class=\"arabic-label\">القسم :</span>\r\n </div>\r\n </div>\r\n \r\n <!-- Checkbox Section -->\r\n <div class=\"checkbox-section\" style=\"position: relative;\">\r\n <div style=\"display: flex; align-items: center; width: 100%; height: 100%;\">\r\n <!-- First section -->\r\n <div style=\"flex: 1; border-bottom: 1px solid black; height: 1px; margin-right: 10px;\"></div>\r\n <span style=\"direction: rtl; font-size: 10px; margin: 0 10px; white-space: nowrap;\">لا الجهاز ليس تحت الضمان الرسمي شركة</span>\r\n <span class=\"checkbox\">{% if doc.warranty_not_under_company %}✓{% endif %}</span>\r\n \r\n <!-- Vertical line separator that touches top and bottom -->\r\n <div style=\"width: 2px; height: 100%; background-color: black; position: absolute; left: 50%; top: 0;\"></div>\r\n \r\n <!-- Second section -->\r\n <div style=\"flex: 1; border-bottom: 1px solid black; height: 1px; margin-left: 20px; margin-right: 10px;\"></div>\r\n <span style=\"direction: rtl; font-size: 10px; margin: 0 10px; white-space: nowrap;\">ضمان تحت اسم الشركة/المورد</span>\r\n <span class=\"checkbox\">{% if doc.warranty_under_company %}✓{% endif %}</span>\r\n <span style=\"direction: rtl; font-size: 10px; margin-left: 8px;\">ضمان</span>\r\n </div>\r\n </div>\r\n \r\n <!-- Work Order Details -->\r\n <div class=\"sign-section\" style=\"position: relative;\">\r\n <div style=\"display: flex; align-items: center; width: 100%; height: 100%;\">\r\n <label style=\"font-weight: bold; font-size: 11px;\">SIGN :</label>\r\n <div style=\"flex: 1; border-bottom: 1px solid black; height: 1px; margin: 0 10px;\"></div>\r\n <span style=\"direction: rtl; font-size: 10px; margin: 0 5px;\">التوقيع :</span>\r\n <div style=\"flex: 1; border-bottom: 1px solid black; height: 1px; margin: 0 10px;\"></div>\r\n <span style=\"direction: rtl; font-size: 10px; margin: 0 5px;\">الاسم :</span>\r\n <div style=\"width: 2px; height: 100%; background-color: black; position: absolute; left: 45%; top: 0;\"></div>\r\n <label style=\"font-weight: bold; font-size: 11px; margin-left: 35px;\">DATE :</label>\r\n <div style=\"flex: 1; border-bottom: 1px solid black; height: 1px; margin: 0 10px;\"></div>\r\n <span style=\"direction: rtl; font-size: 10px; margin: 0 5px;\">التاريخ :</span>\r\n <div style=\"width: 2px; height: 100%; background-color: black; position: absolute; right: 180px; top: 0;\"></div>\r\n <span style=\"direction: rtl; font-size: 9px; word-wrap: break-word; overflow-wrap: break-word; max-width: 180px;\">يتم تعبئة أمر العمل بناء على طلب المستخدم/المركز التاريخ</span>\r\n </div>\r\n </div>\r\n \r\n <!-- Fault Details Section -->\r\n <div class=\"form-section\" style=\"border-bottom: none;\">\r\n <div style=\"display: flex; align-items: center; justify-content: space-between; margin-bottom: 0;\">\r\n <label style=\"font-weight: bold; font-size: 11px; width: 120px;\">FAULTE DETAILS :</label>\r\n <div style=\"display: flex; align-items: center; flex: 1; margin: 0 15px;\">\r\n <input type=\"text\" value=\"{{ doc.fault_details or '' }}\" style=\"flex: 1; border: none; border-bottom: 1px solid black; padding: 2px; background: transparent;\">\r\n </div>\r\n <span style=\"direction: rtl; font-size: 10px; width: 120px; text-align: right;\">تفاصيل العطل/الوجود بالجهاز :</span>\r\n </div>\r\n </div>\r\n \r\n <!-- Combined PPM Section -->\r\n <div class=\"ppm-section\">\r\n <div class=\"ppm-title\">PPM</div>\r\n \r\n <!-- MAINTENANCE row with REASON section combined -->\r\n <div style=\"position: relative;\">\r\n <!-- Continuous vertical line through entire section -->\r\n <div style=\"width: 2px; background-color: black; position: absolute; left: 50%; top: 0; bottom: 0; height: 100%;\"></div>\r\n \r\n <!-- First row: MAINTENANCE options -->\r\n <div style=\"display: flex; align-items: center; padding: 8px; border-bottom: 1px solid black;\">\r\n <div style=\"display: flex; align-items: center; flex: 1; justify-content: space-evenly;\">\r\n <label style=\"font-weight: bold; font-size: 11px;\">MAINTENANCE NOT COMP</label>\r\n <span class=\"checkbox\">{% if doc.maintenance_not_comp %}✓{% endif %}</span>\r\n <span style=\"direction: rtl; font-size: 10px;\">اكتمال الصيانة</span>\r\n </div>\r\n \r\n <div style=\"display: flex; align-items: center; flex: 1; justify-content: space-evenly;\">\r\n <label style=\"font-weight: bold; font-size: 11px;\">MAINTENANCE DONE</label>\r\n <span class=\"checkbox\">{% if doc.maintenance_done %}✓{% endif %}</span>\r\n <span style=\"direction: rtl; font-size: 10px;\">تمت الصيانة</span>\r\n </div>\r\n </div>\r\n \r\n <!-- Second row: REASON and PROCEDURE labels with lines -->\r\n <div style=\"display: flex; align-items: center; padding: 8px;\">\r\n <div style=\"flex: 1; display: flex; align-items: center; padding-right: 20px;\">\r\n <label style=\"font-weight: bold; font-size: 11px; margin-right: 15px;\">RESASON</label>\r\n <div style=\"flex: 1; border-bottom: 1px solid black; height: 1px; margin-right: 10px;\"></div>\r\n <span style=\"direction: rtl; font-size: 10px;\">السبب :</span>\r\n </div>\r\n \r\n <div style=\"flex: 1; display: flex; align-items: center; padding-left: 20px;\">\r\n <label style=\"font-weight: bold; font-size: 11px; margin-right: 15px;\">PROCEDURE</label>\r\n <div style=\"flex: 1; border-bottom: 1px solid black; height: 1px; margin-right: 10px;\"></div>\r\n <span style=\"direction: rtl; font-size: 10px;\">الإجراء :</span>\r\n </div>\r\n </div>\r\n \r\n <!-- Additional rows with gaps between horizontal lines -->\r\n <div style=\"display: flex; align-items: center; padding: 6px 8px;\">\r\n <div style=\"flex: 1; padding-right: 20px;\">\r\n <div style=\"border-bottom: 1px solid black; height: 1px; margin: 0 15px;\"></div>\r\n </div>\r\n <div style=\"flex: 1; padding-left: 20px;\">\r\n <div style=\"border-bottom: 1px solid black; height: 1px; margin: 0 15px;\"></div>\r\n </div>\r\n </div>\r\n \r\n <div style=\"display: flex; align-items: center; padding: 6px 8px;\">\r\n <div style=\"flex: 1; padding-right: 20px;\">\r\n <div style=\"border-bottom: 1px solid black; height: 1px; margin: 0 15px;\"></div>\r\n </div>\r\n <div style=\"flex: 1; padding-left: 20px;\">\r\n <div style=\"border-bottom: 1px solid black; height: 1px; margin: 0 15px;\"></div>\r\n </div>\r\n </div>\r\n \r\n <div style=\"display: flex; align-items: center; padding: 6px 8px;\">\r\n <div style=\"flex: 1; padding-right: 20px;\">\r\n <div style=\"border-bottom: 1px solid black; height: 1px; margin: 0 15px;\"></div>\r\n </div>\r\n <div style=\"flex: 1; padding-left: 20px;\">\r\n <div style=\"border-bottom: 1px solid black; height: 1px; margin: 0 15px;\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <!-- Spares Table -->\r\n <table class=\"spares-table\">\r\n <tr>\r\n <th>Spares Description/Part No<br><span style=\"direction: rtl; font-size: 10px;\">اسم قطعة الغيار ووصفها</span></th>\r\n <th>الكمية<br>QTY</th>\r\n <th>Spares Description/Part No<br><span style=\"direction: rtl; font-size: 10px;\">اسم قطعة الغيار ووصفها</span></th>\r\n <th>الكمية<br>QTY</th>\r\n </tr>\r\n {% for i in range(8) %}\r\n <tr class=\"spares-row\">\r\n <td>{% if doc.spares and doc.spares[i] %}{{ doc.spares[i].description }}{% endif %}</td>\r\n <td>{% if doc.spares and doc.spares[i] %}{{ doc.spares[i].qty }}{% endif %}</td>\r\n <td>{% if doc.spares and doc.spares[i+8] %}{{ doc.spares[i+8].description }}{% endif %}</td>\r\n <td>{% if doc.spares and doc.spares[i+8] %}{{ doc.spares[i+8].qty }}{% endif %}</td>\r\n </tr>\r\n {% endfor %}\r\n </table>\r\n \r\n <!-- Technician Signature -->\r\n <div class=\"form-section\" style=\"padding: 4px 8px; height: 40px; display: flex; align-items: center; position: relative;\">\r\n <div style=\"display: flex; align-items: center; width: 100%; height: 100%;\">\r\n <label style=\"font-weight: bold; font-size: 11px;\">SIGN :</label>\r\n <div style=\"flex: 1; border-bottom: 1px solid black; height: 1px; margin: 0 10px;\"></div>\r\n <span style=\"direction: rtl; font-size: 10px; margin: 0 5px;\">التوقيع</span>\r\n \r\n <!-- First vertical line -->\r\n <div style=\"width: 2px; height: 100%; background-color: black; margin: 0 10px;\"></div>\r\n \r\n <label style=\"font-weight: bold; font-size: 11px;\">NAME :</label>\r\n <div style=\"flex: 1; border-bottom: 1px solid black; height: 1px; margin: 0 10px;\"></div>\r\n <span style=\"direction: rtl; font-size: 10px; margin: 0 5px;\">الاسم :</span>\r\n \r\n <!-- Second vertical line -->\r\n <div style=\"width: 2px; height: 100%; background-color: black; margin: 0 10px;\"></div>\r\n \r\n <div style=\"display: flex; flex-direction: column; align-items: center;\">\r\n <span style=\"direction: rtl; font-size: 9px; word-wrap: break-word; overflow-wrap: break-word; max-width: 200px; margin-bottom: 2px;\">اسم المهندس/الفني القائم بالإصلاح أو طلب قطع الغيار :</span>\r\n <span style=\"font-size: 8px; white-space: nowrap;\">NAME OF THE TECHNICIAN/ENGINEER REQUESTING PARTS OR REPAIRING :</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <!-- Final Report -->\r\n <div class=\"final-report\">\r\n <div class=\"form-row\">\r\n <label>Final Report :</label>\r\n <input type=\"text\" value=\"{{ doc.final_report or '' }}\">\r\n <span style=\"margin-left: 20px;\">التقرير النهائي فقط بعد اكتمال الإصلاح :</span>\r\n </div>\r\n \r\n <div class=\"report-lines\">\r\n {% for i in range(4) %}\r\n <div class=\"report-line\"></div>\r\n {% endfor %}\r\n </div>\r\n </div>\r\n \r\n <!-- Compiled by/Dates Section with Vertical Separators -->\r\n <div style=\"border: 1px solid black; border-top: none; margin: 0; display: flex; height: 40px;\">\r\n <!-- Compiled by Section -->\r\n <div style=\"flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4px; border-right: 1px solid black;\">\r\n <span style=\"font-weight: bold; font-size: 11px;\">Compiled by Tec/Eng</span>\r\n <span style=\"direction: rtl; font-size: 9px; margin-top: 2px;\">أعدها فني / مهندس :</span>\r\n </div>\r\n \r\n <!-- Finish Date Section -->\r\n <div style=\"flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4px; border-right: 1px solid black;\">\r\n <span style=\"font-weight: bold; font-size: 11px;\">Finish Date {{ doc.finish_date or '____/____/2025' }}</span>\r\n <span style=\"direction: rtl; font-size: 9px; margin-top: 2px;\">تاريخ الإنتهاء</span>\r\n </div>\r\n \r\n <!-- Start Date Section -->\r\n <div style=\"flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4px;\">\r\n <span style=\"font-weight: bold; font-size: 11px;\">Start Date {{ doc.start_date or '____/____/2025' }}</span>\r\n <span style=\"direction: rtl; font-size: 9px; margin-top: 2px;\">تاريخ البدء</span>\r\n </div>\r\n </div>\r\n \r\n <!-- Signature Table Section -->\r\n <div class=\"signature-section\">\r\n <table class=\"signature-table\">\r\n <tr>\r\n <td style=\"height: 60px; text-align: center; vertical-align: middle;\">\r\n <div style=\"direction: rtl; font-size: 10px;\">الفني</div>\r\n </td>\r\n <td style=\"height: 60px; text-align: center; vertical-align: middle;\">\r\n <div style=\"direction: rtl; font-size: 10px;\">مدير المستشفى / المركز الصحي</div>\r\n </td>\r\n <td style=\"height: 60px; text-align: center; vertical-align: middle;\">\r\n <div style=\"direction: rtl; font-size: 10px;\">مشرف الصيانة الطبية</div>\r\n </td>\r\n <td style=\"height: 60px; text-align: center; vertical-align: middle;\">\r\n <div style=\"font-size: 10px;\">Operator</div>\r\n <div style=\"direction: rtl; font-size: 10px; margin-top: 3px;\">المعتمد</div>\r\n </td>\r\n </tr>\r\n <tr style=\"height: 40px;\">\r\n <td style=\"text-align: center; vertical-align: bottom;\">\r\n <!-- Empty cell -->\r\n </td>\r\n <td style=\"text-align: center; vertical-align: bottom;\">\r\n <div style=\"font-size: 10px; margin-bottom: 15px;\">\r\n <span style=\"direction: rtl; text-align: right; display: block;\">الاسم :</span>\r\n </div>\r\n <div style=\"font-size: 10px;\">\r\n <span style=\"direction: rtl; text-align: right; display: block;\">التوقيع :</span>\r\n </div>\r\n </td>\r\n <td style=\"text-align: center; vertical-align: bottom;\">\r\n <div style=\"font-size: 10px; margin-bottom: 15px;\">\r\n <span style=\"direction: rtl; float: right;\">الاسم :</span>\r\n <span style=\"float: left;\">NAME:</span>\r\n <div style=\"clear: both;\"></div>\r\n </div>\r\n <div style=\"font-size: 10px;\">\r\n <span style=\"direction: rtl; float: right;\">التوقيع :</span>\r\n <span style=\"float: left;\">SIGN:</span>\r\n <div style=\"clear: both;\"></div>\r\n </div>\r\n </td>\r\n <td style=\"text-align: center; vertical-align: bottom;\">\r\n <div style=\"font-size: 10px; margin-bottom: 15px;\">\r\n <span style=\"direction: rtl; float: right;\">الاسم :</span>\r\n <span style=\"float: left;\">NAME:</span>\r\n <div style=\"clear: both;\"></div>\r\n </div>\r\n <div style=\"font-size: 10px;\">\r\n <span style=\"direction: rtl; float: right;\">التوقيع :</span>\r\n <span style=\"float: left;\">SIGN:</span>\r\n <div style=\"clear: both;\"></div>\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n</body>\r\n</html>",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-06-03 10:58:05.403403",
"module": "Assets",
"name": "PPM",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Material Request",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <meta charset=\"UTF-8\">\r\n <style>\r\n @page {\r\n margin: 10mm;\r\n size: A4;\r\n }\r\n \r\n body {\r\n font-family: Arial, sans-serif;\r\n font-size: 11px;\r\n line-height: 1.2;\r\n margin: 0;\r\n padding: 0;\r\n }\r\n \r\n .header {\r\n text-align: center;\r\n margin-bottom: 15px;\r\n border-bottom: 2px solid #000;\r\n padding-bottom: 10px;\r\n }\r\n \r\n .company-name-ar {\r\n font-size: 16px;\r\n font-weight: bold;\r\n margin-bottom: 3px;\r\n }\r\n \r\n .company-name-en {\r\n font-size: 14px;\r\n font-weight: bold;\r\n margin-bottom: 8px;\r\n }\r\n \r\n .location-info {\r\n font-size: 10px;\r\n margin-bottom: 2px;\r\n }\r\n \r\n .project-title {\r\n font-size: 14px;\r\n font-weight: bold;\r\n margin: 10px 0;\r\n text-decoration: underline;\r\n }\r\n \r\n .form-section {\r\n margin-bottom: 15px;\r\n }\r\n \r\n .form-row {\r\n display: flex;\r\n margin-bottom: 5px;\r\n align-items: center;\r\n }\r\n \r\n .form-field {\r\n display: flex;\r\n align-items: center;\r\n margin-right: 20px;\r\n min-width: 200px;\r\n }\r\n \r\n .field-label {\r\n font-weight: bold;\r\n margin-left: 8px;\r\n white-space: nowrap;\r\n }\r\n \r\n .field-value {\r\n border-bottom: 1px solid #000;\r\n min-width: 150px;\r\n padding: 2px 5px;\r\n margin-left: 10px;\r\n }\r\n \r\n .checkbox {\r\n width: 15px;\r\n height: 15px;\r\n border: 2px solid #000;\r\n display: inline-block;\r\n margin-right: 5px;\r\n }\r\n \r\n .spare-parts-header {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 10px;\r\n }\r\n \r\n .spare-parts-title {\r\n font-size: 12px;\r\n font-weight: bold;\r\n margin-right: 10px;\r\n }\r\n \r\n .parts-table {\r\n width: 100%;\r\n border-collapse: collapse;\r\n margin-bottom: 15px;\r\n }\r\n \r\n .parts-table th,\r\n .parts-table td {\r\n border: 1px solid #000;\r\n padding: 4px 6px;\r\n text-align: right;\r\n vertical-align: top;\r\n }\r\n \r\n .parts-table th {\r\n background-color: #f0f0f0;\r\n font-weight: bold;\r\n font-size: 10px;\r\n }\r\n .arabic-line-1 {\r\n text-align: left;\r\n direction: rtl;\r\n padding-left: 15px;\r\n }\r\n \r\n .arabic-line-3 {\r\n text-align: left;\r\n direction: rtl;\r\n }\r\n \r\n .arabic-line-2 {\r\n text-align: center;\r\n margin: 2px 0;\r\n }\r\n \r\n .parts-table td {\r\n height: 25px;\r\n font-size: 10px;\r\n }\r\n \r\n .note-section {\r\n font-size: 9px;\r\n margin: 15px 0;\r\n padding: 5px;\r\n border: 1px solid #ccc;\r\n }\r\n \r\n .signatures {\r\n display: flex;\r\n justify-content: space-between;\r\n margin-top: 20px;\r\n }\r\n \r\n .signature-box {\r\n border: 1px solid #000;\r\n padding: 8px;\r\n width: 30%;\r\n min-height: 60px;\r\n }\r\n \r\n .signature-title {\r\n font-size: 10px;\r\n font-weight: bold;\r\n text-align: center;\r\n margin-bottom: 8px;\r\n }\r\n \r\n .signature-field {\r\n font-size: 9px;\r\n margin-bottom: 3px;\r\n }\r\n \r\n .signature-line {\r\n border-bottom: 1px solid #000;\r\n height: 15px;\r\n margin-bottom: 3px;\r\n }\r\n \r\n .footer {\r\n text-align: center;\r\n margin-top: 15px;\r\n padding-top: 10px;\r\n border-top: 1px solid #000;\r\n }\r\n \r\n .logo-section {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n margin-bottom: 10px;\r\n }\r\n \r\n .logo-box {\r\n width: 100px;\r\n height: 40px;\r\n background-color: #0066cc;\r\n color: white;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n font-weight: bold;\r\n font-size: 12px;\r\n }\r\n \r\n .vision-2030 {\r\n font-size: 10px;\r\n text-align: center;\r\n }\r\n \r\n .arabic-text {\r\n direction: rtl;\r\n text-align: right;\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n <div class=\"header\">\r\n <div class=\"logo-section\">\r\n <div class=\"logo-box\"><img src='/files/aljouf-wo.jpg' width='200px'></div>\r\n <div class=\"vision-2030\">\r\n \r\n <div style=\"font-size: 18px; font-weight: bold;\"><img src='/files/42a5cb1639.png' height='120px' ></div>\r\n \r\n </div>\r\n <div class=\"arabic-text\">\r\n <div class=\"arabic-line-1\">المملكة العربية السعودية</div>\r\n <div class=\"arabic-line-2\">تجمع الجوف الصحي</div>\r\n <div class=\"arabic-line-3\">إدارة الصيانة ( الصيانة الطبية )</div>\r\n </div>\r\n </div>\r\n \r\n <div class=\"project-title\">BIO - MEDICAL MAINTENANCE PROJECT</div>\r\n </div>\r\n\r\n <div class=\"form-section\">\r\n <div class=\"spare-parts-header\">\r\n <div class=\"spare-parts-title\">SPARE PARTS</div>\r\n <div class=\"checkbox\" style=\"margin: 0 30px;\"></div>\r\n <div class=\"arabic-text\" style=\"font-weight: bold; width: 40%;\">طلب عروض قطع غيار للأجهزة الطبية</div>\r\n </div>\r\n {% set wo = frappe.get_doc(\"Work_Order\", doc.custom_work_order) %}\r\n <div class=\"form-row\">\r\n <div class=\"form-field\" style=\"margin-left: 0px;\">\r\n <span class=\"field-label\">LOCATION</span>\r\n <div style=\"border: 1px solid #000; padding: 3px 8px; margin-left: 10px; min-width: 400px; display: flex; justify-content: space-between;\">\r\n <span>HOSP :&emsp;{{wo.company}}</span>\r\n <span class=\"arabic-text\">: مستشفى</span>\r\n </div>\r\n </div>\r\n <div class=\"arabic-text\" style=\"margin-left: 20px; font-weight: bold;\">: الموقع</div>\r\n </div>\r\n </div>\r\n\r\n <table style=\"width: 100%; border-collapse: collapse; margin-bottom: 15px; border: 1px solid #000;\">\r\n <tr>\r\n <td style=\"border: 1px solid #000; padding: 5px; width: 25%;\">\r\n <div style=\"display: flex; justify-content: space-between;\">\r\n <span>P.R.NO.</span>\r\n <span style=\"direction: rtl;\">ـم ـ رقـ الطلب</span>\r\n </div>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px; width: 25%;\">{{doc.name}}</td>\r\n <td style=\"border: 1px solid #000; padding: 5px; width: 25%;\">\r\n <div style=\"display: flex; justify-content: space-between;\">\r\n <span>P.R DATE</span>\r\n <span style=\"direction: rtl;\">ـخʈالتار</span>\r\n </div>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px; width: 25%;\">{{doc.transaction_date}}</td>\r\n </tr>\r\n <tr>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <div style=\"display: flex; justify-content: space-between;\">\r\n <span>JOB ORDER. No</span>\r\n <span style=\"direction: rtl;\">أمرالعمـل رقم</span>\r\n </div>\r\n </td>\r\n \r\n <td style=\"border: 1px solid #000; padding: 5px;\">{{doc.custom_work_order}}</td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <div style=\"display: flex; justify-content: space-between;\">\r\n <span>J.O. DATE</span>\r\n <span style=\"direction: rtl;\">ـخʈالتار</span>\r\n </div>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">{{wo.creation or \"\"}}</td>\r\n </tr>\r\n <tr>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <div style=\"display: flex; justify-content: space-between;\">\r\n <span>EQUIPMENT</span>\r\n <span style=\"direction: rtl;\">ــازɺاݍݨ</span>\r\n </div>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">{{wo.asset or \"\"}}</td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <div style=\"display: flex; justify-content: space-between;\">\r\n <span>MODEL/ TYPE</span>\r\n <span style=\"direction: rtl;\">الموديــل</span>\r\n </div>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">{{wo.model or \"\"}}</td>\r\n </tr>\r\n <tr>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <div style=\"display: flex; justify-content: space-between;\">\r\n <span>MANUFACTURER</span>\r\n <span style=\"direction: rtl;\">الصناعـة</span>\r\n </div>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">{{wo.manufacturer or \"\"}}</td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <div style=\"display: flex; justify-content: space-between;\">\r\n <span>SYSTEM NO</span>\r\n <span></span>\r\n </div>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\"></td>\r\n </tr>\r\n <tr>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <div style=\"display: flex; justify-content: space-between;\">\r\n <span>AGENT</span>\r\n <span style=\"direction: rtl;\">الوكيـــل</span>\r\n </div>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">{{wo.vendor or \"\"}}</td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <div style=\"display: flex; justify-content: space-between;\">\r\n <span>FAX NO.</span>\r\n <span style=\"direction: rtl;\">الفاكس رقم</span>\r\n </div>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\"></td>\r\n </tr>\r\n </table>\r\n\r\n <table class=\"parts-table\">\r\n <tr>\r\n <th style=\"width: 10%;\">SN</th>\r\n <th style=\"width: 30%;\">DESCRIPTION إســـم قطعـة الغيــار</th>\r\n <th style=\"width: 15%;\">PART NO رقم القطعـة</th>\r\n <th style=\"width: 10%;\">QTY الكميه</th>\r\n </tr>\r\n {%- for row in doc.items -%}\r\n <tr>\r\n <td>{{ loop.index }}</td>\r\n <td>\r\n {{row.description}}\r\n \r\n </td>\r\n <td></td>\r\n <td>{{row.qty}}</td>\r\n </tr>\r\n {%- endfor -%}\r\n <!-- Repeat rows for spare parts entries -->\r\n <!-- <tr><td></td><td></td><td></td><td></td></tr>\r\n <tr><td></td><td></td><td></td><td></td></tr>\r\n <tr><td></td><td></td><td></td><td></td></tr>\r\n <tr><td></td><td></td><td></td><td></td></tr>\r\n <tr><td></td><td></td><td></td><td></td></tr>\r\n <tr><td></td><td></td><td></td><td></td></tr>\r\n <tr><td></td><td></td><td></td><td></td></tr>\r\n <tr><td></td><td></td><td></td><td></td></tr>\r\n <tr><td></td><td></td><td></td><td></td></tr>\r\n <tr><td></td><td></td><td></td><td></td></tr>\r\n <tr><td></td><td></td><td></td><td></td></tr>\r\n <tr><td></td><td></td><td></td><td></td></tr>-->\r\n </table>\r\n\r\n <div class=\"note-section\">\r\n <div style=\"font-weight: bold; margin-bottom: 3px;font-size:10.5px\">NOTE : Make Sure The above information has been filled professionally & it is assumed that defaulters bear the consequences</div>\r\n <div style=\"margin-left: 85px; font-size:12px\">\r\n عليأن يتم التوريد خلال ثلاثين يوما طبقا لخطاب سعادة مدير عام الوكالات التجارية رقم 20631/22 وتاريخ <br>\r\n 1432/10/08 هـ المتضمن عدم تجاوزفترة التوريد عن ثلاثين يوما .\r\n </div>\r\n </div>\r\n\r\n <div class=\"signatures\">\r\n <div style=\"width: 30%;\">\r\n <div style=\"font-size: 10px; font-weight: bold; margin-bottom: 5px;\">\r\n ENGINEER / TECHN الفني / المهندس\r\n </div>\r\n <div style=\"font-size: 9px;\">\r\n <div>NAME :</div>\r\n <div>SIGN :</div>\r\n <div>DATE :</div>\r\n </div>\r\n </div>\r\n \r\n <div style=\"width: 30%;\">\r\n <div style=\"font-size: 10px; font-weight: bold; margin-bottom: 5px;\">\r\n SITE MANAGER مدير الموقع\r\n </div>\r\n <div style=\"font-size: 9px;\">\r\n <div>NAME :</div>\r\n <div>SIGN :</div>\r\n <div>DATE :</div>\r\n </div>\r\n </div>\r\n \r\n <div style=\"width: 30%;\">\r\n <div style=\"font-size: 10px; font-weight: bold; margin-bottom: 5px;\">\r\n MOH SUPERVISOR مهندس الوزارة\r\n </div>\r\n <div style=\"font-size: 9px;\">\r\n <div>NAME :</div>\r\n <div>SIGN :</div>\r\n <div>DATE :</div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"footer\">\r\n <div style=\"font-size: 12px; font-weight: bold; text-align: center; margin-bottom: 3px; color: blue;\">شركة سمــــامة للتشغيــــــل والادارة</div>\r\n <div style=\"font-size: 11px; font-weight: bold; text-align: center; color: blue;\">SAMAMA CO. FOR OPERATION & MANAGEMENT</div>\r\n </div>\r\n</body>\r\n</html>",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-06-13 10:50:48.066258",
"module": "Stock",
"name": "Spare Parts Request",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Asset",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<!DOCTYPE html>\r\n<html lang=\"ar\" dir=\"rtl\">\r\n<head>\r\n <meta charset=\"UTF-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n <title>Medical Equipment Installation Report</title>\r\n <style>\r\n body {\r\n font-family: 'Times New Roman', serif;\r\n margin: 0;\r\n padding: 20px;\r\n font-size: 12px;\r\n line-height: 1.3;\r\n direction: rtl;\r\n text-align: right;\r\n }\r\n \r\n .header-line {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n margin-bottom: 5px;\r\n }\r\n \r\n .header-right {\r\n font-weight: bold;\r\n }\r\n \r\n .header-center {\r\n font-weight: bold;\r\n text-align: center;\r\n flex-grow: 1;\r\n }\r\n \r\n .header-left {\r\n font-weight: bold;\r\n }\r\n \r\n .dotted-line {\r\n border-bottom: 1px dotted #000;\r\n display: inline-block;\r\n min-width: 100px;\r\n }\r\n \r\n .main-content {\r\n margin: 15px 0;\r\n text-align: justify;\r\n }\r\n \r\n .equipment-section {\r\n margin: 15px 0;\r\n }\r\n \r\n .equipment-line {\r\n display: flex;\r\n justify-content: space-between;\r\n margin: 8px 0;\r\n font-weight: bold;\r\n }\r\n \r\n .equipment-item {\r\n display: flex;\r\n align-items: center;\r\n direction: ltr;\r\n text-align: left;\r\n width: 48%;\r\n }\r\n \r\n .equipment-item-ltr {\r\n display: flex;\r\n align-items: center;\r\n direction: ltr;\r\n text-align: left;\r\n }\r\n \r\n .arabic-label {\r\n direction: rtl;\r\n text-align: right;\r\n margin-left: 10px;\r\n }\r\n \r\n .english-part {\r\n direction: ltr;\r\n text-align: left;\r\n }\r\n \r\n .colon {\r\n margin: 0 5px;\r\n }\r\n \r\n .field-value {\r\n border-bottom: 1px solid #000;\r\n min-width: 120px;\r\n display: inline-block;\r\n height: 18px;\r\n }\r\n \r\n .location-line {\r\n margin: 10px 0;\r\n font-weight: bold;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n width: 100%;\r\n }\r\n \r\n .location-arabic {\r\n direction: rtl;\r\n text-align: right;\r\n }\r\n \r\n .location-english {\r\n direction: ltr;\r\n text-align: left;\r\n }\r\n \r\n .parts-table {\r\n width: 100%;\r\n border-collapse: collapse;\r\n margin: 15px 0;\r\n border: 2px solid #000;\r\n }\r\n \r\n .parts-table th,\r\n .parts-table td {\r\n border: 1px solid #000;\r\n padding: 6px;\r\n text-align: center;\r\n font-weight: bold;\r\n vertical-align: middle;\r\n }\r\n \r\n .parts-table th {\r\n background-color: #f8f8f8;\r\n font-size: 11px;\r\n }\r\n \r\n .parts-table .row-number {\r\n width: 8%;\r\n }\r\n \r\n .parts-table .description {\r\n width: 35%;\r\n }\r\n \r\n .parts-table .part-number {\r\n width: 25%;\r\n }\r\n \r\n .parts-table .unit {\r\n width: 16%;\r\n }\r\n \r\n .parts-table .quantity {\r\n width: 16%;\r\n }\r\n \r\n .footer-text {\r\n margin: 20px 0;\r\n text-align: justify;\r\n }\r\n \r\n .signatures-section {\r\n margin-top: 40px;\r\n }\r\n \r\n .signature-row {\r\n display: flex;\r\n justify-content: space-between;\r\n margin: 30px 0;\r\n }\r\n \r\n .signature-block {\r\n text-align: center;\r\n width: 45%;\r\n }\r\n \r\n .signature-block-right {\r\n text-align: left;\r\n width: 45%;\r\n float: right;\r\n }\r\n \r\n .signature-block-left {\r\n text-align: left;\r\n width: 45%;\r\n float: left;\r\n }\r\n \r\n .signature-title {\r\n font-weight: bold;\r\n margin-bottom: 3px;\r\n font-size: 11px;\r\n }\r\n \r\n .signature-line {\r\n border-bottom: 1px solid #000;\r\n height: 25px;\r\n margin: 8px 0;\r\n display: inline-block;\r\n width: 120px;\r\n margin-left: 10px;\r\n }\r\n \r\n .signature-label {\r\n font-size: 10px;\r\n font-weight: bold;\r\n }\r\n \r\n .middle-signature {\r\n text-align: center;\r\n margin: 25px 0;\r\n width: 45%;\r\n margin-left: auto;\r\n margin-right: auto;\r\n }\r\n \r\n .seal-section {\r\n text-align: center;\r\n margin-top: 30px;\r\n font-weight: bold;\r\n font-size: 12px;\r\n }\r\n \r\n @media print {\r\n body {\r\n margin: 0;\r\n padding: 15px;\r\n font-size: 11px;\r\n }\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n <!-- Header Section -->\r\n <div class=\"header-line\">\r\n <div class=\"header-right\">المملكة العربية السعودية</div>\r\n <div class=\"header-center\"></div>\r\n <div class=\"header-left\">الرقم: <span class=\"dotted-line\">{{ doc.name or \"\" }}</span></div>\r\n </div>\r\n \r\n <div class=\"header-line\">\r\n <div class=\"header-right\">تجمع الجوف الصحي</div>\r\n <div class=\"header-center\">محضر تركيب</div>\r\n <div class=\"header-left\">التاريخ: <span class=\"dotted-line\">{{ frappe.utils.formatdate(doc.posting_date, \"dd/MM/yyyy\") if doc.posting_date else \"\" }}</span> هـ</div>\r\n </div>\r\n \r\n <div class=\"header-line\">\r\n <div class=\"header-right\">الصيانة الطبية</div>\r\n <div class=\"header-center\">INSTALLATION REPORT</div>\r\n <div class=\"header-left\">الموافق: <span class=\"dotted-line\">{{ frappe.utils.formatdate(doc.posting_date, \"dd/MM/yyyy\") if doc.posting_date else \"\" }}</span> م</div>\r\n </div>\r\n \r\n <div style=\"margin: 15px 0; font-weight: bold;\">\r\n مستشفى <span class=\"dotted-line\" style=\"min-width: 200px;\">{{ doc.customer or \"\" }}</span>\r\n </div>\r\n\r\n <!-- Main Content -->\r\n <div class=\"main-content\">\r\n تشهد مستشفى <span class=\"dotted-line\" style=\"min-width: 180px;\">{{ doc.customer or \"\" }}</span> بأن <span class=\"dotted-line\" style=\"min-width: 180px;\">{{ doc.supplier or \"\" }}</span> قامت بتركيب و توريد قطع الغيار الخاصة التالية والتابعة:\r\n </div>\r\n\r\n <!-- Equipment Information -->\r\n <div class=\"equipment-section\">\r\n <div class=\"equipment-line\">\r\n <div class=\"equipment-item\">\r\n <span>EQUIPMENT NAME</span>\r\n <span class=\"colon\">:</span>\r\n <span class=\"field-value\">{{ doc.name or \"\" }}</span>\r\n <span class=\"arabic-label\">اسم الجهاز:</span>\r\n </div>\r\n <div class=\"equipment-item\">\r\n <span>MFR</span>\r\n <span class=\"colon\">:</span>\r\n <span class=\"field-value\">{{ doc.custom_manufacturer or \"\" }}</span>\r\n <span class=\"arabic-label\">صناعة:</span>\r\n </div>\r\n </div>\r\n \r\n <div class=\"equipment-line\">\r\n <div class=\"equipment-item\">\r\n <span>SERIAL NO</span>\r\n <span class=\"colon\">:</span>\r\n <span class=\"field-value\">{{ doc.custom_serial_number or \"\" }}</span>\r\n <span class=\"arabic-label\">مسلسل:</span>\r\n </div>\r\n <div class=\"equipment-item\">\r\n <span>MODEL</span>\r\n <span class=\"colon\">:</span>\r\n <span class=\"field-value\">{{ doc.custom_model or \"\" }}</span>\r\n <span class=\"arabic-label\">موديل:</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <div class=\"location-line\">\r\n <span class=\"location-arabic\">\r\n التابع لقسم:\r\n </span>\r\n <span class=\"field-value\" style=\"min-width: 300px; flex-grow: 1; margin: 0 10px;text-align:left\">{{ doc.location or \"\" }}</span>\r\n <span class=\"location-english\">\r\n LOCATION:\r\n </span>\r\n </div>\r\n\r\n <!-- Parts Table -->\r\n <table class=\"parts-table\">\r\n <thead>\r\n <tr>\r\n <th class=\"row-number\">م</th>\r\n <th class=\"description\">وصف القطعة<br>DESCRIPTION</th>\r\n <th class=\"part-number\">رقم القطعة<br>PART NO.</th>\r\n <th class=\"unit\">الوحدة<br>UNIT</th>\r\n <th class=\"quantity\">الكمية<br>QTY.</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n {% if doc.items %}\r\n {% for item in doc.custom_spare_parts %}\r\n <tr>\r\n <td>{{ loop.index }}</td>\r\n <td>{{ item.item_name or \"\" }}</td>\r\n <td>{{ item.item_code or \"\" }}</td>\r\n <td>{{ item.uom or \"\" }}</td>\r\n <td>{{ item.qty or \"\" }}</td>\r\n </tr>\r\n {% endfor %}\r\n {% for i in range(8 - doc.items|length) %}\r\n <tr>\r\n <td>{{ doc.items|length + loop.index }}</td>\r\n <td>&nbsp;</td>\r\n <td>&nbsp;</td>\r\n <td>&nbsp;</td>\r\n <td>&nbsp;</td>\r\n </tr>\r\n {% endfor %}\r\n {% else %}\r\n {% for i in range(8) %}\r\n <tr>\r\n <td>{{ loop.index }}</td>\r\n <td>&nbsp;</td>\r\n <td>&nbsp;</td>\r\n <td>&nbsp;</td>\r\n <td>&nbsp;</td>\r\n </tr>\r\n {% endfor %}\r\n {% endif %}\r\n </tbody>\r\n </table>\r\n\r\n <!-- Footer Text -->\r\n <div class=\"footer-text\">\r\n وذلك طبقا لعقد صيانة وإصلاح الأجهزة الطبية بمستشفى <span class=\"dotted-line\" style=\"min-width: 150px;\">{{ doc.customer or \"\" }}</span> والجهاز يعمل بحالة جيدة.\r\n <br><br>\r\n وﷲ الموفق .....\r\n </div>\r\n\r\n <!-- Signatures Section -->\r\n <div class=\"signatures-section\">\r\n <!-- First Row -->\r\n <div class=\"signature-row\">\r\n <div class=\"signature-block-right\">\r\n <div class=\"signature-title\">المسئول في القسم &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dept. Responsible </div>\r\n <div><span class=\"signature-line\"></span><span class=\"signature-label\">Name</span></div>\r\n <div><span class=\"signature-line\"></span><span class=\"signature-label\">Sign</span></div>\r\n </div>\r\n \r\n <div class=\"signature-block-left\">\r\n <div class=\"signature-title\">مدير شركة سمامة &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Site Manager</div>\r\n <div><span class=\"signature-line\"></span><span class=\"signature-label\">Name</span></div>\r\n <div><span class=\"signature-line\"></span><span class=\"signature-label\">Sign</span></div>\r\n </div>\r\n </div>\r\n \r\n <!-- Installation Engineer - Right aligned -->\r\n <div style=\"text-align: left; margin: 25px 0; width: 45%; float: right; clear: both;\">\r\n <div class=\"signature-title\">مهندس/ فني التركيب &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Installation Eng</div>\r\n <div><span class=\"signature-line\"></span><span class=\"signature-label\">Name</span></div>\r\n <div><span class=\"signature-line\"></span><span class=\"signature-label\">Sign</span></div>\r\n </div>\r\n <div style=\"clear: both;\"></div>\r\n \r\n <!-- Second Row -->\r\n <div class=\"signature-row\">\r\n <div class=\"signature-block-right\"> \r\n <div class=\"signature-title\">مشرف الوزارة بالمستشفى &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hospital Supervisor</div>\r\n <div><span class=\"signature-line\"></span><span class=\"signature-label\">Name</span></div>\r\n <div><span class=\"signature-line\"></span><span class=\"signature-label\">Sign</span></div>\r\n </div>\r\n \r\n <div class=\"signature-block-left\">\r\n <div class=\"signature-title\">مدير المستشفى/ المركز &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hospital Manager</div>\r\n <div><span class=\"signature-line\"></span><span class=\"signature-label\">Name</span></div>\r\n <div><span class=\"signature-line\"></span><span class=\"signature-label\">Sign</span></div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Official Seal -->\r\n <div class=\"seal-section\">\r\n الختم الرسمي\r\n </div>\r\n</body>\r\n</html>",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-06-13 12:28:46.621903",
"module": "Assets",
"name": "Installation Report",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": "@page {\r\n size: A4;\r\n margin: 15mm;\r\n }\r\n \r\n body {\r\n font-family: Arial, sans-serif;\r\n direction: rtl;\r\n text-align: right;\r\n /*font-family: \"Arial\", sans-serif;*/\r\n font-size: 12px;\r\n line-height: 1.4;\r\n margin: 0;\r\n padding: 0;\r\n }\r\n \r\n\r\n .header {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n margin-bottom: 20px;\r\n /*border-bottom: 2px solid #000;*/\r\n padding-bottom: 10px;\r\n }\r\n \r\n .header-left {\r\n flex: 1;\r\n }\r\n \r\n .header-right {\r\n flex: 1;\r\n text-align: right;\r\n }\r\n \r\n .kingdom {\r\n font-weight: bold;\r\n font-size: 14px;\r\n margin-bottom: 5px;\r\n }\r\n \r\n .organization {\r\n font-weight: bold;\r\n font-size: 13px;\r\n margin-bottom: 3px;\r\n }\r\n \r\n .department {\r\n font-weight: bold;\r\n font-size: 12px;\r\n }\r\n \r\n .original-note {\r\n font-size: 11px;\r\n font-weight: bold;\r\n margin-bottom: 15px;\r\n }\r\n \r\n .document-details {\r\n display: flex;\r\n justify-content: space-between;\r\n margin-bottom: 20px;\r\n /*background-color: #f8f9fa;*/\r\n padding: 10px;\r\n /*border: 1px solid #ddd;*/\r\n }\r\n \r\n .detail-group {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n }\r\n \r\n .detail-row {\r\n display: flex;\r\n align-items: center;\r\n gap: 10px;\r\n }\r\n \r\n .detail-label {\r\n font-weight: bold;\r\n min-width: 100px;\r\n }\r\n \r\n .detail-input {\r\n /*border-bottom: 1px solid #000;*/\r\n min-width: 150px;\r\n height: 20px;\r\n display: inline-block;\r\n }\r\n \r\n .document-title {\r\n text-align: center;\r\n font-size: 16px;\r\n font-weight: bold;\r\n margin: 20px 0;\r\n padding: 10px;\r\n background-color: #e9ecef;\r\n border: 2px solid #000;\r\n }\r\n \r\n .return-reasons {\r\n margin-bottom: 20px;\r\n padding: 15px;\r\n border: 1px solid #000;\r\n }\r\n \r\n .reasons-title {\r\n font-weight: bold;\r\n text-align: center;\r\n margin-bottom: 10px;\r\n font-size: 14px;\r\n }\r\n \r\n .reasons-grid {\r\n display: grid;\r\n grid-template-columns: repeat(4, 1fr);\r\n gap: 15px;\r\n }\r\n \r\n .reason-item {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n }\r\n \r\n .checkbox {\r\n width: 15px;\r\n height: 15px;\r\n border: 2px solid #000;\r\n display: inline-block;\r\n }\r\n \r\n .items-table {\r\n width: 100%;\r\n border-collapse: collapse;\r\n margin-bottom: 30px;\r\n font-size: 11px;\r\n }\r\n \r\n .items-table th,\r\n .items-table td {\r\n border: 1px solid #000;\r\n padding: 8px;\r\n text-align: center;\r\n vertical-align: middle;\r\n }\r\n \r\n .items-table th {\r\n background-color: #f8f9fa;\r\n font-weight: bold;\r\n font-size: 10px;\r\n }\r\n \r\n .items-table .description-col {\r\n width: 25%;\r\n text-align: left;\r\n }\r\n \r\n .items-table .recommendations-col {\r\n width: 35%;\r\n }\r\n \r\n .recommendation-options {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 5px;\r\n font-size: 9px;\r\n }\r\n \r\n .recommendation-item {\r\n display: flex;\r\n align-items: center;\r\n gap: 5px;\r\n }\r\n \r\n .small-checkbox {\r\n width: 10px;\r\n height: 10px;\r\n border: 1px solid #000;\r\n display: inline-block;\r\n }\r\n \r\n .signatures-section {\r\n margin-top: 40px;\r\n }\r\n \r\n .signatures-table {\r\n width: 100%;\r\n border: 1px solid #000;\r\n border-collapse: collapse;\r\n margin-bottom: 20px;\r\n }\r\n \r\n .signatures-table th{\r\n border: 1px solid #000;\r\n padding: 15px;\r\n text-align: center;\r\n vertical-align: top;\r\n \r\n }\r\n .signatures-table td {\r\n border: 1px solid #000;\r\n padding: 15px;\r\n text-align: center;\r\n vertical-align: top;\r\n }\r\n \r\n .signatures-table th {\r\n background-color: #f8f9fa;\r\n font-weight: bold;\r\n font-size: 11px;\r\n }\r\n \r\n .signature-cell {\r\n height: 80px;\r\n }\r\n \r\n .signature-labels {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 25px;\r\n text-align: left;\r\n }\r\n \r\n .authorization {\r\n margin-top: 20px;\r\n display: flex;\r\n flex-direction: column;\r\n gap: 15px;\r\n }\r\n \r\n .auth-row {\r\n display: flex;\r\n align-items: center;\r\n gap: 10px;\r\n }\r\n \r\n .auth-label {\r\n font-weight: bold;\r\n min-width: 120px;\r\n }\r\n \r\n .auth-line {\r\n border-bottom: 1px solid #000;\r\n flex: 1;\r\n height: 20px;\r\n }\r\n \r\n .page-break {\r\n page-break-before: always;\r\n }",
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Material Transfer",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<div class=\"return-document\" dir=\"rtl\">\r\n\r\n <div class=\"header\">\r\n <div class=\"header-left\">\r\n <div class=\"kingdom\">المملكة العربية السعودية</div>\r\n <div class=\"organization\">تجمع الجوف الصحي</div>\r\n <div class=\"department\">إدارة المستودعات</div>\r\n <div><strong>الجهة المرجعة:</strong>\r\n {% if doc.transfer_type == \"Item\" %}\r\n {{ doc.item or \" \" }}\r\n {% elif doc.transfer_type == \"Asset\" %}\r\n {{ doc.asset or \" \" }}\r\n {% else %}\r\n {{\" \"}}\r\n {% endif %}\r\n </div>\r\n <div>المستودع: {{doc.source_warehouse or \"\"}}</div>\r\n </div>\r\n <h4 style=\"text-align: center;\">مستند إرجاع</h4>\r\n <!--<div class=\"header-right\">-->\r\n <!-- <div><span class=\"detail-input\"><strong>عدد الصفحات:</strong> ١</span></div>-->\r\n <!-- <div><span class=\"detail-input\"><strong>التاريخ:</strong> {{ doc.get_formatted(\"date\") or \" \" }}</span></div>-->\r\n <!--</div>-->\r\n <div style=\"text-align: left;\" class=\"header-right\">\r\n <div><strong>عدد الصفحات:</strong> .....................</div>\r\n <div><strong>التاريخ:</strong> \r\n <!--هـ / / --> {{doc.date or \"\"}}\r\n </div>\r\n <div><strong>الموافق:</strong> \r\n <!--م / / --> {{doc.date or \"\"}}\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <!--<div class=\"return-reasons\">-->\r\n <!-- <div class=\"reasons-title\">أسباب الإرجاع</div>-->\r\n <!-- <div class=\"reasons-grid\">-->\r\n <!-- <div class=\"reason-item\"><span class=\"checkbox\">{% if doc.reason_for_return == \"Purpose Completed\" %}✓{% endif %}</span><span>انتهاء الغرض</span></div>-->\r\n <!-- <div class=\"reason-item\"><span class=\"checkbox\">{% if doc.reason_for_return == \"Surplus\" %}✓{% endif %}</span><span>فائض</span></div>-->\r\n <!-- <div class=\"reason-item\"><span class=\"checkbox\">{% if doc.reason_for_return == \"Unusable\" %}✓{% endif %}</span><span>عدم الصلاحية</span></div>-->\r\n <!-- <div class=\"reason-item\"><span class=\"checkbox\">{% if doc.reason_for_return == \"Damaged\" %}✓{% endif %}</span><span>تالف</span></div>-->\r\n <!-- </div>-->\r\n <!--</div>-->\r\n <table style=\"width: 100%; border-collapse: collapse; font-size: 12px; text-align: center;\" dir=\"rtl\">\r\n <thead>\r\n <tr>\r\n <th colspan=\"4\" style=\"border: 1px solid #000; padding: 5px;text-align: center;\">أسباب الإرجاع</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <span style=\"display: inline-block; width: 15px; border: 1px solid #000; height: 15px; line-height: 15px;\">\r\n {% if doc.reason_for_return == \"Purpose Completed\" %}✓{% endif %}\r\n </span>\r\n <span style=\"margin-right: 5px;\">انتهاء الغرض</span>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <span style=\"display: inline-block; width: 15px; border: 1px solid #000; height: 15px; line-height: 15px;\">\r\n {% if doc.reason_for_return == \"Surplus\" %}✓{% endif %}\r\n </span>\r\n <span style=\"margin-right: 5px;\">فائض</span>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <span style=\"display: inline-block; width: 15px; border: 1px solid #000; height: 15px; line-height: 15px;\">\r\n {% if doc.reason_for_return == \"Unusable\" %}✓{% endif %}\r\n </span>\r\n <span style=\"margin-right: 5px;\">عدم الصلاحية</span>\r\n </td>\r\n <td style=\"border: 1px solid #000; padding: 5px;\">\r\n <span style=\"display: inline-block; width: 15px; border: 1px solid #000; height: 15px; line-height: 15px;\">\r\n {% if doc.reason_for_return == \"Damaged\" %}✓{% endif %}\r\n </span>\r\n <span style=\"margin-right: 5px;\">تالف</span>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n<br><br>\r\n\r\n\r\n <table class=\"items-table\">\r\n <thead>\r\n <tr>\r\n <th rowspan=\"2\">م</th>\r\n <th rowspan=\"2\">رقم الصنف</th>\r\n <th rowspan=\"2\">اسم الصنف ووصفه</th>\r\n <th rowspan=\"2\">الوحدة</th>\r\n <th rowspan=\"2\">الكمية</th>\r\n <th colspan=\"3\">توصيات لجنة فحص الرجيع</th>\r\n <th rowspan=\"2\">ملاحظات</th>\r\n </tr>\r\n <tr>\r\n <th>للإصلاح</th>\r\n <th>للبيع</th>\r\n <th>للتلف</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n {% if doc.transfer_type == \"Item\" and doc.item_table %}\r\n {% for item in doc.item_table %}\r\n <tr>\r\n <td>{{ loop.index }}</td>\r\n <td>{{ item.item or \"\" }}</td>\r\n <td class=\"description-col\">{{ item.item_name or \"\" }}</td>\r\n <td>{{ item.uom or \"\" }}</td>\r\n <td>{{ item.qty or \"\" }}</td>\r\n <td>{% if item.return_inspection_committee == \"For Repair\" %}✓{% endif %}</td>\r\n <td>{% if item.return_inspection_committee == \"For Sale\" %}✓{% endif %}</td>\r\n <td>{% if item.return_inspection_committee == \"For Disposal\" %}✓{% endif %}</td>\r\n <td>{{ item.notes or \"\" }}</td>\r\n </tr>\r\n {% endfor %}\r\n {% endif %}\r\n {% if doc.transfer_type == \"Asset\" and doc.asset_transfer %}\r\n {% for asse in doc.asset_transfer %}\r\n <tr>\r\n <td>{{ loop.index }}</td>\r\n <td>{{ asse.asset or \"\" }}</td>\r\n <td class=\"description-col\">{{ asse.asset_name or \"\" }}</td>\r\n <!--<td>عدد</td>-->\r\n <td>Nos</td>\r\n <td>{{ asse.qty or \"\" }}</td>\r\n <td>{% if asse.return_inspection_committee == \"For Repair\" %}✓{% endif %}</td>\r\n <td>{% if asse.return_inspection_committee == \"For Sale\" %}✓{% endif %}</td>\r\n <td>{% if asse.return_inspection_committee == \"For Disposal\" %}✓{% endif %}</td>\r\n <td>{{ asse.notes or \"\" }}</td>\r\n </tr>\r\n {% endfor %}\r\n {% endif %}\r\n </tbody>\r\n </table>\r\n\r\n <div class=\"signatures-section\">\r\n <table class=\"signatures-table\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>المسؤول في الجهة المرجعة</th>\r\n <th>المستلم / أمين المستودع</th>\r\n <th>مدير إدارة المستودعات</th>\r\n <th>لجنة فحص الرجيع</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td>الاسم</td><td></td><td></td><td></td><td></td>\r\n </tr>\r\n <tr>\r\n <td>التوقيع</td><td></td><td></td><td></td><td></td>\r\n </tr>\r\n <tr>\r\n <td>التاريخ</td><td></td><td></td><td></td><td></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <table style=\"width:100%; border: 0px solid #000;text-align: left\";>\r\n <tr> <td>صاحب الصلاحية ...................</td> </tr>\r\n <tr><td>التوقيع ...........................</td></tr>\r\n </table>\r\n </div>\r\n\r\n</div>\r\n<div style=\"\r\n position: relative;\r\n bottom: 0;\r\n width: 100%;\r\n text-align: right;\r\n font-size: 12px;\r\n padding-top: 10px;\r\n margin-top: 40px;\r\n border-top: 1px solid #000;\r\n\">\r\n الأصل لأمين/ لمأمور المستودع\r\n</div>\r\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-06-17 08:49:08.299491",
"module": "Asset Lite",
"name": "Return Report",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Asset",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<!DOCTYPE html>\r\n<html lang=\"ar\" dir=\"rtl\">\r\n<head>\r\n <meta charset=\"UTF-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n <title>Equipment Decommissioning Report</title>\r\n <style>\r\n body {\r\n font-family: 'Times New Roman', serif;\r\n margin: 0;\r\n padding: 20px;\r\n font-size: 12px;\r\n line-height: 1.4;\r\n direction: rtl;\r\n text-align: right;\r\n }\r\n \r\n .header {\r\n text-align: left;\r\n margin-bottom: 30px;\r\n }\r\n \r\n .title {\r\n text-align: center;\r\n font-size: 14px;\r\n font-weight: bold;\r\n margin: 20px 0;\r\n }\r\n \r\n .department-line {\r\n margin: 15px 0;\r\n font-weight: bold;\r\n }\r\n \r\n .section-title {\r\n font-weight: bold;\r\n margin: 20px 0 10px 0;\r\n }\r\n \r\n \r\n .reasons-section {\r\n margin: 20px 0;\r\n }\r\n \r\n .reasons-table {\r\n width: 60%;\r\n border-collapse: collapse;\r\n margin: 10px 0;\r\n }\r\n \r\n .reasons-table td {\r\n border: 2px solid #000;\r\n padding: 8px;\r\n text-align: center;\r\n font-weight: bold;\r\n width: 16.66%;\r\n height: 30px;\r\n }\r\n \r\n .reason-text {\r\n margin: 8px 0;\r\n text-align: right;\r\n font-size: 11px;\r\n direction: rtl;\r\n word-wrap: break-word;\r\n overflow-wrap: break-word;\r\n }\r\n \r\n .committee-opinion {\r\n margin: 20px 0;\r\n padding: 10px;\r\n border: 1px solid #ccc;\r\n text-align: justify;\r\n }\r\n \r\n .signatures-table {\r\n width: 100%;\r\n border-collapse: collapse;\r\n margin: 20px 0;\r\n }\r\n \r\n .signatures-table td {\r\n padding: 8px;\r\n text-align: right;\r\n vertical-align: top;\r\n font-weight: bold;\r\n direction: rtl;\r\n word-wrap: break-word;\r\n overflow-wrap: break-word;\r\n }\r\n \r\n .signature-title {\r\n font-size: 11px;\r\n height: 30px;\r\n font-weight: bold;\r\n }\r\n \r\n .signature-field {\r\n height: 25px;\r\n font-size: 10px;\r\n }\r\n \r\n .hospital-manager {\r\n text-align: right;\r\n margin: 20px 0;\r\n }\r\n \r\n .hospital-manager-table {\r\n width: 100%;\r\n margin: 0;\r\n border-collapse: collapse;\r\n float: right;\r\n }\r\n \r\n .hospital-manager-table td {\r\n padding: 8px;\r\n text-align: right;\r\n font-weight: bold;\r\n direction: rtl;\r\n word-wrap: break-word;\r\n overflow-wrap: break-word;\r\n }\r\n \r\n .seal-section {\r\n text-align: center;\r\n margin: 30px 0;\r\n font-weight: bold;\r\n }\r\n \r\n .footer {\r\n margin-top: 40px;\r\n text-align: right;\r\n }\r\n \r\n .footer-title {\r\n font-weight: bold;\r\n margin-bottom: 5px;\r\n color: #0066cc;\r\n }\r\n \r\n .footer-name {\r\n font-size: 11px;\r\n color: #0066cc;\r\n }\r\n \r\n .logo {\r\n width: 100px;\r\n height: 60px;\r\n margin: 0;\r\n \r\n border-radius: 50%;\r\n display: inline-flex;\r\n align-items: center;\r\n justify-content: center;\r\n color: white;\r\n font-size: 24px;\r\n }\r\n .equipment-table td{\r\n width:25%; \r\n }\r\n \r\n </style>\r\n</head>\r\n<body>\r\n <!-- Header Section -->\r\n <div class=\"header\">\r\n <div class=\"logo\"><img src='/files/SEMH!.png' ></div>\r\n </div>\r\n\r\n <!-- Title -->\r\n <div class=\"title\">\r\n محضر تكهين / إبعاد عن الخدمة\r\n </div>\r\n\r\n <!-- Department -->\r\n <div class=\"department-line\">\r\n القسم : <span style=\"border-bottom: 1px solid #000; min-width: 200px; display: inline-block;\">{{ doc.department or \"\" }}</span>\r\n </div>\r\n\r\n <!-- Equipment Data Section -->\r\n <div class=\"section-title\">0-1 بيانات الجهاز المطلوب تكهينه :</div>\r\n \r\n <table class=\"equipment-table\" style='width:100%;border:1px solid black'>\r\n <tr style='border:1px solid black'>\r\n <!--<td class=\"value\" >الرقم التسلسلي</td>-->\r\n <!--<td class=\"value\" style='border:1px solid black'>{{ doc.custom_serial_number or \"\" }}</td>-->\r\n <td class=\"value\" >اسم الجهاز</td>\r\n <td class=\"value\" style='border:1px solid black'>{{ doc.name or \"\" }}</td>\r\n <td class=\"value\" >الرقم التسلسلي</td>\r\n <td class=\"value\" style='border:1px solid black'>{{ doc.custom_serial_number or \"\" }}</td>\r\n </tr>\r\n <tr style='border:1px solid black'>\r\n <td class=\"value\" >الشركة الصانعة</td>\r\n <td class=\"value\" style='border:1px solid black'>{{ doc.custom_manufacturer or \"\" }}</td>\r\n <td class=\"value\" >تاريخ التوريد</td>\r\n <td class=\"value\" style='border:1px solid black'>{{ frappe.utils.formatdate(doc.creation, \"dd/MM/yyyy\") }}</td>\r\n \r\n </tr>\r\n <tr style='border:1px solid black'>\r\n <td class=\"value\">الطراز/الموديل</td>\r\n <td class=\"value\" style='border:1px solid black'>{{ doc.custom_model or \"\" }}</td>\r\n <td class=\"value\" >مدة استخدام الجهاز</td>\r\n <td class=\"value\" style='border:1px solid black'>{{ doc.usage_period or \"\" }}</td>\r\n \r\n </tr>\r\n </table>\r\n\r\n <!-- Reasons Section -->\r\n <div class=\"section-title\">2- أسباب طلب التكهين / إبعاد عن الخدمة :</div>\r\n \r\n <table class=\"reasons-table\">\r\n <tr>\r\n <!--<td>و</td>-->\r\n <!--<td>هـ</td>-->\r\n <!--<td>د</td>-->\r\n <!--<td>ج</td>-->\r\n <!--<td>ب</td>-->\r\n <td>أ</td>\r\n <td>ب</td>\r\n <td>ج</td>\r\n <td>د</td>\r\n <td>هـ</td>\r\n <td>و</td>\r\n </tr>\r\n <tr>\r\n <td>&nbsp;</td>\r\n <td>&nbsp;</td>\r\n <td>&nbsp;</td>\r\n <td>&nbsp;</td>\r\n <td>&nbsp;</td>\r\n <td>&nbsp;</td>\r\n </tr>\r\n </table>\r\n\r\n <div class=\"reason-text\">\r\n أ) تكاليف قطع الغيار المطلوبة للإصلاح أكثر من نصف قيمة الجهاز (مرفق عرض أسعار قطع الغيار اللازمة للإصلاح).\r\n </div>\r\n <div class=\"reason-text\">\r\n ب) توقف انتاج الجهاز وقطع الغيار من الشركة الصانعة حسب تقرير المورد.\r\n </div>\r\n <div class=\"reason-text\">\r\n ج) جهاز قديم وتم استخدامه أكثر من عشر سنوات.\r\n </div>\r\n <div class=\"reason-text\">\r\n د) ليس للجهاز وكيل معروف بالمملكة في الوقت الحالي ولا يمكن توفير قطع غيار للجهاز.\r\n </div>\r\n <div class=\"reason-text\">\r\n ه) تكرار أعطال الجهاز وإصلاحه على فترات متقاربة.\r\n </div>\r\n <div class=\"reason-text\">\r\n و) أخرى : <span style=\"border-bottom: 1px solid #000; min-width: 300px; display: inline-block;\">{{ doc.other_reason or \"\" }}</span>\r\n </div>\r\n\r\n <!-- Committee Opinion -->\r\n <div class=\"section-title\">3- مرئيات اللجنة:</div>\r\n <div class=\"reason-text\">\r\n <!--<b>-->\r\n بناءاً على الفقرة أ. ج. و. يتم تكهين الجهاز وادراجه ضمن بنود الإحلال المطلوبة للمستشفى.\r\n <!--</b>-->\r\n </div>\r\n\r\n <!-- Signatures Section -->\r\n <div class=\"section-title\">توقيع اللجنة :</div>\r\n \r\n <table class=\"signatures-table\">\r\n <tr>\r\n <td class=\"signature-title\">المقاول</td>\r\n <td class=\"signature-title\">رئيس القسم</td>\r\n <td class=\"signature-title\">مدير الصيانة الطبية</td>\r\n <td class=\"signature-title\">مدير مراقبة المخزون</td>\r\n </tr>\r\n <tr>\r\n <td class=\"signature-field\">الإسم :</td>\r\n <td class=\"signature-field\">الإسم :</td>\r\n <td class=\"signature-field\">الإسم :</td>\r\n <td class=\"signature-field\">الإسم :</td>\r\n </tr>\r\n <tr>\r\n <td class=\"signature-field\">التوقيع :</td>\r\n <td class=\"signature-field\">التوقيع :</td>\r\n <td class=\"signature-field\">التوقيع :</td>\r\n <td class=\"signature-field\">التوقيع :</td>\r\n </tr>\r\n <tr>\r\n <td class=\"signature-field\">التاريخ :</td>\r\n <td class=\"signature-field\">التاريخ :</td>\r\n <td class=\"signature-field\">التاريخ :</td>\r\n <td class=\"signature-field\">التاريخ :</td>\r\n </tr>\r\n </table>\r\n\r\n <!-- Hospital Manager Section -->\r\n <div class=\"hospital-manager\">\r\n <table class=\"hospital-manager-table\">\r\n <tr>\r\n <td class=\"signature-title\">مدير مستشفى</td>\r\n </tr>\r\n <tr>\r\n <td class=\"signature-field\">الإسم :</td>\r\n </tr>\r\n <tr>\r\n <td class=\"signature-field\">التوقيع :</td>\r\n </tr>\r\n <tr>\r\n <td class=\"signature-field\">التاريخ :</td>\r\n </tr>\r\n <tr>\r\n <td class=\"signature-field\">الختم :</td>\r\n </tr>\r\n </table>\r\n </div>\r\n\r\n <!-- Arabic text after last table -->\r\n <div style=\"clear: both; text-align: left; margin: 20px 0;\">\r\n <div style=\"font-weight: bold; margin-bottom: 5px;\">الصيانة الطبية بتجمع الجوف الصحي</div>\r\n <div>المهندس/عبد العزيز زايد الخمعلي</div>\r\n </div>\r\n\r\n <!-- Footer -->\r\n <div class=\"footer\">\r\n <div style=\"color: #0066cc; font-weight: bold;\">تجمع الجوف الصحي</div>\r\n <div style=\"color: #0066cc;\">Aljouf Health Cluster</div>\r\n </div>\r\n</body>\r\n</html>",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-07-08 09:23:55.165128",
"module": "Assets",
"name": "Dismantelling Report",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "PM Schedule Generator",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "{% set days_map = {\"Daily\": 1, \"Weekly\": 7} %}\r\n{% set months_map = {\r\n \"Monthly\": 1, \"Quarterly\": 3, \"Half-yearly\": 6,\r\n \"Yearly\": 12, \"2 Yearly\": 24, \"3 Yearly\": 36\r\n} %}\r\n\r\n<style>\r\n h2 { text-align: center; margin: 0 0 4mm; }\r\n table { width: 100%; border-collapse: collapse; font-size: 9pt; }\r\n th, td { border: 0.1mm solid #777; padding: 2mm 3mm; }\r\n th { background: #f5f5f5; }\r\n</style>\r\n\r\n<h2>Preventive Maintenance Schedule<br>\r\n <small>{{ doc.name }}</small>\r\n</h2>\r\n\r\n<h3>Asset&nbsp;Details</h3>\r\n\r\n<table>\r\n <thead>\r\n <tr>\r\n <th style=\"width:4mm;\">#</th>\r\n <th>Asset ID</th>\r\n <th>Asset Name</th>\r\n <th>Serial Number</th>\r\n <th>Manufacturer</th>\r\n <th>Model</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n\r\n {% if doc.maintenance_entries %}\r\n {% for m in doc.maintenance_entries %}\r\n {% set asset_doc = frappe.get_doc(\"Asset\", m.asset) %}\r\n <tr>\r\n <td>{{ loop.index }}</td>\r\n <td>{{ m.asset }}</td> \r\n <td>{{ m.asset_name }}</td> \r\n <td>{{asset_doc.custom_serial_number or \"\" }}</td>\r\n <td>{{asset_doc.custom_manufacturer or \"\" }}</td>\r\n <td>{{asset_doc.custom_model or \"\" }}</td>\r\n \r\n </tr>\r\n {% endfor %}\r\n {% else %}\r\n <tr><td colspan=\"6\">No asset rows in maintenance_entries.</td></tr>\r\n {% endif %}\r\n\r\n </tbody>\r\n</table>\r\n<br>\r\n<h3>PM&nbsp;Schedule</h3>\r\n<table>\r\n <thead>\r\n <tr>\r\n <th style=\"width:4mm;\">#</th>\r\n <th>Due Date</th>\r\n <th>Periodicity</th>\r\n <th>Assigned To</th>\r\n <th>Maintenance Type</th>\r\n <th>Status</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n\r\n {% if doc.start_date and doc.end_date and doc.periodicity %}\r\n {% set sd = doc.start_date %}\r\n {% set ed = doc.end_date %}\r\n\r\n {# ---------------- daybased periodicities ---------------- #}\r\n {% if doc.periodicity in days_map %}\r\n {% set step = days_map[doc.periodicity] %}\r\n {# start at the FIRST interval, i.e. skip n = 0 #}\r\n {% for n in range(step, frappe.utils.date_diff(ed, sd)+1, step) %}\r\n <tr>\r\n <td>{{ loop.index }}</td>\r\n <td>{{ frappe.format(frappe.utils.add_days(sd, n), {'fieldtype': 'Date'}) }}</td>\r\n <td>{{ doc.periodicity }}</td>\r\n <td>{{ doc.assign_to or \"\" }}</td>\r\n <td>PM</td>\r\n <td>Planned</td>\r\n </tr>\r\n {% endfor %}\r\n\r\n {# -------------- monthbased periodicities ---------------- #}\r\n {% elif doc.periodicity in months_map %}\r\n {% set step = months_map[doc.periodicity] %}\r\n {% set month_diff = frappe.utils.month_diff(ed, sd) %}\r\n {% set occ = (month_diff // step) + 1 %}\r\n {# start at i = 1 to skip the start date itself #}\r\n {% for i in range(1, occ) %}\r\n <tr>\r\n <td>{{ loop.index }}</td>\r\n <td>{{ frappe.format(frappe.utils.add_months(sd, i * step), {'fieldtype': 'Date'}) }}</td>\r\n <td>{{ doc.periodicity }}</td>\r\n <td>{{ doc.assign_to or \"\" }}</td>\r\n <td>PM</td>\r\n <td>Planned</td>\r\n </tr>\r\n {% endfor %}\r\n\r\n {% else %}\r\n <tr><td colspan=\"4\">Unknown periodicity: {{ doc.periodicity }}</td></tr>\r\n {% endif %}\r\n {% else %}\r\n <tr><td colspan=\"4\">Start Date, End Date, or Periodicity is missing.</td></tr>\r\n {% endif %}\r\n\r\n </tbody>\r\n</table>\r\n\r\n<!--<p style=\"margin-top:5mm; font-size:8pt; text-align:right;\">-->\r\n<!-- Printed on {{ frappe.format(frappe.utils.nowdate(), {'fieldtype': 'Date'}) }}-->\r\n<!--</p>-->\r\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-07-10 11:51:47.806131",
"module": "Asset Lite",
"name": "PM Schedule Generator",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Asset",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<div style=\"text-align: center; padding: 40px;\">\r\n <img src=\"/files/Stay Plugged.jpg\" style=\"max-width: 100%; height: auto;\">\r\n</div>\r\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-08-08 17:56:39.086119",
"module": "Asset Lite",
"name": "Stay Plugged",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Asset Maintenance Log",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n <meta charset=\"UTF-8\">\r\n <title>Electrical Safety Check</title>\r\n <style>\r\n body {\r\n font-family: Arial, sans-serif;\r\n padding: 20px;\r\n background: white;\r\n text-align: center;\r\n }\r\n\r\n .safety-check {\r\n width: 320px;\r\n background-color: #3d8638;\r\n color: black;\r\n padding: 12px;\r\n border: 2px solid #000;\r\n margin: 0 auto;\r\n text-align: left;\r\n }\r\n\r\n .block {\r\n border-bottom: 2px solid #000;\r\n margin-bottom: 10px;\r\n padding-bottom: 10px;\r\n }\r\n\r\n .title {\r\n font-weight: bold;\r\n font-size: 18px;\r\n text-align: left;\r\n margin-bottom: 10px;\r\n }\r\n\r\n .field-row {\r\n display: flex;\r\n justify-content: space-between;\r\n border-top: 1px solid #000;\r\n padding: 5px 0;\r\n }\r\n\r\n .label {\r\n flex: 1;\r\n font-size: 14px;\r\n padding-right: 10px;\r\n }\r\n\r\n .value {\r\n flex: 1;\r\n border-left: 1px solid #000;\r\n padding-left: 10px;\r\n }\r\n\r\n .arabic {\r\n font-size: 22px;\r\n font-weight: bold;\r\n margin-top: 15px;\r\n direction: rtl;\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n\r\n <!-- Safety Check Box -->\r\n <div class=\"safety-check\">\r\n <!-- First Block -->\r\n <div class=\"block\">\r\n <div class=\"title\">ELECTRICAL SAFETY CHECK</div>\r\n <div class=\"field-row\">\r\n <div class=\"label\">Tested By</div>\r\n <div class=\"value\">{{ doc.custom_serviced_by or ' ' }}</div>\r\n </div>\r\n <div class=\"field-row\">\r\n <div class=\"label\">Date</div>\r\n <div class=\"value\">{{ doc.completion_date or ' ' }}</div>\r\n </div>\r\n <div class=\"field-row\">\r\n <div class=\"label\">Due Date</div>\r\n <div class=\"value\">{{ doc.due_date or ' ' }}</div>\r\n </div>\r\n </div>\r\n\r\n <!-- Second Block -->\r\n <!--<div class=\"block\">-->\r\n <!-- <div class=\"title\">ELECTRICAL SAFETY CHECK</div>-->\r\n <!-- <div class=\"field-row\">-->\r\n <!-- <div class=\"label\">Tested By</div>-->\r\n <!-- <div class=\"value\">{{ doc.custom_serviced_by or ' ' }}</div>-->\r\n <!-- </div>-->\r\n <!-- <div class=\"field-row\">-->\r\n <!-- <div class=\"label\">Date</div>-->\r\n <!-- <div class=\"value\">{{ doc.completion_date or ' ' }}</div>-->\r\n <!-- </div>-->\r\n <!-- <div class=\"field-row\">-->\r\n <!-- <div class=\"label\">Due Date</div>-->\r\n <!-- <div class=\"value\">{{ doc.due_date or ' ' }}</div>-->\r\n <!-- </div>-->\r\n <!--</div>-->\r\n </div>\r\n\r\n <!-- Arabic Text Outside -->\r\n <div class=\"arabic\">إختبارات السلامة الكهربائية</div>\r\n\r\n</body>\r\n</html>\r\n",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-08-08 17:57:12.255909",
"module": "Asset Lite",
"name": "Safety check",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
},
{
"absolute_value": 0,
"align_labels_right": 0,
"css": null,
"custom_format": 1,
"default_print_language": "en",
"disabled": 0,
"doc_type": "Asset Maintenance Log",
"docstatus": 0,
"doctype": "Print Format",
"font": null,
"font_size": 14,
"format_data": null,
"html": "<style>\n :root {\n --yellow-bg: #fef79c;\n --green-bg: #00865b;\n --red-bg: #c6151d;\n --title-yellow: #fde700;\n --radius: 12px;\n font-family: system-ui, system-ui,-apple-system,BlinkMacSystemFont,sans-serif;\n }\n body {\n margin: 0;\n padding: 0;\n background: var(--yellow-bg);\n }\n /*.container {*/\n /* max-width: 1000px;*/\n /* margin: 0 auto;*/\n /* padding: 24px 16px 8px;*/\n /* box-sizing: border-box;*/\n /*background: var(--yellow-bg); */\n /*}*/\n .container {\n max-width: 1200px; /* wider */\n margin: 0 auto;\n padding: 60px 40px 60px; /* more space top/bottom and sides */\n box-sizing: border-box;\n background: var(--yellow-bg);\n}\n .logo-row {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n margin-bottom: 4px;\n }\n .logo {\n width: 120px;\n height: auto;\n object-fit: contain;\n }\n \n .sticker {\n position: relative;\n border-radius: 10px;\n padding: 16px 24px 28px;\n display: flex;\n flex-direction: column;\n gap: 14px;\n color: white;\n box-sizing: border-box;\n /*border: 2px solid #000;*/\n overflow: hidden;\n margin-top: 6px; /* separate from logos */\n }\n /*.sticker.white { background: white; color: #ffffff; }*/\n .sticker.white { background: white; color: #000000; } /* Changed from #ffffff to #000000 */\n .sticker.green { background: var(--green-bg); }\n .sticker.red { background: var(--red-bg); }\n \n .title-block {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-bottom: 6px;\n margin-top: 4px;\n }\n .title {\n margin: 0;\n font-size: 25px;\n font-weight: 800;\n line-height: 1.0;\n }\n .sticker.green .title,\n .sticker.red .title { color: var(--title-yellow); }\n .sticker.white .title { color: #003366; }\n \n .sticker.blue {\n background: #00b0f0; /* or any other blue you prefer */\n color: white;\n}\n\n.sticker.blue .title {\n color: #fff700; /* Yellow or any high contrast color */\n}\n\n\n .title-underline {\n margin-top: 6px;\n width: 100%;\n max-width: 540px;\n height: 10px;\n background: white;\n border-radius: 5px;\n }\n \n .fields {\n display: flex;\n flex-wrap: wrap;\n gap: 14px;\n margin-top: 2px;\n }\n .field-group {\n flex: 1 1 260px;\n display: flex;\n gap: 8px;\n align-items: center;\n font-weight: 600;\n min-width: 220px;\n }\n .field-label {\n /*min-width: 140px;*/\n font-size: 16px;\n white-space: nowrap;\n }\n .field-value {\n flex: 1;\n background: white;\n border: 2px solid #000;\n border-radius: 14px;\n padding: 10px 16px;\n font-weight: 500;\n font-size: 14px;\n color: #000;\n box-sizing: border-box;\n min-height: 36px;\n }\n \n .ppm-box {\n margin-top: 18px;\n background: #d4edda;\n border: 2px solid #00a651;\n border-radius: 10px;\n padding: 14px 18px;\n width: 100%;\n box-sizing: border-box;\n }\n .ppm-box h3 {\n margin: 0 0 6px;\n text-align: center;\n font-size: 22px;\n font-weight: 700;\n }\n .ppm-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n }\n .ppm-table td {\n padding: 6px 6px;\n vertical-align: top;\n }\n .ppm-label {\n font-weight: 600;\n width: 160px;\n white-space: nowrap;\n }\n.logo-row {\n display: flex;\n justify-content: space-between;\n align-items: flex-start; \n width: 100%;\n padding: 10px 20px; \n box-sizing: border-box;\n}\n\n.logo-left {\n flex: 0 0 auto;\n text-align: center; /* This centers both logo and text */\n display: flex;\n flex-direction: column;\n /*width: 200px;*/\n /*height: 120px; */\n align-items: center; /* Centers logo horizontally within container */\n}\n.logo-right {\n flex: 0 0 auto;\n text-align: center; /* This centers both logo and text */\n display: flex;\n flex-direction: column;\n align-items: center; /* Centers logo horizontally within container */\n}\n\n.logo-row .logo {\n height: 80px;\n width: auto;\n max-width: 250px;\n margin-bottom: 5px; /* Space between logo and text */\n}\n\n.logo-text {\n font-size: 14px;\n color: #333;\n line-height: 1.2;\n text-align: center; /* Ensures text is centered */\n}\n\n.logo-text.arabic {\n font-family: Arial, sans-serif;\n font-weight: bold;\n \n}\n\n.logo-text.english {\n font-family: Arial, sans-serif;\n color: #666;\n}\n\n/* Alternative approach using absolute positioning */\n.logo-row-absolute {\n position: relative;\n width: 100%;\n height: 120px; /* Increased height to accommodate text */\n}\n\n.logo-row-absolute .logo-left {\n position: absolute;\n top: 10px;\n left: 20px;\n text-align: center;\n}\n\n.logo-row-absolute .logo-right {\n position: absolute;\n top: 10px;\n right: 20px;\n text-align: center;\n}\n\n.logo-row-absolute .logo {\n height: 60px;\n width: auto;\n display: block;\n margin: 0 auto 5px auto; /* Centers logo and adds bottom margin */\n}\n\n</style>\n \n{# fetch docs as before #}\n{% set aml = doc %}\n{% set asset = None %}\n{% if aml.asset_maintenance %}\n {% set asset = frappe.get_doc(\"Asset\", aml.asset_maintenance) %}\n{% endif %}\n \n{% set custom_class = asset.custom_class or \"\" %}\n{% set service = asset.custom_service_agreement or \"\" %}\n{% set sticker_class = \"white\" %}\n\n{% if service == \"Warranty\" %}\n {% set sticker_class = \"blue\" %}\n{% elif \"Class A\" in custom_class %}\n {% set sticker_class = \"red\" %}\n{% elif \"Class B\" in custom_class %}\n {% set sticker_class = \"green\" %}\n{% elif \"Class C\" in custom_class %}\n {% set sticker_class = \"white\" %}\n{% endif %}\n\n\n \n<div style=\"background: var(--yellow-bg); padding: 25px 0;\">\n<div class=\"container\">\n <div class=\"logo-row\">\n <div class=\"logo-left\">\n <img src=\"{{ frappe.utils.get_url('/files/SEMH!.png') }}\" alt=\"Aljouf Health Cluster\" class=\"logo\">\n <div class=\"logo-text arabic\" style=\"color: blue; font-size: 18px;\">تجمع الجوف الصحي</div>\n <div class=\"logo-text english\" style=\"color: blue;font-size: 18px;\">Aljouf Health Cluster</div>\n </div>\n <div class=\"logo-right\">\n <img src=\"{{ frappe.utils.get_url('/files/aljouf-wo.jpg') }}\" alt=\"Samama\" class=\"logo\">\n <div class=\"logo-text arabic\" style=\"color: black ;font-size: 14px;\">قطاع الصيانة الطبية</div>\n <div class=\"logo-text english\" style=\"color: black ;font-size: 14px;\">BIO MEDICAL ENG DIV</div>\n </div>\n</div>\n \n <div class=\"sticker {{ sticker_class }}\">\n <div class=\"title-block\">\n <p class=\"title\">Biomedical Maintenance Department</p>\n <!--<div class=\"title-underline\"></div>-->\n </div>\n \n <div class=\"fields\">\n <div class=\"field-group\">\n <div class=\"field-label\">Department :</div>\n <div class=\"field-value\">\n {% if asset and asset.department %}\n {{ asset.department }}\n {% else %}\n {{ aml.department or \"\" }}\n {% endif %}\n </div>\n </div>\n <div class=\"field-group\">\n <div class=\"field-label\">Equip. code :</div>\n <div class=\"field-value\">{{ aml.asset_maintenance or \"\" }}</div>\n </div>\n </div>\n \n <div class=\"fields\">\n <div class=\"field-group\" style=\"flex:2;\">\n <div class=\"field-label\">Machine/Equipment :</div>\n <div class=\"field-value\">\n {% if asset %}\n {{ asset.asset_name or asset.custom_asset_names or \"\" }}\n {% else %}\n {{ aml.custom_asset_names or \"\" }}\n {% endif %}\n </div>\n </div>\n </div>\n \n <div class=\"fields\">\n <div class=\"field-group\">\n <div class=\"field-label\">Model No. :</div>\n <div class=\"field-value\">{{asset.custom_model or \"\"}}</div>\n </div>\n <div class=\"field-group\">\n <div class=\"field-label\">Serial No. :</div>\n <div class=\"field-value\">{{ asset.custom_serial_number or \"\" }}</div>\n </div>\n </div>\n \n <div class=\"fields\">\n <div class=\"field-group\">\n <div class=\"field-label\">Last PPM :</div>\n <div class=\"field-value\">\n {% if aml.previous_ppm_date %}\n {{ aml.previous_ppm_date }}\n {% else %}\n {{ aml.completion_date or \"\" }}\n {% endif %}\n </div>\n </div>\n <div class=\"field-group\">\n <div class=\"field-label\">Next PPM :</div>\n <div class=\"field-value\">{{ aml.next_ppm_date or aml.due_date or \"\" }}</div>\n </div>\n </div>\n \n <div class=\"fields\">\n <div class=\"field-group\" style=\"flex:1 1 100%;\">\n <div class=\"field-label\">PPM Done By :</div>\n <div class=\"field-value\">{{ aml.custom_serviced_by or \"\" }}</div>\n </div>\n </div>\n \n <!--<div class=\"ppm-box\">-->\n <!-- <h3>PPM</h3>-->\n <!-- <table class=\"ppm-table\">-->\n <!-- <tr>-->\n <!-- <td class=\"ppm-label\">Asset ID :</td>-->\n <!-- <td>{{ aml.asset_maintenance or \"\" }}</td>-->\n <!-- </tr>-->\n <!-- <tr>-->\n <!-- <td class=\"ppm-label\">Asset Name :</td>-->\n <!-- <td>-->\n <!-- {% if asset %}-->\n <!-- {{ asset.asset_name or asset.custom_asset_names or \"\" }}-->\n <!-- {% else %}-->\n <!-- {{ aml.custom_asset_names or \"\" }}-->\n <!-- {% endif %}-->\n <!-- </td>-->\n <!-- </tr>-->\n <!-- <tr>-->\n <!-- <td class=\"ppm-label\">PPM Done Date :</td>-->\n <!-- <td>{{ aml.completion_date or \"\" }}</td>-->\n <!-- </tr>-->\n <!-- <tr>-->\n <!-- <td class=\"ppm-label\">PPM Next Due Date :</td>-->\n <!-- <td>{{ aml.due_date or \"\" }}</td>-->\n <!-- </tr>-->\n <!-- <tr>-->\n <!-- <td class=\"ppm-label\">Engineer :</td>-->\n <!-- <td>{{ aml.custom_serviced_by or \"\" }}</td>-->\n <!-- </tr>-->\n <!-- </table>-->\n <!--</div>-->\n </div>\n</div>\n</div>",
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
"modified": "2025-08-08 17:59:32.554668",
"module": "Asset Lite",
"name": "PPM Assets",
"page_number": "Hide",
"print_format_builder": 0,
"print_format_builder_beta": 0,
"print_format_type": "Jinja",
"raw_commands": null,
"raw_printing": 0,
"show_section_headings": 0,
"standard": "No"
}
]