From 440b8335e97d7b30388ef90c6cd5d7b6c8f14a00 Mon Sep 17 00:00:00 2001 From: Saralrat Date: Thu, 23 Jan 2025 13:44:07 +0700 Subject: [PATCH] Add Material Transfer Request form --- .../material_transfer_request_mh/__init__.py | 0 .../material_transfer_request_mh.json | 32 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 menghua_co/menghua_co/print_format/material_transfer_request_mh/__init__.py create mode 100644 menghua_co/menghua_co/print_format/material_transfer_request_mh/material_transfer_request_mh.json diff --git a/menghua_co/menghua_co/print_format/material_transfer_request_mh/__init__.py b/menghua_co/menghua_co/print_format/material_transfer_request_mh/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/menghua_co/menghua_co/print_format/material_transfer_request_mh/material_transfer_request_mh.json b/menghua_co/menghua_co/print_format/material_transfer_request_mh/material_transfer_request_mh.json new file mode 100644 index 0000000..bc97cdd --- /dev/null +++ b/menghua_co/menghua_co/print_format/material_transfer_request_mh/material_transfer_request_mh.json @@ -0,0 +1,32 @@ +{ + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2025-01-23 12:49:07.987238", + "css": "body {\n padding: 0mm 0 5mm !important;\n}\n.print-format {\n font-family: \"TH Sarabun New\";\n font-size: 16px;\n line-height: 1;\n margin-left: 5mm;\n margin-right: 5mm;\n}\n.print-format td, .print-format th {\n padding: 5px !important;\n}\n.print-format-preview{\n padding: 30px;\n}\ntable {\n width: 100%;\n}\n.summary, .note {\n page-break-inside: avoid;\n}\n.logo {\n width: 100px;\n}\n.text-color {\n color: #B048B5 !important;\n}\n.head-col {\n background-color: #B048B5;\n color: #FFFFFF !important;\n font-weight: bold !important;\n border-right: 1px solid #FFFFFF;\n}\n.with-border {\n border-bottom: 2px solid #d3d3d3;\n}\n.inv-detail h1 {\n margin-bottom: 0;\n}\n.inv-detail {\n line-height: 1.5;\n}\n.col-4, .col-6, .col-7 {\n width: 30%;\n} \n.col-1 {\n width: 5%;\n}\n.col-2 {\n width: 5%;\n}\n.col-3 {\n width: 5%;\n}\n.col-5 {\n width: 10%;\n}\n.inline-footer {\n border-top: 2px solid #d3d3d3;\n line-height: 2;\n}\n.original, .copy {\n display: none;\n}\n.form-container {\n line-height: 2;\n}\n.static-checkbox {\n width: 20px; \n height: 20px; \n border: 1px solid black; \n display: inline-block; \n margin-right: 10px; \n background-color: white;\n}\n.footer {\n visibility: hidden;\n}", + "custom_format": 1, + "default_print_language": "th", + "disabled": 0, + "doc_type": "Material Request", + "docstatus": 0, + "doctype": "Print Format", + "font_size": 14, + "html": "\n\n\n\n{% set company = frappe.db.get_value(\n \"Company\",\n {\"name\": doc.company},\n [\"company_logo\", \"company_name\", \"tax_id\"],\n as_dict=True) %}\n{% set parent_company_address = frappe.db.get_all(\n \"Dynamic Link\",\n {\"link_doctype\": \"Company\", \"link_name\": company.company_name},\n pluck=\"parent\") %}\n{% set company_address = frappe.db.get_value(\n \"Address\",\n {\"name\": (\"in\", parent_company_address), \"address_type\": \"Permanent\"},\n [\"address_line1\", \"address_line2\", \"city\", \"county\", \"state\", \"pincode\", \"phone\"],\n as_dict=True) %}\n{% set user = frappe.db.get_value(\"User\", doc.owner, \"full_name\") %}\n\n{% if doc.material_request_type == \"Material Transfer\" %} \n
\n
\n
\n
\n
\n
\n \"Company\n
\n
\n
\n
\n
\n

\n {{ company.company_name or \"-\" }}\n

\n

\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\n {% if company_address %}\n {{ company_address.address_line1 or \"\"}}\n {{ company_address.address_line2 or \"\"}}\n {{ company_address.city or \"\"}}\n {{ company_address.county or \"\"}}\n {{ company_address.state or \"\"}}\n {{ company_address.pincode or \"\"}}\n {% else %}\n -\n {% endif %}\n

\n

\n \u0e40\u0e25\u0e02\u0e1b\u0e23\u0e30\u0e08\u0e33\u0e15\u0e31\u0e27\u0e1c\u0e39\u0e49\u0e40\u0e2a\u0e35\u0e22\u0e20\u0e32\u0e29\u0e35 {{ company.tax_id or \"-\" }}\n

\n

\n \u0e42\u0e17\u0e23. {{ company_address.phone or \"-\" }}\n

\n
\n
\n
\n
\n
\n
\n

\n \n \u0e43\u0e1a\u0e02\u0e2d\u0e22\u0e49\u0e32\u0e22\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\n \n
\n \n Material Transfer Request\n \n

\n

\n

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \u0e40\u0e25\u0e02\u0e17\u0e35\u0e48\n
\n
\n {{ doc.name or \"-\" }}\n
\n
\n
\n
\n \u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\n
\n
\n {{ doc.transaction_date and frappe.utils.getdate(doc.transaction_date).strftime(\"%d/%m/%Y\") or \"-\" }}\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

\n \u0e15\u0e49\u0e19\u0e17\u0e32\u0e07\n

\n
\n
\n {{doc.set_from_warehouse or '-'}}\n
\n
\n
\n
\n

\n \u0e1b\u0e25\u0e32\u0e22\u0e17\u0e32\u0e07\n

\n
\n
\n {{doc.set_warehouse or '-'}}\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n {% for item in doc.items %}\n \n \n \n \n \n \n {% endfor %}\n \n
#\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e08\u0e33\u0e19\u0e27\u0e19
\n {{ item.idx }}\n \n {{ item.item_code }} : {{ item.item_name }}\n \n {{ item.qty | int if item.qty - item.qty | int == 0 else \"{:,.2f}\".format(item.qty) }}\n \n {{ item.uom }}\n
\n
\n
\n
\n

\n \u0e2b\u0e21\u0e32\u0e22\u0e40\u0e2b\u0e15\u0e38\n

\n
\n {{ doc.terms or \"-\" }}\n
\n
\n
\n
\n
\n \n
\n
\n

\n
\n
\n
\n

{{ user or \"-\" }}

\n

\n

\u0e1c\u0e39\u0e49\u0e08\u0e31\u0e14\u0e17\u0e33

\n
\n
\n {{ doc.transaction_date and frappe.utils.getdate(doc.transaction_date).strftime(\"%d/%m/%Y\") or \"-\" }}\n

\n

\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48

\n
\n
\n
\n
\n \"\u0e20\u0e32\u0e1e\u0e17\u0e35\u0e48\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c\n
\n
\n

\n
\n
\n

\n

\n

\u0e1c\u0e39\u0e49\u0e08\u0e31\u0e14\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32

\n
\n
\n

\n

\n

\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48

\n
\n
\n
\n
\n

\n
\n \n {% endif %} ", + "idx": 0, + "line_breaks": 0, + "margin_bottom": 15.0, + "margin_left": 15.0, + "margin_right": 15.0, + "margin_top": 15.0, + "modified": "2025-01-23 13:50:50.809155", + "modified_by": "Administrator", + "module": "Menghua Co", + "name": "Material Transfer Request MH", + "owner": "Administrator", + "page_number": "Hide", + "print_format_builder": 0, + "print_format_builder_beta": 0, + "print_format_type": "Jinja", + "raw_printing": 0, + "show_section_headings": 0, + "standard": "Yes" +} \ No newline at end of file