From d0db81c6bbb20cdca89af3b8a26747a5590584cc Mon Sep 17 00:00:00 2001 From: Jumana-K Date: Sat, 3 Feb 2024 11:51:50 +0530 Subject: [PATCH] feat:created print format for purchase --- .../design_details/design_details.json | 5 ++- aumms/aumms/print_format/__init__.py | 0 aumms/aumms/print_format/purchase/__init__.py | 0 .../aumms/print_format/purchase/purchase.json | 31 +++++++++++++++++++ aumms/aumms/print_format/test/__init__.py | 0 aumms/aumms/print_format/test/test.json | 31 +++++++++++++++++++ 6 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 aumms/aumms/print_format/__init__.py create mode 100644 aumms/aumms/print_format/purchase/__init__.py create mode 100644 aumms/aumms/print_format/purchase/purchase.json create mode 100644 aumms/aumms/print_format/test/__init__.py create mode 100644 aumms/aumms/print_format/test/test.json diff --git a/aumms/aumms/doctype/design_details/design_details.json b/aumms/aumms/doctype/design_details/design_details.json index 80fdb309..7648bfb9 100644 --- a/aumms/aumms/doctype/design_details/design_details.json +++ b/aumms/aumms/doctype/design_details/design_details.json @@ -15,6 +15,9 @@ "is_customer_provided", "dr_required", "attach" + "is_customer_provided", + "dr_required", + "attach" ], "fields": [ { @@ -53,7 +56,7 @@ { "default": "0", "fieldname": "is_customer_provided", - "fieldtype": "Check", + "fieldtype": "Data", "in_list_view": 1, "label": "Is Customer Provided" }, diff --git a/aumms/aumms/print_format/__init__.py b/aumms/aumms/print_format/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/aumms/aumms/print_format/purchase/__init__.py b/aumms/aumms/print_format/purchase/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/aumms/aumms/print_format/purchase/purchase.json b/aumms/aumms/print_format/purchase/purchase.json new file mode 100644 index 00000000..c702e613 --- /dev/null +++ b/aumms/aumms/print_format/purchase/purchase.json @@ -0,0 +1,31 @@ +{ + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2023-08-30 10:17:03.495047", + "custom_format": 1, + "default_print_language": "en", + "disabled": 0, + "doc_type": "Jewellery Invoice", + "docstatus": 0, + "doctype": "Print Format", + "font_size": 14, + "html": "\n\n\n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Sales Estimate
{{ _(\"Customer Name\") }}: {{ doc.customer_name }}
{{ _(\"Date\") }}: {{ doc.get_formatted(\"transaction_date\") }}
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {%- for item in doc.old_jewellery_items -%}\n \n \n \n \n \n \n \n \n \n {%- endfor -%}\n
Old Gold Received
ITEMPurityGr. WtStone Wt.Net WeightRateAmount
Old Gold Received{{ item.purity }}0.0000.0000.000{{ item.rate }}{{ item.amount }}
\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n
Old received{{ doc.total_old_gold_weight }}
Balance Receivable{{ doc.total_old_gold_amount }}
Authorised Signatory
\n
\n\n\n", + "idx": 0, + "line_breaks": 0, + "margin_bottom": 15.0, + "margin_left": 15.0, + "margin_right": 15.0, + "margin_top": 15.0, + "modified": "2024-02-03 11:46:50.984947", + "modified_by": "Administrator", + "module": "AuMMS", + "name": "Purchase", + "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 diff --git a/aumms/aumms/print_format/test/__init__.py b/aumms/aumms/print_format/test/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/aumms/aumms/print_format/test/test.json b/aumms/aumms/print_format/test/test.json new file mode 100644 index 00000000..3c4ef6f8 --- /dev/null +++ b/aumms/aumms/print_format/test/test.json @@ -0,0 +1,31 @@ +{ + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2024-02-03 11:45:47.227360", + "custom_format": 1, + "default_print_language": "en", + "disabled": 0, + "doc_type": "Jewellery Invoice", + "docstatus": 0, + "doctype": "Print Format", + "font_size": 14, + "html": "\n\n\n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Sales Estimate
{{ _(\"Customer Name\") }}: {{ doc.customer_name }}
{{ _(\"Date\") }}: {{ doc.get_formatted(\"transaction_date\") }}
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {%- for item in doc.old_jewellery_items -%}\n \n \n \n \n \n \n \n \n \n {%- endfor -%}\n
Old Gold Received
ITEMPurityGr. WtStone Wt.Net WeightRateAmount
Old Gold Received{{ item.purity }}0.0000.0000.000{{ item.rate }}{{ item.amount }}
\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n
Old received{{ doc.total_old_gold_weight }}
Balance Receivable{{ doc.total_old_gold_amount }}
Authorised Signatory
\n
\n\n\n", + "idx": 0, + "line_breaks": 0, + "margin_bottom": 15.0, + "margin_left": 15.0, + "margin_right": 15.0, + "margin_top": 15.0, + "modified": "2024-02-03 11:45:47.227360", + "modified_by": "Administrator", + "module": "AuMMS", + "name": "test", + "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