소스 검색

First Commit

Sidharth Shah 1 년 전
커밋
15723a72d1
47개의 변경된 파일11966개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      .gitignore
  2. 18 0
      MANIFEST.in
  3. 7 0
      README.md
  4. 5 0
      gtl_custom/__init__.py
  5. 30 0
      gtl_custom/api.py
  6. 28 0
      gtl_custom/api.py~
  7. 0 0
      gtl_custom/config/__init__.py
  8. 17 0
      gtl_custom/config/desktop.py
  9. 11 0
      gtl_custom/config/docs.py
  10. 31 0
      gtl_custom/config/gtl_custom.py
  11. 0 0
      gtl_custom/gtl_customisation/__init__.py
  12. 31 0
      gtl_custom/gtl_customisation/custom/payment_schedule.json
  13. 3797 0
      gtl_custom/gtl_customisation/custom/purchase_order.json
  14. 1128 0
      gtl_custom/gtl_customisation/custom/purchase_order_item.json
  15. 4792 0
      gtl_custom/gtl_customisation/custom/sales_order.json
  16. 759 0
      gtl_custom/gtl_customisation/custom/sales_order_item.json
  17. 0 0
      gtl_custom/gtl_customisation/report/__init__.py
  18. 0 0
      gtl_custom/gtl_customisation/report/engineer_wise_customer_rfq_status/__init__.py
  19. 28 0
      gtl_custom/gtl_customisation/report/engineer_wise_customer_rfq_status/engineer_wise_customer_rfq_status.js
  20. 37 0
      gtl_custom/gtl_customisation/report/engineer_wise_customer_rfq_status/engineer_wise_customer_rfq_status.json
  21. 52 0
      gtl_custom/gtl_customisation/report/engineer_wise_customer_rfq_status/engineer_wise_customer_rfq_status.py
  22. 54 0
      gtl_custom/gtl_customisation/report/engineer_wise_customer_rfq_status/engineer_wise_customer_rfq_status.py.bak
  23. 0 0
      gtl_custom/gtl_customisation/report/procurement_report/__init__.py
  24. 22 0
      gtl_custom/gtl_customisation/report/procurement_report/procurement_report.js
  25. 40 0
      gtl_custom/gtl_customisation/report/procurement_report/procurement_report.json
  26. 148 0
      gtl_custom/gtl_customisation/report/procurement_report/procurement_report.py
  27. 0 0
      gtl_custom/gtl_customisation/report/tracker/__init__.py
  28. 7 0
      gtl_custom/gtl_customisation/report/tracker/tracker.js
  29. 55 0
      gtl_custom/gtl_customisation/report/tracker/tracker.json
  30. 97 0
      gtl_custom/gtl_customisation/report/tracker/tracker.py
  31. 86 0
      gtl_custom/gtl_customisation/report/tracker/tracker.py.bak
  32. 154 0
      gtl_custom/hooks.py
  33. 139 0
      gtl_custom/hooks.py~
  34. 1 0
      gtl_custom/modules.txt
  35. 0 0
      gtl_custom/patches.txt
  36. 5 0
      gtl_custom/public/js/purchase_order_list.js
  37. 0 0
      gtl_custom/templates/__init__.py
  38. 0 0
      gtl_custom/templates/pages/__init__.py
  39. 0 0
      gtl_custom/templates/pages/__pycache__/__init__.py
  40. 129 0
      gtl_custom/validations.py
  41. 115 0
      gtl_custom/validations.py.bak
  42. 115 0
      gtl_custom/validations.py~
  43. 0 0
      gtl_custom/www/__init__.py
  44. 0 0
      gtl_custom/www/__pycache__/__init__.py
  45. 1 0
      license.txt
  46. 1 0
      requirements.txt
  47. 20 0
      setup.py

+ 6 - 0
.gitignore

@@ -0,0 +1,6 @@
+.DS_Store
+*.pyc
+*.egg-info
+*.swp
+tags
+gtl_custom/docs/current

+ 18 - 0
MANIFEST.in

@@ -0,0 +1,18 @@
+include MANIFEST.in
+include requirements.txt
+include *.json
+include *.md
+include *.py
+include *.txt
+recursive-include gtl_custom *.css
+recursive-include gtl_custom *.csv
+recursive-include gtl_custom *.html
+recursive-include gtl_custom *.ico
+recursive-include gtl_custom *.js
+recursive-include gtl_custom *.json
+recursive-include gtl_custom *.md
+recursive-include gtl_custom *.png
+recursive-include gtl_custom *.py
+recursive-include gtl_custom *.svg
+recursive-include gtl_custom *.txt
+recursive-exclude gtl_custom *.pyc

+ 7 - 0
README.md

@@ -0,0 +1,7 @@
+## GTL Customisation
+
+Customisations done for GTL
+
+#### License
+
+MIT

+ 5 - 0
gtl_custom/__init__.py

@@ -0,0 +1,5 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+__version__ = '0.0.1'
+

+ 30 - 0
gtl_custom/api.py

@@ -0,0 +1,30 @@
+import json
+import frappe
+from frappe.utils.file_manager import save_url
+
+
+@frappe.whitelist()
+def attach_all_docs(document, method=None):
+    """This function attaches drawings to the purchase order based on the items being ordered"""
+    document = json.loads(document)
+    count = 0
+    for item_doc in document["items"]:
+        item = frappe.get_doc("Item",item_doc["item_code"])
+
+        attachments = []
+        # Get the path for the attachments
+        if item.item_attachment_1:
+            attachments.append(item.item_attachment_1)
+        if item.item_attachment_2:
+            attachments.append(item.item_attachment_2)
+        if item.item_attachment_3:
+            attachments.append(item.item_attachment_3)
+        if item.item_attachment_4:
+            attachments.append(item.item_attachment_4)
+
+        for attach in attachments:
+            count = count + 1
+            save_url(attach, attach.split("/")[-1], document["doctype"], document["name"], "Home/Attachments", True)
+    frappe.msgprint("Attached {0} files".format(count))
+
+

+ 28 - 0
gtl_custom/api.py~

@@ -0,0 +1,28 @@
+import json
+import frappe
+from frappe.utils.file_manager import save_url
+
+@frappe.whitelist()
+def attach_all_docs(document, method=None):
+    """This function attaches drawings to the purchase order based on the items being ordered"""
+    document = json.loads(document)
+    count = 0
+    for item_doc in document["items"]:
+        item = frappe.get_doc("Item",item_doc["item_code"])
+
+        attachments = []
+        # Get the path for the attachments
+        if item.item_attachment_1:
+            attachments.append(item.item_attachment_1)
+        if item.item_attachment_2:
+            attachments.append(item.item_attachment_2)
+        if item.item_attachment_3:
+            attachments.append(item.item_attachment_3)
+        if item.item_attachment_4:
+            attachments.append(item.item_attachment_4)
+
+        for attach in attachments:
+            count = count + 1
+            save_url(attach, document["doctype"], document["name"], "Home/Attachments")
+    frappe.msgprint("Attached {0} files".format(count))
+

+ 0 - 0
gtl_custom/config/__init__.py


+ 17 - 0
gtl_custom/config/desktop.py

@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+from frappe import _
+
+def get_data():
+        return [
+                {
+                        "module_name": "GTL Custom",
+                        "category": "Modules",
+                        "color": "grey",
+                        "icon": "octicon octicon-file-directory",
+                        "type": "module",
+                        "label": _("GTL Custom Reports"),
+                        "description": "GTL Custom Reports"
+                }
+        ]
+

+ 11 - 0
gtl_custom/config/docs.py

@@ -0,0 +1,11 @@
+"""
+Configuration for docs
+"""
+
+# source_link = "https://github.com/[org_name]/gtl_custom"
+# docs_base_url = "https://[org_name].github.io/gtl_custom"
+# headline = "App that does everything"
+# sub_heading = "Yes, you got that right the first time, everything"
+
+def get_context(context):
+	context.brand_html = "GTL Customisation"

+ 31 - 0
gtl_custom/config/gtl_custom.py

@@ -0,0 +1,31 @@
+from __future__ import unicode_literals
+from frappe import _
+
+def get_data():
+    config = [{
+        "label": _("Reports"),
+        "items": [{
+                "type": "report",
+                "name": "Procurement Report",
+                "description": _("Procurement Report."),
+                "doctype": "Opportunity",
+                "is_query_report": True
+            },
+            {
+                "type": "report",
+                "name": "Engineer-wise Customer RFQ Status",
+                "description": _("Engineer-wise Customer RFQ Status."),
+                "doctype": "Opportunity",
+                "is_query_report": True
+            },
+            {
+                "type": "report",
+                "name": "Tracker",
+                "description": _("Tracker Report."),
+                "doctype": "Sales Order",
+                "is_query_report": True
+            },
+        ]
+    }
+    ]
+    return config

+ 0 - 0
gtl_custom/gtl_customisation/__init__.py


+ 31 - 0
gtl_custom/gtl_customisation/custom/payment_schedule.json

@@ -0,0 +1,31 @@
+{
+ "custom_fields": [],
+ "custom_perms": [],
+ "doctype": "Payment Schedule",
+ "property_setters": [
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2019-12-30 00:24:49.183640",
+   "default_value": null,
+   "doc_type": "Payment Schedule",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "payment_term",
+   "idx": 0,
+   "modified": "2019-12-30 00:24:49.183640",
+   "modified_by": "Administrator",
+   "name": "Payment Schedule-payment_term-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "0"
+  }
+ ],
+ "sync_on_migrate": 1
+}

+ 3797 - 0
gtl_custom/gtl_customisation/custom/purchase_order.json

@@ -0,0 +1,3797 @@
+{
+ "custom_fields": [
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-17 02:43:35.584760",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "reference_details",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 32,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "customer_contact_email",
+   "label": "Reference and Priority Details",
+   "length": 0,
+   "modified": "2019-12-17 02:43:35.584760",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-reference_details",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-17 02:43:36.071661",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "column_break_23",
+   "fieldtype": "Column Break",
+   "hidden": 0,
+   "idx": 37,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "po_date",
+   "label": null,
+   "length": 0,
+   "modified": "2019-12-17 02:43:36.071661",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-column_break_23",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-17 05:51:50.711689",
+   "default": null,
+   "depends_on": "",
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "glt_status",
+   "fieldtype": "Select",
+   "hidden": 0,
+   "idx": 15,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 1,
+   "in_standard_filter": 0,
+   "insert_after": "quotation_reference",
+   "label": "GLT Status",
+   "length": 0,
+   "modified": "2019-12-17 05:51:50.711689",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-glt_status",
+   "no_copy": 0,
+   "options": "Open\nApproval 1 Pending\nApproval 2 Pending\nPO released\nAcknowledgement received\nWaiting for ship date\nPayment to be made\nPayment done\nClarification required\nOrder Ready to ship\nOn hold\nIn transit to Global Trade Links\nIn transit to customer\nDelivered to Global Trade Links\nDelivered to Customer\nMDR received\nDelivery confirmation uploaded\nPO-CLOSED",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-18 04:21:10.389570",
+   "default": "rajesh@globaltradelinks.biz",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "global_trade_link_contact",
+   "fieldtype": "Link",
+   "hidden": 0,
+   "idx": 38,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "column_break_23",
+   "label": "Global Trade Link Contact",
+   "length": 0,
+   "modified": "2019-12-18 04:21:10.389570",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-global_trade_link_contact",
+   "no_copy": 0,
+   "options": "User",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-18 04:21:10.883197",
+   "default": "Rajesh Sreedharan",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "global_trade_link_contact_person",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 39,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "global_trade_link_contact",
+   "label": "Global Trade Link Contact Person",
+   "length": 0,
+   "modified": "2019-12-18 04:21:10.883197",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-global_trade_link_contact_person",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-19 00:58:39.676547",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": "",
+   "fetch_if_empty": 0,
+   "fieldname": "priority_level",
+   "fieldtype": "Select",
+   "hidden": 0,
+   "idx": 34,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 1,
+   "in_standard_filter": 0,
+   "insert_after": "your_reference",
+   "label": "Priority Level",
+   "length": 0,
+   "modified": "2019-12-19 00:58:39.676547",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-priority_level",
+   "no_copy": 0,
+   "options": "\nA-Extremely Urgent\nB- Urgent\nC- Normal",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 1,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:09.126218",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": "supplier_address.gstin",
+   "fetch_if_empty": 0,
+   "fieldname": "supplier_gstin",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 44,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "supplier_address",
+   "label": "Supplier GSTIN",
+   "length": 0,
+   "modified": "2019-12-26 01:22:32.340096",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-supplier_gstin",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:09.595395",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": "shipping_address.gstin",
+   "fetch_if_empty": 0,
+   "fieldname": "company_gstin",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 57,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "shipping_address_display",
+   "label": "Company GSTIN",
+   "length": 0,
+   "modified": "2019-12-26 01:22:32.771074",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-company_gstin",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:10.172511",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "place_of_supply",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 55,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "shipping_address",
+   "label": "Place of Supply",
+   "length": 0,
+   "modified": "2019-12-26 01:22:33.286003",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-place_of_supply",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-30 00:02:47.297675",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "your_reference",
+   "fieldtype": "Data",
+   "hidden": 1,
+   "idx": 33,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "reference_details",
+   "label": "Customer RFQ No",
+   "length": 0,
+   "modified": "2019-12-30 00:02:47.297675",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-your_reference",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-30 00:06:22.139670",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "ship_via",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 52,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "col_break_address",
+   "label": "Ship via",
+   "length": 0,
+   "modified": "2019-12-30 00:06:22.139670",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-ship_via",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-30 00:10:49.455792",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "fob",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 53,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "ship_via",
+   "label": "Incoterms",
+   "length": 0,
+   "modified": "2019-12-30 00:10:49.455792",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-fob",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 1,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-30 01:00:02.116999",
+   "default": "Our TAX EXEMPT license # is 95053679\nNO PARTIAL SHIPMENTS.\nPlease ship complete order as single shipment.",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_additional_information",
+   "fieldtype": "Small Text",
+   "hidden": 1,
+   "idx": 137,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "inter_company_order_reference",
+   "label": "GTL Additional Information",
+   "length": 0,
+   "modified": "2019-12-30 01:00:02.116999",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_additional_information",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 1,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 01:08:20.794324",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_payement_terms",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 123,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_pay_term",
+   "label": "GTL Payement Terms",
+   "length": 0,
+   "modified": "2020-01-02 01:08:20.794324",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_payement_terms",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 01:08:21.340373",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_date_required_",
+   "fieldtype": "Date",
+   "hidden": 0,
+   "idx": 125,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "column_break_119",
+   "label": "GTL Payment Date Required ",
+   "length": 0,
+   "modified": "2020-01-02 01:08:21.340373",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_date_required_",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-07 06:39:12.413729",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "quotation_reference",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 14,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "schedule_date",
+   "label": "Quotation Reference",
+   "length": 0,
+   "modified": "2020-01-07 06:39:12.413729",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-quotation_reference",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-10 01:32:55.252690",
+   "default": "rajesh@globaltradelinks.biz",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_contact_person_email",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 40,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "global_trade_link_contact_person",
+   "label": "GTL Contact person Email",
+   "length": 0,
+   "modified": "2020-01-10 01:32:55.252690",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_contact_person_email",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-10 01:32:55.848125",
+   "default": "+1 (215) 850-6262",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_contact_person_phone",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 41,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_contact_person_email",
+   "label": "GTL Contact Person Phone",
+   "length": 0,
+   "modified": "2020-01-10 01:32:55.848125",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_contact_person_phone",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-16 07:18:00.921372",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_po_no",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 3,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 1,
+   "in_standard_filter": 1,
+   "insert_after": "supplier_section",
+   "label": "GTL PO No",
+   "length": 0,
+   "modified": "2020-01-16 07:18:00.921372",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_po_no",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-19 22:48:59.404890",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "workflow_state",
+   "fieldtype": "Link",
+   "hidden": 1,
+   "idx": 1,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": null,
+   "label": "Workflow State",
+   "length": 0,
+   "modified": "2020-01-19 22:48:59.404890",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-workflow_state",
+   "no_copy": 1,
+   "options": "Workflow State",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-21 23:48:37.182227",
+   "default": "Created",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_approval_workflow",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 10,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 1,
+   "in_standard_filter": 0,
+   "insert_after": "company",
+   "label": "Approval Status",
+   "length": 0,
+   "modified": "2020-01-21 23:48:37.182227",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_approval_workflow",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-09 23:38:57.005497",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_commercial_invoice_detail",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 141,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "per_billed",
+   "label": "GTL Commercial Invoice Detail",
+   "length": 0,
+   "modified": "2020-02-09 23:38:57.005497",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_commercial_invoice_detail",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-09 23:43:57.722826",
+   "default": "Global Trade Links\n575 Exton Commons\nExton, PA 19341",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "from",
+   "fieldtype": "Small Text",
+   "hidden": 0,
+   "idx": 142,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_commercial_invoice_detail",
+   "label": "From",
+   "length": 0,
+   "modified": "2020-02-09 23:43:57.722826",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-from",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-09 23:43:58.279605",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": "",
+   "fetch_if_empty": 0,
+   "fieldname": "country_of_origin",
+   "fieldtype": "Link",
+   "hidden": 0,
+   "idx": 143,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "from",
+   "label": "Country of Origin",
+   "length": 0,
+   "modified": "2020-02-09 23:43:58.279605",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-country_of_origin",
+   "no_copy": 0,
+   "options": "Country",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-09 23:43:58.809275",
+   "default": "30 Days",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "payment_terms",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 144,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "country_of_origin",
+   "label": "Payment Terms",
+   "length": 0,
+   "modified": "2020-02-09 23:43:58.809275",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-payment_terms",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-09 23:43:59.297870",
+   "default": "3 Weeks",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "delivery",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 145,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "payment_terms",
+   "label": "Delivery",
+   "length": 0,
+   "modified": "2020-02-09 23:43:59.297870",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-delivery",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-09 23:43:59.820878",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "column_break_134",
+   "fieldtype": "Column Break",
+   "hidden": 0,
+   "idx": 147,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "ci_remarks",
+   "label": null,
+   "length": 0,
+   "modified": "2020-02-09 23:43:59.820878",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-column_break_134",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-09 23:44:00.271325",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "date",
+   "fieldtype": "Date",
+   "hidden": 0,
+   "idx": 148,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "column_break_134",
+   "label": "Date",
+   "length": 0,
+   "modified": "2020-02-09 23:44:00.271325",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-date",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-09 23:44:00.745056",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "invoice",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 149,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "date",
+   "label": "Commercial Invoice Number",
+   "length": 0,
+   "modified": "2020-02-09 23:44:00.745056",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-invoice",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-09 23:44:01.287249",
+   "default": "(215)850-6262",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "phone",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 150,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "invoice",
+   "label": "Phone",
+   "length": 0,
+   "modified": "2020-02-09 23:44:01.287249",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-phone",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-09 23:44:01.879371",
+   "default": "(215)701-8755",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "fax",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 151,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "phone",
+   "label": "Fax",
+   "length": 0,
+   "modified": "2020-02-09 23:44:01.879371",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-fax",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-10 02:10:06.893904",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_total_amount_usd",
+   "fieldtype": "Currency",
+   "hidden": 0,
+   "idx": 82,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "base_net_total",
+   "label": "Total Amount USD",
+   "length": 0,
+   "modified": "2020-02-10 02:10:06.893904",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_total_amount_usd",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-22 23:07:17.309820",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "po_no",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 35,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "priority_level",
+   "label": "Customer Purchase Order",
+   "length": 0,
+   "modified": "2020-02-22 23:07:17.309820",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-po_no",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-22 23:07:17.825455",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "po_date",
+   "fieldtype": "Date",
+   "hidden": 0,
+   "idx": 36,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "po_no",
+   "label": "Customer Purchase Order Date",
+   "length": 0,
+   "modified": "2020-02-22 23:07:17.825455",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-po_date",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-12 05:43:42.262870",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_po_creator",
+   "fieldtype": "Link",
+   "hidden": 0,
+   "idx": 168,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "section_break_158",
+   "label": "PO Creator",
+   "length": 0,
+   "modified": "2020-03-12 05:43:42.262870",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_po_creator",
+   "no_copy": 0,
+   "options": "User",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-12 05:44:16.568144",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_purchase_order_creator",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 169,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_po_creator",
+   "label": "GTL Purchase Order Creator",
+   "length": 0,
+   "modified": "2020-03-12 05:44:16.568144",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_purchase_order_creator",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-12 05:49:17.779497",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "section_break_158",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 167,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "update_auto_repeat_reference",
+   "label": null,
+   "length": 0,
+   "modified": "2020-03-12 05:49:17.779497",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-section_break_158",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-13 05:19:53.122433",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "rfq_no",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 20,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "amended_from",
+   "label": "RFQ No",
+   "length": 0,
+   "modified": "2020-03-13 05:19:53.122433",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-rfq_no",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-14 08:59:22.379034",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_is_repeated_order",
+   "fieldtype": "Check",
+   "hidden": 0,
+   "idx": 21,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "rfq_no",
+   "label": "Is Repeat Order",
+   "length": 0,
+   "modified": "2020-03-14 08:59:22.379034",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_is_repeated_order",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-14 09:02:25.264419",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "column_break_119",
+   "fieldtype": "Column Break",
+   "hidden": 0,
+   "idx": 124,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_payement_terms",
+   "label": null,
+   "length": 0,
+   "modified": "2020-03-14 09:02:25.264419",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-column_break_119",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-14 09:16:48.166011",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_pay_term",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 122,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "advance_paid",
+   "label": "GTL Pay Term",
+   "length": 0,
+   "modified": "2020-03-14 09:16:48.166011",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_pay_term",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 1,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-15 10:38:46.514454",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_packing_slip_details",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 170,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_purchase_order_creator",
+   "label": "GTL Packing Slip Details",
+   "length": 0,
+   "modified": "2020-03-15 10:38:46.514454",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_packing_slip_details",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-16 06:22:37.260006",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_ship_address",
+   "fieldtype": "Small Text",
+   "hidden": 0,
+   "idx": 171,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "packing_detail",
+   "label": "GTL Ship Address",
+   "length": 0,
+   "modified": "2020-03-16 06:22:37.260006",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_ship_address",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-16 23:53:40.791613",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_attention",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 152,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "fax",
+   "label": "GTL Attention",
+   "length": 0,
+   "modified": "2020-03-16 23:53:40.791613",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_attention",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-16 23:53:41.320152",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_email",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 153,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_attention",
+   "label": "GTL Email",
+   "length": 0,
+   "modified": "2020-03-16 23:53:41.320152",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_email",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-16 23:53:41.927074",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_mobile",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 154,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_email",
+   "label": "GTL Mobile",
+   "length": 0,
+   "modified": "2020-03-16 23:53:41.927074",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_mobile",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-27 21:43:22.719863",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "ci_remarks",
+   "fieldtype": "Small Text",
+   "hidden": 0,
+   "idx": 146,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "delivery",
+   "label": "Remarks",
+   "length": 0,
+   "modified": "2020-03-27 21:43:22.719863",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-ci_remarks",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-28 21:20:36.060015",
+   "default": "Regular Order",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "repeat_order",
+   "fieldtype": "Select",
+   "hidden": 1,
+   "idx": 23,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_po_paid",
+   "label": "Repeat Order",
+   "length": 0,
+   "modified": "2020-03-28 21:20:36.060015",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-repeat_order",
+   "no_copy": 0,
+   "options": "Regular Order\nRepeat Order",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-04-24 04:54:00.703554",
+   "default": "Global Trade Links\n575 Exton Commons\nExton, PA 19341",
+   "depends_on": null,
+   "description": "This Field presents the billing address in print view.\nTo change the billing address remove the default GTL address.",
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_bill_to",
+   "fieldtype": "Small Text",
+   "hidden": 0,
+   "idx": 50,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "contact_email",
+   "label": "Bill To",
+   "length": 0,
+   "modified": "2020-04-24 04:54:00.703554",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_bill_to",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-04-24 05:09:03.028841",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_po_comment",
+   "fieldtype": "Small Text",
+   "hidden": 0,
+   "idx": 16,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "glt_status",
+   "label": "GTL Status Comment",
+   "length": 0,
+   "modified": "2020-04-24 05:09:03.028841",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_po_comment",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-04-24 05:11:10.857792",
+   "default": "No",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_po_paid",
+   "fieldtype": "Select",
+   "hidden": 0,
+   "idx": 22,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_is_repeated_order",
+   "label": "Payment Status",
+   "length": 0,
+   "modified": "2020-04-24 05:11:10.857792",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-gtl_po_paid",
+   "no_copy": 0,
+   "options": "No\nYes\n",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-29 08:20:08.169738",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "packing_detail",
+   "fieldtype": "Small Text",
+   "hidden": 0,
+   "idx": 171,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_packing_slip_details",
+   "label": "Packing Detail",
+   "length": 0,
+   "modified": "2020-08-07 02:51:30.703246",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-packing_detail",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  }
+ ],
+ "custom_perms": [
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2013-05-21 16:16:39",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 0,
+   "idx": 2,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-14 07:46:19.364668",
+   "modified_by": "Administrator",
+   "name": "7bb3235153",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Purchase Manager",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2013-05-21 16:16:39",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 1,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-14 07:46:19.396246",
+   "modified_by": "Administrator",
+   "name": "ab9a0dde4e",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 1,
+   "role": "Stock User",
+   "set_user_permissions": 0,
+   "share": 0,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2013-05-21 16:16:39",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 0,
+   "idx": 3,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-14 07:46:19.423423",
+   "modified_by": "Administrator",
+   "name": "eb0f97ee40",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Purchase User",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2013-05-21 16:16:39",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 4,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-14 07:46:19.450561",
+   "modified_by": "Administrator",
+   "name": "7ac93812c1",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 1,
+   "print": 0,
+   "read": 1,
+   "report": 0,
+   "role": "Purchase Manager",
+   "set_user_permissions": 0,
+   "share": 0,
+   "submit": 0,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2020-03-14 07:46:19.483458",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-14 07:46:19.483458",
+   "modified_by": "Administrator",
+   "name": "0c2e7010ff",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 0,
+   "role": "Fulfillment User",
+   "set_user_permissions": 0,
+   "share": 0,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2020-05-06 08:16:54.207051",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-05-06 08:16:54.207051",
+   "modified_by": "Administrator",
+   "name": "b6f5c763f5",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 1,
+   "role": "Procurement Engineer",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2020-05-06 08:20:01.258033",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-05-06 08:20:01.258033",
+   "modified_by": "Administrator",
+   "name": "55c3f7b3e5",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 1,
+   "role": "Procurement Team Lead",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2020-05-06 08:22:13.588198",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 1,
+   "modified": "2020-05-06 08:22:13.588198",
+   "modified_by": "Administrator",
+   "name": "11379009ef",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Expediting Engineer",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2020-05-06 08:25:31.522191",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-05-06 08:25:31.522191",
+   "modified_by": "Administrator",
+   "name": "6677b62e6f",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Expediting Team Lead",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2020-05-06 08:33:02.506540",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 1,
+   "modified": "2020-05-06 08:33:02.506540",
+   "modified_by": "Administrator",
+   "name": "02dc905afb",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Overall Manager",
+   "set_user_permissions": 1,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2020-05-07 03:49:29.477244",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-05-07 03:49:29.477244",
+   "modified_by": "Administrator",
+   "name": "249a47db9b",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 0,
+   "role": "Accounts User",
+   "set_user_permissions": 0,
+   "share": 0,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2020-05-07 03:50:33.712864",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-05-07 03:50:33.712864",
+   "modified_by": "Administrator",
+   "name": "fe083df532",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 0,
+   "role": "Accounts Manager",
+   "set_user_permissions": 0,
+   "share": 0,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2020-05-09 09:48:27.217815",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 1,
+   "modified": "2020-05-09 09:48:27.217815",
+   "modified_by": "Administrator",
+   "name": "7338b6948b",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Expediting Manager",
+   "set_user_permissions": 1,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2020-05-09 09:48:44.928830",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 1,
+   "modified": "2020-05-09 09:48:44.928830",
+   "modified_by": "Administrator",
+   "name": "d438fbc46d",
+   "owner": "Administrator",
+   "parent": "Purchase Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Procurement Manager",
+   "set_user_permissions": 1,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  }
+ ],
+ "doctype": "Purchase Order",
+ "property_setters": [
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2021-07-07 06:00:42.107202",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "payment_schedule",
+   "idx": 0,
+   "modified": "2021-07-07 06:00:42.107202",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-payment_schedule-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2021-07-07 06:00:41.891141",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "due_date",
+   "idx": 0,
+   "modified": "2021-07-07 06:00:41.891141",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-due_date-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:53.588089",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "in_words",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:53.588089",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-in_words-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:53.346367",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "in_words",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:53.346367",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-in_words-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:49.461550",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "rounded_total",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:49.461550",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-rounded_total-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:49.213752",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "rounded_total",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:49.213752",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-rounded_total-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:48.956915",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "base_rounded_total",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:48.956915",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-base_rounded_total-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:48.686527",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "base_rounded_total",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:48.686527",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-base_rounded_total-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-08-07 09:57:33.488037",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "scan_barcode",
+   "idx": 0,
+   "modified": "2020-08-07 09:57:33.488037",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-scan_barcode-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-07-14 01:18:19.390337",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocType",
+   "field_name": null,
+   "idx": 0,
+   "modified": "2020-07-14 01:18:19.390337",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-track_views",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "track_views",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-07-08 07:21:57.766745",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "letter_head",
+   "idx": 0,
+   "modified": "2020-07-08 07:21:57.766745",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-letter_head-default",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "default",
+   "property_type": "Text",
+   "value": "GTL4"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-04-25 10:35:56.723821",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "is_subcontracted",
+   "idx": 0,
+   "modified": "2020-04-25 10:35:56.723821",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-is_subcontracted-in_standard_filter",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_standard_filter",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-04-25 10:01:05.285292",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocType",
+   "field_name": null,
+   "idx": 0,
+   "modified": "2020-04-25 10:01:05.285292",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-track_changes",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "track_changes",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-17 00:17:01.411214",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "sec_warehouse",
+   "idx": 0,
+   "modified": "2020-03-17 00:17:01.411214",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-sec_warehouse-collapsible",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "collapsible",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-14 09:17:51.038867",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "payment_schedule_section",
+   "idx": 0,
+   "modified": "2020-03-14 09:17:51.038867",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-payment_schedule_section-collapsible",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "collapsible",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-12 05:52:28.710581",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "taxes_section",
+   "idx": 0,
+   "modified": "2020-03-12 05:52:28.710581",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-taxes_section-collapsible",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "collapsible",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-12 05:50:27.059218",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "subscription_section",
+   "idx": 0,
+   "modified": "2020-03-12 05:50:27.059218",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-subscription_section-collapsible",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "collapsible",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-22 00:07:32.608665",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "grand_total",
+   "idx": 0,
+   "modified": "2020-01-22 00:07:32.608665",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-grand_total-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-20 00:21:13.275395",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "per_billed",
+   "idx": 0,
+   "modified": "2020-01-20 00:21:13.275395",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-per_billed-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-20 00:21:13.250663",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "per_received",
+   "idx": 0,
+   "modified": "2020-01-20 00:21:13.250663",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-per_received-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-16 23:18:28.277349",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "discount_amount",
+   "idx": 0,
+   "modified": "2020-01-16 23:18:28.277349",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-discount_amount-label",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "label",
+   "property_type": "Data",
+   "value": "Discount"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-06 01:20:09.712553",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "discount_amount",
+   "idx": 0,
+   "modified": "2020-01-06 01:20:09.712553",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-discount_amount-print_hide_if_no_value",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide_if_no_value",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-06 01:20:09.701314",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "discount_amount",
+   "idx": 0,
+   "modified": "2020-01-06 01:20:09.701314",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-discount_amount-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-06 01:20:09.689738",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "additional_discount_percentage",
+   "idx": 0,
+   "modified": "2020-01-06 01:20:09.689738",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-additional_discount_percentage-print_hide_if_no_value",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide_if_no_value",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-06 01:20:09.667543",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "additional_discount_percentage",
+   "idx": 0,
+   "modified": "2020-01-06 01:20:09.667543",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-additional_discount_percentage-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-05 23:56:16.288699",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "transaction_date",
+   "idx": 0,
+   "modified": "2020-01-05 23:56:16.288699",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-transaction_date-label",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "label",
+   "property_type": "Data",
+   "value": "PO Date"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2019-12-28 04:12:52.965881",
+   "default_value": null,
+   "doc_type": "Purchase Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocType",
+   "field_name": null,
+   "idx": 0,
+   "modified": "2019-12-28 04:12:52.965881",
+   "modified_by": "Administrator",
+   "name": "Purchase Order-default_print_format",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "default_print_format",
+   "property_type": "Data",
+   "value": "GTL Purchase Order"
+  }
+ ],
+ "sync_on_migrate": 1
+}

+ 1128 - 0
gtl_custom/gtl_customisation/custom/purchase_order_item.json

@@ -0,0 +1,1128 @@
+{
+ "custom_fields": [
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:45.826000",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": "item_code.gst_hsn_code",
+   "fetch_if_empty": 1,
+   "fieldname": "gst_hsn_code",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 10,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_description",
+   "label": "HS code",
+   "length": 0,
+   "modified": "2019-12-26 01:23:06.518376",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-gst_hsn_code",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:46.216635",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": "item_code.is_nil_exempt",
+   "fetch_if_empty": 0,
+   "fieldname": "is_nil_exempt",
+   "fieldtype": "Check",
+   "hidden": 0,
+   "idx": 11,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gst_hsn_code",
+   "label": "Is nil rated or exempted",
+   "length": 0,
+   "modified": "2019-12-26 01:23:06.806035",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-is_nil_exempt",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:46.609838",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": "item_code.is_non_gst",
+   "fetch_if_empty": 0,
+   "fieldname": "is_non_gst",
+   "fieldtype": "Check",
+   "hidden": 0,
+   "idx": 12,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "is_nil_exempt",
+   "label": "Is Non GST",
+   "length": 0,
+   "modified": "2019-12-26 01:23:07.081537",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-is_non_gst",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-17 02:23:04.137642",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_quantity",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 26,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "stock_uom",
+   "label": "Quantity",
+   "length": 0,
+   "modified": "2020-01-17 02:23:04.137642",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-gtl_quantity",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 3,
+   "creation": "2020-01-21 23:26:04.971708",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_description",
+   "fieldtype": "Text Editor",
+   "hidden": 0,
+   "idx": 9,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 1,
+   "in_standard_filter": 0,
+   "insert_after": "description",
+   "label": "Description",
+   "length": 0,
+   "modified": "2020-01-21 23:26:04.971708",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-gtl_description",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": "300px",
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": "300px"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-10 02:05:05.547251",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_unit_price_usd",
+   "fieldtype": "Currency",
+   "hidden": 0,
+   "idx": 94,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_c_qty",
+   "label": "Unit Price USD",
+   "length": 0,
+   "modified": "2020-02-10 02:05:05.547251",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-gtl_unit_price_usd",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-10 05:33:09.523147",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_total_price_usd",
+   "fieldtype": "Currency",
+   "hidden": 0,
+   "idx": 95,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_unit_price_usd",
+   "label": "Amount USD",
+   "length": 0,
+   "modified": "2020-02-10 05:33:09.523147",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-gtl_total_price_usd",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-13 09:48:31.871065",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "ci_description",
+   "fieldtype": "Text Editor",
+   "hidden": 0,
+   "idx": 91,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "commercial_invoice_amount_details",
+   "label": "Description",
+   "length": 0,
+   "modified": "2020-07-13 09:48:31.871065",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-ci_description",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 1,
+   "creation": "2020-07-17 08:39:27.080671",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_shipped_qty",
+   "fieldtype": "Float",
+   "hidden": 0,
+   "idx": 24,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 1,
+   "in_standard_filter": 0,
+   "insert_after": "qty",
+   "label": "Shipped Qty",
+   "length": 0,
+   "modified": "2020-07-17 08:39:27.080671",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-gtl_shipped_qty",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-20 00:48:56.349553",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_qty",
+   "fieldtype": "Float",
+   "hidden": 0,
+   "idx": 92,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "ci_description",
+   "label": "Quantity",
+   "length": 0,
+   "modified": "2020-07-20 00:48:56.349553",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-gtl_qty",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-20 00:49:22.063723",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "commercial_invoice_amount_details",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 90,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "item_tax_rate",
+   "label": "Commercial Invoice Amount details",
+   "length": 0,
+   "modified": "2020-07-20 00:49:22.063723",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-commercial_invoice_amount_details",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-20 03:44:17.172147",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_c_qty",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 93,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_qty",
+   "label": "Quantity",
+   "length": 0,
+   "modified": "2020-07-20 03:44:17.172147",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-gtl_c_qty",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-22 01:28:13.696650",
+   "default": null,
+   "depends_on": null,
+   "description": "This field is used to display item description in the commercial invoice.",
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "ci_description_detail",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 17,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "section_break_15",
+   "label": "CI Description Detail",
+   "length": 0,
+   "modified": "2020-07-22 01:28:13.696650",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-ci_description_detail",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 1,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-22 01:28:30.483175",
+   "default": null,
+   "depends_on": null,
+   "description": "Use this field to edit item description in Commercial Invoice",
+   "docstatus": 0,
+   "dt": "Purchase Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "section_break_15",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 16,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "image_view",
+   "label": "Commercial Invoice Description",
+   "length": 0,
+   "modified": "2020-07-22 01:28:30.483175",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-section_break_15",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  }
+ ],
+ "custom_perms": [],
+ "doctype": "Purchase Order Item",
+ "property_setters": [
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:25:04.680052",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "amount",
+   "idx": 0,
+   "modified": "2020-09-15 13:25:04.680052",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-amount-precision",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "precision",
+   "property_type": "Select",
+   "value": ""
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-07-17 08:50:48.150501",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "amount",
+   "idx": 0,
+   "modified": "2020-07-17 08:50:48.150501",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-amount-columns",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "columns",
+   "property_type": "Int",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-12 02:58:23.810482",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "description",
+   "idx": 0,
+   "modified": "2020-03-12 02:58:23.810482",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-description-description",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "description",
+   "property_type": "Text",
+   "value": ""
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-12 02:57:38.162120",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "manufacture_details",
+   "idx": 0,
+   "modified": "2020-03-12 02:57:38.162120",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-manufacture_details-collapsible",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "collapsible",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-12 02:57:28.927455",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "section_break_5",
+   "idx": 0,
+   "modified": "2020-03-12 02:57:28.927455",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-section_break_5-collapsible",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "collapsible",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-12 02:57:10.484225",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "description",
+   "idx": 0,
+   "modified": "2020-03-12 02:57:10.484225",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-description-read_only",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "read_only",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-28 00:15:22.200356",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "schedule_date",
+   "idx": 0,
+   "modified": "2020-01-28 00:15:22.200356",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-schedule_date-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-28 00:14:05.387267",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "uom",
+   "idx": 0,
+   "modified": "2020-01-28 00:14:05.387267",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-uom-columns",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "columns",
+   "property_type": "Int",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-28 00:14:05.366691",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "uom",
+   "idx": 0,
+   "modified": "2020-01-28 00:14:05.366691",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-uom-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-28 00:13:26.831502",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "stock_uom",
+   "idx": 0,
+   "modified": "2020-01-28 00:13:26.831502",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-stock_uom-columns",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "columns",
+   "property_type": "Int",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-28 00:12:34.318948",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "item_tax_template",
+   "idx": 0,
+   "modified": "2020-01-28 00:12:34.318948",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-item_tax_template-read_only",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "read_only",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-28 00:12:21.088579",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "rate",
+   "idx": 0,
+   "modified": "2020-01-28 00:12:21.088579",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-rate-columns",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "columns",
+   "property_type": "Int",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-28 00:08:08.914772",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "base_amount",
+   "idx": 0,
+   "modified": "2020-01-28 00:08:08.914772",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-base_amount-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-28 00:08:08.887038",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "base_rate",
+   "idx": 0,
+   "modified": "2020-01-28 00:08:08.887038",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-base_rate-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-22 03:50:54.255905",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "schedule_date",
+   "idx": 0,
+   "modified": "2020-01-22 03:50:54.255905",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-schedule_date-columns",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "columns",
+   "property_type": "Int",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-22 03:50:41.637511",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "item_code",
+   "idx": 0,
+   "modified": "2020-01-22 03:50:41.637511",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-item_code-columns",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "columns",
+   "property_type": "Int",
+   "value": "2"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-06 00:12:56.913301",
+   "default_value": null,
+   "doc_type": "Purchase Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "rate",
+   "idx": 0,
+   "modified": "2020-01-06 00:12:56.913301",
+   "modified_by": "Administrator",
+   "name": "Purchase Order Item-rate-label",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "label",
+   "property_type": "Data",
+   "value": "Unit Price"
+  }
+ ],
+ "sync_on_migrate": 1
+}

+ 4792 - 0
gtl_custom/gtl_customisation/custom/sales_order.json

@@ -0,0 +1,4792 @@
+{
+ "custom_fields": [
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-16 04:25:26.257343",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "ship_date",
+   "fieldtype": "Date",
+   "hidden": 0,
+   "idx": 68,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "col_break46",
+   "label": "Ship Date",
+   "length": 0,
+   "modified": "2019-12-16 04:25:26.257343",
+   "modified_by": "Administrator",
+   "name": "Sales Order-ship_date",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-16 04:25:26.787020",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "ship_via",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 69,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "ship_date",
+   "label": "Ship via",
+   "length": 0,
+   "modified": "2019-12-16 04:25:26.787020",
+   "modified_by": "Administrator",
+   "name": "Sales Order-ship_via",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-17 02:51:22.393860",
+   "default": null,
+   "depends_on": "",
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "reference_detail",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 29,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "priority_level",
+   "label": "Reference Detail",
+   "length": 0,
+   "modified": "2019-12-17 02:51:22.393860",
+   "modified_by": "Administrator",
+   "name": "Sales Order-reference_detail",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-17 02:52:03.597492",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "column_break_19",
+   "fieldtype": "Column Break",
+   "hidden": 0,
+   "idx": 31,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "your_reference",
+   "label": null,
+   "length": 0,
+   "modified": "2019-12-17 02:52:03.597492",
+   "modified_by": "Administrator",
+   "name": "Sales Order-column_break_19",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 1,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-17 02:54:22.043050",
+   "default": "\n\n\n\n\n\n\n.........................................................",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "customer_signature",
+   "fieldtype": "Small Text",
+   "hidden": 0,
+   "idx": 187,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "update_auto_repeat_reference",
+   "label": "Customer Signature",
+   "length": 0,
+   "modified": "2019-12-17 02:54:22.043050",
+   "modified_by": "Administrator",
+   "name": "Sales Order-customer_signature",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-17 05:22:21.447409",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "status_and_prioirity_information",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 24,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "repeat_order",
+   "label": "Status and Prioirity Information",
+   "length": 0,
+   "modified": "2019-12-17 05:22:21.447409",
+   "modified_by": "Administrator",
+   "name": "Sales Order-status_and_prioirity_information",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-17 05:22:21.986134",
+   "default": null,
+   "depends_on": "",
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "glt_status",
+   "fieldtype": "Select",
+   "hidden": 0,
+   "idx": 25,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 1,
+   "in_standard_filter": 0,
+   "insert_after": "status_and_prioirity_information",
+   "label": "GLT Status",
+   "length": 0,
+   "modified": "2019-12-17 05:22:21.986134",
+   "modified_by": "Administrator",
+   "name": "Sales Order-glt_status",
+   "no_copy": 0,
+   "options": "Open\nClarification required\nApproval 1 Pending\nApproval 2 Pending\nSO approved\nOverdue\nMDR received\nMDR Closed\nShipped\nInvoice created\nPayment Received\nSO-CLOSED",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 1,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-17 05:22:22.565116",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "column_break_18",
+   "fieldtype": "Column Break",
+   "hidden": 0,
+   "idx": 27,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_our_quote",
+   "label": null,
+   "length": 0,
+   "modified": "2019-12-17 05:22:22.565116",
+   "modified_by": "Administrator",
+   "name": "Sales Order-column_break_18",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-17 05:22:23.086015",
+   "default": "C- Normal",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "priority_level",
+   "fieldtype": "Select",
+   "hidden": 0,
+   "idx": 28,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 1,
+   "in_standard_filter": 0,
+   "insert_after": "column_break_18",
+   "label": "Priority Level",
+   "length": 0,
+   "modified": "2019-12-17 05:22:23.086015",
+   "modified_by": "Administrator",
+   "name": "Sales Order-priority_level",
+   "no_copy": 0,
+   "options": "A-Extremely Urgent\nB- Urgent\nC- Normal",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 1,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-18 01:27:52.435125",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "your_reference",
+   "fieldtype": "Data",
+   "hidden": 1,
+   "idx": 30,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "reference_detail",
+   "label": "Your Reference",
+   "length": 0,
+   "modified": "2019-12-18 01:27:52.435125",
+   "modified_by": "Administrator",
+   "name": "Sales Order-your_reference",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-18 01:27:53.066521",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "our_reference",
+   "fieldtype": "Data",
+   "hidden": 1,
+   "idx": 32,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "column_break_19",
+   "label": "Our Reference",
+   "length": 0,
+   "modified": "2019-12-18 01:27:53.066521",
+   "modified_by": "Administrator",
+   "name": "Sales Order-our_reference",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 1,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-18 03:01:41.362042",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "customer_terms_and_conditions_section",
+   "fieldtype": "Section Break",
+   "hidden": 1,
+   "idx": 151,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "terms",
+   "label": "Customer Terms and Conditions section",
+   "length": 0,
+   "modified": "2019-12-18 03:01:41.362042",
+   "modified_by": "Administrator",
+   "name": "Sales Order-customer_terms_and_conditions_section",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-18 03:01:42.301744",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": "customer.terms",
+   "fetch_if_empty": 0,
+   "fieldname": "customer_terms_and_conditions",
+   "fieldtype": "Text Editor",
+   "hidden": 0,
+   "idx": 153,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "terms_and_condition",
+   "label": "Customer Terms and Conditions",
+   "length": 0,
+   "modified": "2019-12-18 03:01:42.301744",
+   "modified_by": "Administrator",
+   "name": "Sales Order-customer_terms_and_conditions",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-19 04:55:18.896336",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "workflow_state",
+   "fieldtype": "Link",
+   "hidden": 1,
+   "idx": 1,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": null,
+   "label": "Workflow State",
+   "length": 0,
+   "modified": "2019-12-19 04:55:18.896336",
+   "modified_by": "Administrator",
+   "name": "Sales Order-workflow_state",
+   "no_copy": 1,
+   "options": "Workflow State",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:35.757454",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": "customer_address.gstin",
+   "fetch_if_empty": 0,
+   "fieldname": "billing_address_gstin",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 57,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "customer_address",
+   "label": "Billing Address GSTIN",
+   "length": 0,
+   "modified": "2019-12-26 01:22:58.197665",
+   "modified_by": "Administrator",
+   "name": "Sales Order-billing_address_gstin",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:36.294875",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": "shipping_address_name.gstin",
+   "fetch_if_empty": 0,
+   "fieldname": "customer_gstin",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 74,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_tracking_number",
+   "label": "Customer GSTIN",
+   "length": 0,
+   "modified": "2019-12-26 01:22:58.644141",
+   "modified_by": "Administrator",
+   "name": "Sales Order-customer_gstin",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:36.863800",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "place_of_supply",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 75,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "customer_gstin",
+   "label": "Place of Supply",
+   "length": 0,
+   "modified": "2019-12-26 01:22:59.072678",
+   "modified_by": "Administrator",
+   "name": "Sales Order-place_of_supply",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:37.396466",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": "company_address.gstin",
+   "fetch_if_empty": 0,
+   "fieldname": "company_gstin",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 65,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "company_address",
+   "label": "Company GSTIN",
+   "length": 0,
+   "modified": "2019-12-26 01:22:59.512141",
+   "modified_by": "Administrator",
+   "name": "Sales Order-company_gstin",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-28 06:24:36.774755",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "fob",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 70,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "ship_via",
+   "label": "Shipping Terms",
+   "length": 0,
+   "modified": "2019-12-28 06:24:36.774755",
+   "modified_by": "Administrator",
+   "name": "Sales Order-fob",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-30 02:06:54.323828",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": "",
+   "fetch_if_empty": 0,
+   "fieldname": "terms_and_condition",
+   "fieldtype": "Data",
+   "hidden": 1,
+   "idx": 152,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "customer_terms_and_conditions_section",
+   "label": "Terms and Condition",
+   "length": 0,
+   "modified": "2019-12-30 02:06:54.323828",
+   "modified_by": "Administrator",
+   "name": "Sales Order-terms_and_condition",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 1,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:12:04.765298",
+   "default": null,
+   "depends_on": "",
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_commercial_invoice_detail",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 33,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "our_reference",
+   "label": "GTL Commercial Invoice Detail",
+   "length": 0,
+   "modified": "2020-01-02 00:12:04.765298",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_commercial_invoice_detail",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:12:05.297383",
+   "default": "Global Trade Links\n575 Exton Commons\nExton, PA 19341\n",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "from",
+   "fieldtype": "Small Text",
+   "hidden": 0,
+   "idx": 34,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_commercial_invoice_detail",
+   "label": "From",
+   "length": 0,
+   "modified": "2020-01-02 00:12:05.297383",
+   "modified_by": "Administrator",
+   "name": "Sales Order-from",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:12:05.952766",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "column_break_28",
+   "fieldtype": "Column Break",
+   "hidden": 0,
+   "idx": 41,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "remark",
+   "label": null,
+   "length": 0,
+   "modified": "2020-01-02 00:12:05.952766",
+   "modified_by": "Administrator",
+   "name": "Sales Order-column_break_28",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:12:06.424873",
+   "default": "Today",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "date",
+   "fieldtype": "Date",
+   "hidden": 0,
+   "idx": 43,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "consignee",
+   "label": "Date",
+   "length": 0,
+   "modified": "2020-01-02 00:12:06.424873",
+   "modified_by": "Administrator",
+   "name": "Sales Order-date",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:12:07.014607",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "invoice",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 44,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "date",
+   "label": "Invoice",
+   "length": 0,
+   "modified": "2020-01-02 00:12:07.014607",
+   "modified_by": "Administrator",
+   "name": "Sales Order-invoice",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:12:07.580388",
+   "default": "(215)850-6262",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "phone",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 45,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "invoice",
+   "label": "Phone",
+   "length": 0,
+   "modified": "2020-01-02 00:12:07.580388",
+   "modified_by": "Administrator",
+   "name": "Sales Order-phone",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:12:08.361563",
+   "default": "(215)701-8755",
+   "depends_on": "",
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "fax",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 46,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "phone",
+   "label": "Fax",
+   "length": 0,
+   "modified": "2020-01-02 00:12:08.361563",
+   "modified_by": "Administrator",
+   "name": "Sales Order-fax",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:23:04.708382",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "country_of_origin",
+   "fieldtype": "Link",
+   "hidden": 0,
+   "idx": 35,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "from",
+   "label": "Country of Origin",
+   "length": 0,
+   "modified": "2020-01-02 00:23:04.708382",
+   "modified_by": "Administrator",
+   "name": "Sales Order-country_of_origin",
+   "no_copy": 0,
+   "options": "Country",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:38:55.387731",
+   "default": "30 Days",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "payment_terms",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 36,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "country_of_origin",
+   "label": "Incoterms",
+   "length": 0,
+   "modified": "2020-01-02 00:38:55.387731",
+   "modified_by": "Administrator",
+   "name": "Sales Order-payment_terms",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 1,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:41:13.746777",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "section_break_35",
+   "fieldtype": "Section Break",
+   "hidden": 1,
+   "idx": 51,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_mobile",
+   "label": "Packing Detail",
+   "length": 0,
+   "modified": "2020-01-02 00:41:13.746777",
+   "modified_by": "Administrator",
+   "name": "Sales Order-section_break_35",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:41:14.220702",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "number_of_box",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 52,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "section_break_35",
+   "label": "Number of Box",
+   "length": 0,
+   "modified": "2020-01-02 00:41:14.220702",
+   "modified_by": "Administrator",
+   "name": "Sales Order-number_of_box",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:41:14.747717",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gross_weight",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 53,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "number_of_box",
+   "label": "Gross Weight",
+   "length": 0,
+   "modified": "2020-01-02 00:41:14.747717",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gross_weight",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 00:41:15.306151",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "dimension",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 54,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gross_weight",
+   "label": "Dimension",
+   "length": 0,
+   "modified": "2020-01-02 00:41:15.306151",
+   "modified_by": "Administrator",
+   "name": "Sales Order-dimension",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 01:05:54.866050",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_payment_terms",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 143,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "payment_schedule",
+   "label": "GTL Payment Terms",
+   "length": 0,
+   "modified": "2020-01-02 01:05:54.866050",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_payment_terms",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 01:05:55.508517",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_date_required",
+   "fieldtype": "Date",
+   "hidden": 1,
+   "idx": 144,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_payment_terms",
+   "label": "GTL Date Required",
+   "length": 0,
+   "modified": "2020-01-02 01:05:55.508517",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_date_required",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-02 06:49:48.033993",
+   "default": "3 Weeks",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "delivery",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 37,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "payment_terms",
+   "label": "Delivery",
+   "length": 0,
+   "modified": "2020-01-02 06:49:48.033993",
+   "modified_by": "Administrator",
+   "name": "Sales Order-delivery",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-05 23:33:03.627829",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_total_amount_usd",
+   "fieldtype": "Currency",
+   "hidden": 0,
+   "idx": 99,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "base_net_total",
+   "label": "Total Amount USD",
+   "length": 0,
+   "modified": "2020-01-05 23:33:03.627829",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_total_amount_usd",
+   "no_copy": 0,
+   "options": "currency",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-10 22:44:04.022064",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "additional_information",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 188,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "customer_signature",
+   "label": "Additional Information",
+   "length": 0,
+   "modified": "2020-01-10 22:44:04.022064",
+   "modified_by": "Administrator",
+   "name": "Sales Order-additional_information",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-10 22:44:05.391069",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "column_break_173",
+   "fieldtype": "Column Break",
+   "hidden": 0,
+   "idx": 192,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_prep_by",
+   "label": null,
+   "length": 0,
+   "modified": "2020-01-10 22:44:05.391069",
+   "modified_by": "Administrator",
+   "name": "Sales Order-column_break_173",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-16 23:44:06.066997",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_our_quote",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 26,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "glt_status",
+   "label": "GTL Our Quote",
+   "length": 0,
+   "modified": "2020-01-16 23:44:06.066997",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_our_quote",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-22 02:20:19.666188",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_so_id",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 4,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "column_break0",
+   "label": "GTL Sales Order ID",
+   "length": 0,
+   "modified": "2020-01-22 02:20:19.666188",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_so_id",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 1,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-02-10 00:53:12.279630",
+   "default": "Created",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_approval_status",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 10,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 1,
+   "in_standard_filter": 0,
+   "insert_after": "order_type",
+   "label": "Approval Status",
+   "length": 0,
+   "modified": "2020-02-10 00:53:12.279630",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_approval_status",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-13 05:18:07.153751",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "rfq_no",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 20,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "po_date",
+   "label": "Customer RFQ No",
+   "length": 0,
+   "modified": "2020-03-13 05:18:07.153751",
+   "modified_by": "Administrator",
+   "name": "Sales Order-rfq_no",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-13 22:53:16.040917",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "priced_bid",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 11,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 1,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_approval_status",
+   "label": "Priced BID",
+   "length": 0,
+   "modified": "2020-03-13 22:53:16.040917",
+   "modified_by": "Administrator",
+   "name": "Sales Order-priced_bid",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-14 08:20:46.620399",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_sale_per",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 190,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_sp_",
+   "label": "Sales Person",
+   "length": 0,
+   "modified": "2020-03-14 08:20:46.620399",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_sale_per",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-14 08:22:27.582702",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_prep_by",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 191,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_sale_per",
+   "label": "Quote Prepared by",
+   "length": 0,
+   "modified": "2020-03-14 08:22:27.582702",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_prep_by",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-14 08:22:28.154872",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_reviewed_by",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 193,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "column_break_173",
+   "label": "Quote Reviewed by",
+   "length": 0,
+   "modified": "2020-03-14 08:22:28.154872",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_reviewed_by",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-14 08:24:45.644370",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_sp_",
+   "fieldtype": "Link",
+   "hidden": 0,
+   "idx": 189,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "additional_information",
+   "label": "GTL Sales Person",
+   "length": 0,
+   "modified": "2020-03-14 08:24:45.644370",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_sp_",
+   "no_copy": 0,
+   "options": "User",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-14 08:57:25.629411",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_is_repeated_order",
+   "fieldtype": "Check",
+   "hidden": 0,
+   "idx": 22,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "tax_id",
+   "label": "Is Repeat Order",
+   "length": 0,
+   "modified": "2020-03-14 08:57:25.629411",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_is_repeated_order",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-22 22:43:41.489443",
+   "default": null,
+   "depends_on": null,
+   "description": "This field is to mark the payment status",
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_pay_status",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 145,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_date_required",
+   "label": "GTL Pay status",
+   "length": 0,
+   "modified": "2020-03-22 22:43:41.489443",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_pay_status",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-03-28 00:37:33.697239",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "repeat_order",
+   "fieldtype": "Select",
+   "hidden": 1,
+   "idx": 23,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_is_repeated_order",
+   "label": "Repeat Order",
+   "length": 0,
+   "modified": "2020-03-28 00:37:33.697239",
+   "modified_by": "Administrator",
+   "name": "Sales Order-repeat_order",
+   "no_copy": 0,
+   "options": "Regular Order\nRepeat Order",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-04-11 00:21:20.332618",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_tracking_number",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 73,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "shipping_address",
+   "label": "Tracking Number",
+   "length": 0,
+   "modified": "2020-04-11 00:21:20.332618",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_tracking_number",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-04-11 00:41:40.297832",
+   "default": "Rajesh Sreedharan",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_contact_person",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 78,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "territory",
+   "label": "GTL Contact Person",
+   "length": 0,
+   "modified": "2020-04-11 00:41:40.297832",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_contact_person",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 1,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": "",
+   "columns": 0,
+   "creation": "2020-04-15 05:51:34.830647",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_advance_payment",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 146,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_pay_status",
+   "label": "Advance Payment",
+   "length": 0,
+   "modified": "2020-04-15 05:51:34.830647",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_advance_payment",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-04-15 05:51:35.355595",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_advance",
+   "fieldtype": "Currency",
+   "hidden": 0,
+   "idx": 147,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_advance_payment",
+   "label": "Advance Amount",
+   "length": 0,
+   "modified": "2020-04-15 05:51:35.355595",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_advance",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-19 23:57:42.840707",
+   "default": "Ex Work Pick Up<br>\n\t\tPlease send all shipping documents to EXPEDITING@globaltradelinks.biz   ",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "consignee",
+   "fieldtype": "Small Text",
+   "hidden": 1,
+   "idx": 42,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "column_break_28",
+   "label": "Consignee",
+   "length": 0,
+   "modified": "2020-07-19 23:57:42.840707",
+   "modified_by": "Administrator",
+   "name": "Sales Order-consignee",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-20 00:03:06.194606",
+   "default": null,
+   "depends_on": null,
+   "description": "Remark for commercial Invoice Print",
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "remark",
+   "fieldtype": "Small Text",
+   "hidden": 0,
+   "idx": 40,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_contact_email",
+   "label": "Remark",
+   "length": 0,
+   "modified": "2020-07-20 00:03:06.194606",
+   "modified_by": "Administrator",
+   "name": "Sales Order-remark",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 1,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-20 01:10:35.132720",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_packing_slip_details",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 194,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_reviewed_by",
+   "label": "GTL Packing Slip Details",
+   "length": 0,
+   "modified": "2020-07-20 01:10:35.132720",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_packing_slip_details",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-22 01:21:41.314413",
+   "default": null,
+   "depends_on": null,
+   "description": "To change the contact details in Commercial Invoice edit these fields.",
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_attention_link",
+   "fieldtype": "Link",
+   "hidden": 0,
+   "idx": 47,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "fax",
+   "label": "Attention link",
+   "length": 0,
+   "modified": "2020-07-22 01:21:41.314413",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_attention_link",
+   "no_copy": 0,
+   "options": "Contact",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-22 01:21:42.074047",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_attention",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 48,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_attention_link",
+   "label": "Attention",
+   "length": 0,
+   "modified": "2020-07-22 01:21:42.074047",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_attention",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-22 01:21:42.774818",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_email",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 49,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_attention",
+   "label": "Email",
+   "length": 0,
+   "modified": "2020-07-22 01:21:42.774818",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_email",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-22 01:21:43.436629",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_mobile",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 50,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_email",
+   "label": "Mobile",
+   "length": 0,
+   "modified": "2020-07-22 01:21:43.436629",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_mobile",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-23 00:36:06.980337",
+   "default": "Rajesh Sreedharan",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_contact_",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 38,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "delivery",
+   "label": "Contact Person ",
+   "length": 0,
+   "modified": "2020-07-23 00:36:06.980337",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_contact_",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-23 00:36:07.686448",
+   "default": "rajesh@globaltradelinks.biz",
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_contact_email",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 39,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_contact_",
+   "label": " Email",
+   "length": 0,
+   "modified": "2020-07-23 00:36:07.686448",
+   "modified_by": "Administrator",
+   "name": "Sales Order-gtl_contact_email",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-23 00:59:55.969405",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "packing_detail",
+   "fieldtype": "Small Text",
+   "hidden": 0,
+   "idx": 194,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_packing_slip_details",
+   "label": "Packing Detail",
+   "length": 0,
+   "modified": "2020-08-07 02:42:47.144505",
+   "modified_by": "Administrator",
+   "name": "Sales Order-packing_detail",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  }
+ ],
+ "custom_perms": [
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2013-06-18 12:39:59",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 0,
+   "idx": 1,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-14 07:46:06.697811",
+   "modified_by": "Administrator",
+   "name": "492a23dc82",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Sales User",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2013-06-18 12:39:59",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 1,
+   "idx": 2,
+   "if_owner": 0,
+   "import": 1,
+   "modified": "2020-03-14 07:46:06.745329",
+   "modified_by": "Administrator",
+   "name": "eaaeb36ccd",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Sales Manager",
+   "set_user_permissions": 1,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2013-06-18 12:39:59",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 0,
+   "idx": 3,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-14 07:46:06.785537",
+   "modified_by": "Administrator",
+   "name": "310c281679",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Maintenance User",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2013-06-18 12:39:59",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 5,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-14 07:46:06.824844",
+   "modified_by": "Administrator",
+   "name": "1778f8f7b7",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 1,
+   "role": "Stock User",
+   "set_user_permissions": 0,
+   "share": 0,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2013-06-18 12:39:59",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 4,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-14 07:46:06.863993",
+   "modified_by": "Administrator",
+   "name": "4bd39ec47b",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 0,
+   "role": "Accounts User",
+   "set_user_permissions": 0,
+   "share": 0,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2013-06-18 12:39:59",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 6,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-14 07:46:06.902834",
+   "modified_by": "Administrator",
+   "name": "0c59c58359",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 1,
+   "print": 0,
+   "read": 1,
+   "report": 0,
+   "role": "Sales Manager",
+   "set_user_permissions": 0,
+   "share": 0,
+   "submit": 0,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2020-03-14 07:46:06.949099",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-14 07:46:06.949099",
+   "modified_by": "Administrator",
+   "name": "4f80d08d14",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 0,
+   "role": "Fulfillment User",
+   "set_user_permissions": 0,
+   "share": 0,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2020-03-30 00:52:52.841991",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-03-30 00:52:52.841991",
+   "modified_by": "Administrator",
+   "name": "d6b872817f",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 0,
+   "role": "Purchase User",
+   "set_user_permissions": 0,
+   "share": 0,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2020-05-06 08:16:34.724606",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-05-06 08:16:34.724606",
+   "modified_by": "Administrator",
+   "name": "9549602233",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 1,
+   "role": "Procurement Engineer",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2020-05-06 08:19:41.164418",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-05-06 08:19:41.164418",
+   "modified_by": "Administrator",
+   "name": "43909fd071",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 0,
+   "role": "Procurement Team Lead",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2020-05-06 08:21:44.779495",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 0,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-05-06 08:21:44.779495",
+   "modified_by": "Administrator",
+   "name": "2b982cb164",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Expediting Engineer",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2020-05-06 08:24:58.215158",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 1,
+   "modified": "2020-05-06 08:24:58.215158",
+   "modified_by": "Administrator",
+   "name": "cc351d2ae9",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Expediting Team Lead",
+   "set_user_permissions": 0,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2020-05-06 08:32:42.332214",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 1,
+   "modified": "2020-05-06 08:32:42.332214",
+   "modified_by": "Administrator",
+   "name": "54db5fc0b7",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Overall Manager",
+   "set_user_permissions": 1,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 0,
+   "cancel": 0,
+   "create": 0,
+   "creation": "2020-05-07 03:55:55.418704",
+   "delete": 0,
+   "docstatus": 0,
+   "email": 0,
+   "export": 0,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 0,
+   "modified": "2020-05-07 03:55:55.418704",
+   "modified_by": "Administrator",
+   "name": "9db94b47fe",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 0,
+   "read": 1,
+   "report": 0,
+   "role": "Accounts Manager",
+   "set_user_permissions": 0,
+   "share": 0,
+   "submit": 0,
+   "write": 0
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2020-05-09 09:49:04.437122",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 1,
+   "modified": "2020-05-09 09:49:04.437122",
+   "modified_by": "Administrator",
+   "name": "bfd5df1b4e",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Procurement Manager",
+   "set_user_permissions": 1,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "amend": 1,
+   "cancel": 1,
+   "create": 1,
+   "creation": "2020-05-09 09:49:26.045494",
+   "delete": 1,
+   "docstatus": 0,
+   "email": 1,
+   "export": 1,
+   "idx": 0,
+   "if_owner": 0,
+   "import": 1,
+   "modified": "2020-05-09 09:49:26.045494",
+   "modified_by": "Administrator",
+   "name": "16f2113407",
+   "owner": "Administrator",
+   "parent": "Sales Order",
+   "parentfield": "permissions",
+   "parenttype": "DocType",
+   "permlevel": 0,
+   "print": 1,
+   "read": 1,
+   "report": 1,
+   "role": "Expediting Manager",
+   "set_user_permissions": 1,
+   "share": 1,
+   "submit": 1,
+   "write": 1
+  }
+ ],
+ "doctype": "Sales Order",
+ "property_setters": [
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2021-07-07 06:00:41.004181",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "payment_schedule",
+   "idx": 0,
+   "modified": "2021-07-07 06:00:41.004181",
+   "modified_by": "Administrator",
+   "name": "Sales Order-payment_schedule-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2021-07-07 06:00:40.731179",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "due_date",
+   "idx": 0,
+   "modified": "2021-07-07 06:00:40.731179",
+   "modified_by": "Administrator",
+   "name": "Sales Order-due_date-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:51.681074",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "in_words",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:51.681074",
+   "modified_by": "Administrator",
+   "name": "Sales Order-in_words-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:51.417422",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "in_words",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:51.417422",
+   "modified_by": "Administrator",
+   "name": "Sales Order-in_words-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:44.690668",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "rounded_total",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:44.690668",
+   "modified_by": "Administrator",
+   "name": "Sales Order-rounded_total-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:44.348103",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "rounded_total",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:44.348103",
+   "modified_by": "Administrator",
+   "name": "Sales Order-rounded_total-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:44.074252",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "base_rounded_total",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:44.074252",
+   "modified_by": "Administrator",
+   "name": "Sales Order-base_rounded_total-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-09-15 13:03:43.762930",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "base_rounded_total",
+   "idx": 0,
+   "modified": "2020-09-15 13:03:43.762930",
+   "modified_by": "Administrator",
+   "name": "Sales Order-base_rounded_total-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-08-07 09:57:33.079985",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "scan_barcode",
+   "idx": 0,
+   "modified": "2020-08-07 09:57:33.079985",
+   "modified_by": "Administrator",
+   "name": "Sales Order-scan_barcode-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-07-14 01:18:33.961075",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocType",
+   "field_name": null,
+   "idx": 0,
+   "modified": "2020-07-14 01:18:33.961075",
+   "modified_by": "Administrator",
+   "name": "Sales Order-track_views",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "track_views",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-04-22 05:36:21.237956",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "delivery_date",
+   "idx": 0,
+   "modified": "2020-04-22 05:36:21.237956",
+   "modified_by": "Administrator",
+   "name": "Sales Order-delivery_date-default",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "default",
+   "property_type": "Text",
+   "value": "Today"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-04-22 05:36:21.217146",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "delivery_date",
+   "idx": 0,
+   "modified": "2020-04-22 05:36:21.217146",
+   "modified_by": "Administrator",
+   "name": "Sales Order-delivery_date-allow_on_submit",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "allow_on_submit",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-27 23:28:17.939478",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "tc_name",
+   "idx": 0,
+   "modified": "2020-03-27 23:28:17.939478",
+   "modified_by": "Administrator",
+   "name": "Sales Order-tc_name-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-14 08:17:55.198286",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "subscription_section",
+   "idx": 0,
+   "modified": "2020-03-14 08:17:55.198286",
+   "modified_by": "Administrator",
+   "name": "Sales Order-subscription_section-collapsible",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "collapsible",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-14 07:49:34.857317",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "printing_details",
+   "idx": 0,
+   "modified": "2020-03-14 07:49:34.857317",
+   "modified_by": "Administrator",
+   "name": "Sales Order-printing_details-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-14 07:48:45.125178",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "terms_section_break",
+   "idx": 0,
+   "modified": "2020-03-14 07:48:45.125178",
+   "modified_by": "Administrator",
+   "name": "Sales Order-terms_section_break-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-14 07:40:44.466403",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "order_type",
+   "idx": 0,
+   "modified": "2020-03-14 07:40:44.466403",
+   "modified_by": "Administrator",
+   "name": "Sales Order-order_type-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-13 22:56:17.586200",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "delivery_date",
+   "idx": 0,
+   "modified": "2020-03-13 22:56:17.586200",
+   "modified_by": "Administrator",
+   "name": "Sales Order-delivery_date-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-13 08:06:39.058123",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "contact_info",
+   "idx": 0,
+   "modified": "2020-03-13 08:06:39.058123",
+   "modified_by": "Administrator",
+   "name": "Sales Order-contact_info-collapsible",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "collapsible",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-10 23:55:58.655775",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "more_info",
+   "idx": 0,
+   "modified": "2020-03-10 23:55:58.655775",
+   "modified_by": "Administrator",
+   "name": "Sales Order-more_info-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-02-10 01:14:32.862984",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "grand_total",
+   "idx": 0,
+   "modified": "2020-02-10 01:14:32.862984",
+   "modified_by": "Administrator",
+   "name": "Sales Order-grand_total-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-02-09 23:06:08.407232",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "terms_section_break",
+   "idx": 0,
+   "modified": "2020-02-09 23:06:08.407232",
+   "modified_by": "Administrator",
+   "name": "Sales Order-terms_section_break-label",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "label",
+   "property_type": "Data",
+   "value": "Hazmat Terms and Conditions"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-02-04 06:17:05.674829",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "tax_id",
+   "idx": 0,
+   "modified": "2020-02-04 06:17:05.674829",
+   "modified_by": "Administrator",
+   "name": "Sales Order-tax_id-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-02-04 06:17:05.439956",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "tax_id",
+   "idx": 0,
+   "modified": "2020-02-04 06:17:05.439956",
+   "modified_by": "Administrator",
+   "name": "Sales Order-tax_id-hidden",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "hidden",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-28 23:14:16.057957",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "per_billed",
+   "idx": 0,
+   "modified": "2020-01-28 23:14:16.057957",
+   "modified_by": "Administrator",
+   "name": "Sales Order-per_billed-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-16 23:56:03.638314",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "discount_amount",
+   "idx": 0,
+   "modified": "2020-01-16 23:56:03.638314",
+   "modified_by": "Administrator",
+   "name": "Sales Order-discount_amount-label",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "label",
+   "property_type": "Data",
+   "value": "Discount"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-06 01:14:48.236566",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "discount_amount",
+   "idx": 0,
+   "modified": "2020-01-06 01:14:48.236566",
+   "modified_by": "Administrator",
+   "name": "Sales Order-discount_amount-print_hide_if_no_value",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide_if_no_value",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-06 01:14:48.192353",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "discount_amount",
+   "idx": 0,
+   "modified": "2020-01-06 01:14:48.192353",
+   "modified_by": "Administrator",
+   "name": "Sales Order-discount_amount-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-06 01:14:16.087442",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "additional_discount_percentage",
+   "idx": 0,
+   "modified": "2020-01-06 01:14:16.087442",
+   "modified_by": "Administrator",
+   "name": "Sales Order-additional_discount_percentage-print_hide_if_no_value",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide_if_no_value",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-06 01:14:16.048286",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "additional_discount_percentage",
+   "idx": 0,
+   "modified": "2020-01-06 01:14:16.048286",
+   "modified_by": "Administrator",
+   "name": "Sales Order-additional_discount_percentage-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-06 00:30:24.103959",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "terms",
+   "idx": 0,
+   "modified": "2020-01-06 00:30:24.103959",
+   "modified_by": "Administrator",
+   "name": "Sales Order-terms-print_hide",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "print_hide",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2019-12-30 01:56:02.426127",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "customer_name",
+   "idx": 0,
+   "modified": "2019-12-30 01:56:02.426127",
+   "modified_by": "Administrator",
+   "name": "Sales Order-customer_name-bold",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "bold",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2019-12-30 01:56:02.403801",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "customer_name",
+   "idx": 0,
+   "modified": "2019-12-30 01:56:02.403801",
+   "modified_by": "Administrator",
+   "name": "Sales Order-customer_name-in_global_search",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_global_search",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2019-12-28 02:54:15.316427",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocType",
+   "field_name": null,
+   "idx": 0,
+   "modified": "2019-12-28 02:54:15.316427",
+   "modified_by": "Administrator",
+   "name": "Sales Order-default_print_format",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "default_print_format",
+   "property_type": "Data",
+   "value": "GTL Print format"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2019-12-19 00:54:56.649210",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "per_delivered",
+   "idx": 0,
+   "modified": "2019-12-19 00:54:56.649210",
+   "modified_by": "Administrator",
+   "name": "Sales Order-per_delivered-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "0"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2019-12-19 00:50:11.954922",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocType",
+   "field_name": null,
+   "idx": 0,
+   "modified": "2019-12-19 00:50:11.954922",
+   "modified_by": "Administrator",
+   "name": "Sales Order-sort_order",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "sort_order",
+   "property_type": "Data",
+   "value": "ASC"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2019-12-18 03:50:55.167065",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "naming_series",
+   "idx": 0,
+   "modified": "2019-12-18 03:50:55.167065",
+   "modified_by": "Administrator",
+   "name": "Sales Order-naming_series-options",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "options",
+   "property_type": "Text",
+   "value": "SAL-ORD-.YYYY.-"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2019-12-18 01:03:00.701238",
+   "default_value": null,
+   "doc_type": "Sales Order",
+   "docstatus": 0,
+   "doctype_or_field": "DocType",
+   "field_name": null,
+   "idx": 0,
+   "modified": "2019-12-18 01:03:00.701238",
+   "modified_by": "Administrator",
+   "name": "Sales Order-sort_field",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "sort_field",
+   "property_type": "Data",
+   "value": "priority_level"
+  }
+ ],
+ "sync_on_migrate": 1
+}

+ 759 - 0
gtl_custom/gtl_customisation/custom/sales_order_item.json

@@ -0,0 +1,759 @@
+{
+ "custom_fields": [
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:42.271245",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order Item",
+   "fetch_from": "item_code.gst_hsn_code",
+   "fetch_if_empty": 1,
+   "fieldname": "gst_hsn_code",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 10,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_description",
+   "label": "HSN/SAC",
+   "length": 0,
+   "modified": "2019-12-26 01:23:03.454299",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-gst_hsn_code",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:42.670703",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order Item",
+   "fetch_from": "item_code.is_nil_exempt",
+   "fetch_if_empty": 0,
+   "fieldname": "is_nil_exempt",
+   "fieldtype": "Check",
+   "hidden": 0,
+   "idx": 11,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gst_hsn_code",
+   "label": "Is nil rated or exempted",
+   "length": 0,
+   "modified": "2019-12-26 01:23:03.757917",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-is_nil_exempt",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2019-12-26 00:09:43.037263",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order Item",
+   "fetch_from": "item_code.is_non_gst",
+   "fetch_if_empty": 0,
+   "fieldname": "is_non_gst",
+   "fieldtype": "Check",
+   "hidden": 0,
+   "idx": 12,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "is_nil_exempt",
+   "label": "Is Non GST",
+   "length": 0,
+   "modified": "2019-12-26 01:23:04.169319",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-is_non_gst",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 1,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-17 02:19:15.858656",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_quantity",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 23,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "stock_uom",
+   "label": "Quantity",
+   "length": 0,
+   "modified": "2020-01-17 02:19:15.858656",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-gtl_quantity",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 1,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-01-22 00:38:00.247192",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_description",
+   "fieldtype": "Text Editor",
+   "hidden": 0,
+   "idx": 9,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "description",
+   "label": "Description",
+   "length": 0,
+   "modified": "2020-01-22 00:38:00.247192",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-gtl_description",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": "300px",
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": "300px"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-20 00:45:29.882366",
+   "default": null,
+   "depends_on": "",
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_qty",
+   "fieldtype": "Float",
+   "hidden": 0,
+   "idx": 87,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "commercial_invoice_amount_calculation",
+   "label": "GTL Qty",
+   "length": 0,
+   "modified": "2020-07-20 00:45:29.882366",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-gtl_qty",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 0,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-20 00:47:25.047457",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "commercial_invoice_amount_calculation",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 86,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "transaction_date",
+   "label": "Commercial Invoice Amount Calculation",
+   "length": 0,
+   "modified": "2020-07-20 00:47:25.047457",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-commercial_invoice_amount_calculation",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-20 03:42:45.767729",
+   "default": null,
+   "depends_on": null,
+   "description": null,
+   "docstatus": 0,
+   "dt": "Sales Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "gtl_c_qty",
+   "fieldtype": "Data",
+   "hidden": 0,
+   "idx": 88,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "gtl_qty",
+   "label": "Quantity",
+   "length": 0,
+   "modified": "2020-07-20 03:42:45.767729",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-gtl_c_qty",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 1,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-22 01:23:44.784624",
+   "default": null,
+   "depends_on": null,
+   "description": "Use this field to edit item description in Commercial Invoice",
+   "docstatus": 0,
+   "dt": "Sales Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "ci_description_section",
+   "fieldtype": "Section Break",
+   "hidden": 0,
+   "idx": 15,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "brand",
+   "label": "Commercial Invoice Item desciption",
+   "length": 0,
+   "modified": "2020-07-22 01:23:44.784624",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-ci_description_section",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 0,
+   "unique": 0,
+   "width": null
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "allow_on_submit": 1,
+   "bold": 0,
+   "collapsible": 0,
+   "collapsible_depends_on": null,
+   "columns": 0,
+   "creation": "2020-07-22 01:23:45.100296",
+   "default": null,
+   "depends_on": null,
+   "description": "This field is for commercial invoice description.",
+   "docstatus": 0,
+   "dt": "Sales Order Item",
+   "fetch_from": null,
+   "fetch_if_empty": 0,
+   "fieldname": "ci_description",
+   "fieldtype": "Text Editor",
+   "hidden": 0,
+   "idx": 16,
+   "ignore_user_permissions": 0,
+   "ignore_xss_filter": 0,
+   "in_global_search": 0,
+   "in_list_view": 0,
+   "in_standard_filter": 0,
+   "insert_after": "ci_description_section",
+   "label": "Description",
+   "length": 0,
+   "modified": "2020-07-22 01:23:45.100296",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-ci_description",
+   "no_copy": 0,
+   "options": null,
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "permlevel": 0,
+   "precision": "",
+   "print_hide": 0,
+   "print_hide_if_no_value": 0,
+   "print_width": null,
+   "read_only": 0,
+   "report_hide": 0,
+   "reqd": 0,
+   "search_index": 0,
+   "translatable": 1,
+   "unique": 0,
+   "width": null
+  }
+ ],
+ "custom_perms": [],
+ "doctype": "Sales Order Item",
+ "property_setters": [
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-05-02 22:45:40.304249",
+   "default_value": null,
+   "doc_type": "Sales Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "description",
+   "idx": 0,
+   "modified": "2020-05-02 22:45:40.304249",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-description-label",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "label",
+   "property_type": "Data",
+   "value": "Description (Ignore)"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-10 23:54:43.518348",
+   "default_value": null,
+   "doc_type": "Sales Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "supplier",
+   "idx": 0,
+   "modified": "2020-03-10 23:54:43.518348",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-supplier-columns",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "columns",
+   "property_type": "Int",
+   "value": "2"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-10 23:54:23.900808",
+   "default_value": null,
+   "doc_type": "Sales Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "rate",
+   "idx": 0,
+   "modified": "2020-03-10 23:54:23.900808",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-rate-columns",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "columns",
+   "property_type": "Int",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-10 23:51:55.825758",
+   "default_value": null,
+   "doc_type": "Sales Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "item_code",
+   "idx": 0,
+   "modified": "2020-03-10 23:51:55.825758",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-item_code-columns",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "columns",
+   "property_type": "Int",
+   "value": "2"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-03-10 23:51:37.605990",
+   "default_value": null,
+   "doc_type": "Sales Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "supplier",
+   "idx": 0,
+   "modified": "2020-03-10 23:51:37.605990",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-supplier-in_list_view",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "in_list_view",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-02-08 01:57:43.368925",
+   "default_value": null,
+   "doc_type": "Sales Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "delivered_by_supplier",
+   "idx": 0,
+   "modified": "2020-02-08 01:57:43.368925",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-delivered_by_supplier-default",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "default",
+   "property_type": "Text",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-28 00:04:25.199577",
+   "default_value": null,
+   "doc_type": "Sales Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "description",
+   "idx": 0,
+   "modified": "2020-01-28 00:04:25.199577",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-description-read_only",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "read_only",
+   "property_type": "Check",
+   "value": "1"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-06 00:14:33.589013",
+   "default_value": null,
+   "doc_type": "Sales Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "rate",
+   "idx": 0,
+   "modified": "2020-01-06 00:14:33.589013",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-rate-label",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "label",
+   "property_type": "Data",
+   "value": "Unit Price"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-05 23:31:37.236147",
+   "default_value": null,
+   "doc_type": "Sales Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "gtl_total_price_usd",
+   "idx": 0,
+   "modified": "2020-01-05 23:31:37.236147",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-gtl_total_price_usd-label",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "label",
+   "property_type": "Data",
+   "value": "Amount USD"
+  },
+  {
+   "_assign": null,
+   "_comments": null,
+   "_liked_by": null,
+   "_user_tags": null,
+   "creation": "2020-01-05 23:31:37.205468",
+   "default_value": null,
+   "doc_type": "Sales Order Item",
+   "docstatus": 0,
+   "doctype_or_field": "DocField",
+   "field_name": "gtl_unit_price_usd",
+   "idx": 0,
+   "modified": "2020-01-05 23:31:37.205468",
+   "modified_by": "Administrator",
+   "name": "Sales Order Item-gtl_unit_price_usd-label",
+   "owner": "Administrator",
+   "parent": null,
+   "parentfield": null,
+   "parenttype": null,
+   "property": "label",
+   "property_type": "Data",
+   "value": "Unit Price USD"
+  }
+ ],
+ "sync_on_migrate": 1
+}

+ 0 - 0
gtl_custom/gtl_customisation/report/__init__.py


+ 0 - 0
gtl_custom/gtl_customisation/report/engineer_wise_customer_rfq_status/__init__.py


+ 28 - 0
gtl_custom/gtl_customisation/report/engineer_wise_customer_rfq_status/engineer_wise_customer_rfq_status.js

@@ -0,0 +1,28 @@
+// Copyright (c) 2016, Fafadia Tech and contributors
+// For license information, please see license.txt
+/* eslint-disable */
+
+// get list of procurement users and set it in select options
+users = function(){
+    u = frappe.db.get_list("User", {fields: ['name', 'full_name'], filters: {"role_profile_name": "V1 Procurement Engineer"}})
+    users = []
+    u.then(values => {
+        for (let i of values) {
+                users.push(i["full_name"])
+	}
+    })
+    return users
+}
+
+// set filter option for "User" field fetch values using above defined function and set values of select option
+frappe.query_reports["Engineer-wise Customer RFQ Status"] = {
+	"filters": [
+			{
+				"fieldname":"user",
+				"label": __("User"),
+				"fieldtype": "Select",
+				"options": users()
+		},
+	]
+};
+

+ 37 - 0
gtl_custom/gtl_customisation/report/engineer_wise_customer_rfq_status/engineer_wise_customer_rfq_status.json

@@ -0,0 +1,37 @@
+{
+ "add_total_row": 0,
+ "creation": "2020-03-23 08:06:31.900071",
+ "disable_prepared_report": 0,
+ "disabled": 0,
+ "docstatus": 0,
+ "doctype": "Report",
+ "idx": 0,
+ "is_standard": "Yes",
+ "letter_head": "GTL",
+ "modified": "2020-03-29 07:18:57.128832",
+ "modified_by": "Administrator",
+ "module": "GTL Customisation",
+ "name": "Engineer-wise Customer RFQ Status",
+ "owner": "Administrator",
+ "prepared_report": 0,
+ "ref_doctype": "Opportunity",
+ "report_name": "Engineer-wise Customer RFQ Status",
+ "report_type": "Script Report",
+ "roles": [
+  {
+   "role": "Sales User"
+  },
+  {
+   "role": "Sales Manager"
+  },
+  {
+   "role": "Purchase Manager"
+  },
+  {
+   "role": "Purchase Master Manager"
+  },
+  {
+   "role": "Purchase User"
+  }
+ ]
+}

+ 52 - 0
gtl_custom/gtl_customisation/report/engineer_wise_customer_rfq_status/engineer_wise_customer_rfq_status.py

@@ -0,0 +1,52 @@
+# Copyright (c) 2013, Fafadia Tech and contributors
+# For license information, please see license.txt
+
+"""
+GTL Engineer wise customer RFQ Status Report
+
+Report Logic and Description is available on following youtube link
+
+https://www.youtube.com/watch?v=IpuS0d_zcgo&feature=youtu.be
+"""
+
+from __future__ import unicode_literals
+import frappe
+from frappe import _
+
+
+def execute(filters=None):
+    """
+    GTL Engineer wise customer RFQ Status Report
+
+    Report Logic and Description is available on following youtube link
+
+    https://www.youtube.com/watch?v=IpuS0d_zcgo&feature=youtu.be
+    """
+    data = []
+    columns = [{"fieldname": "customer_rfq_no", "label": _("Customer RFQ No"), "fieldtype": "Data"},
+               {"fieldname": "complete_by", "label": _("Complete By"), "fieldtype": "Data"},
+               {"fieldname": "c_rfq_status", "label": _("C.RFQ Status"), "fieldtype": "Data"},
+               {"fieldname": "status_remarks", "label": _("Status Remarks"), "fieldtype": "Data"}
+               ]
+    # get user full_name from fiters if name not available return blank data
+    full_name = filters.get("user")
+    frappe.logger().debug(full_name)
+    frappe.logger().debug(filters)
+    if full_name:
+        # get user object from users full name
+        user = frappe.get_value("User", filters={"full_name": full_name})
+        assigned_to = '["{}"]'.format(user)
+        # get list of opportunities assigned to user
+        opportunities = frappe.get_list("Opportunity", filters={
+            "_assign": assigned_to}, fields=["name", "rfq_no",
+            "gtl_complete_by_date", "gtl_quote_status",
+            "gtl_status_remark"])
+        for o in opportunities:
+            frappe.logger().debug(o)
+            data_dict = {}
+            data_dict["customer_rfq_no"] = o.rfq_no
+            data_dict["complete_by"] = o.gtl_complete_by_date
+            data_dict["c_rfq_status"] = o.gtl_quote_status
+            data_dict["status_remarks"] = o.gtl_status_remark
+            data.append(data_dict)
+    return columns, data

+ 54 - 0
gtl_custom/gtl_customisation/report/engineer_wise_customer_rfq_status/engineer_wise_customer_rfq_status.py.bak

@@ -0,0 +1,54 @@
+# Copyright (c) 2013, Fafadia Tech and contributors
+# For license information, please see license.txt
+
+"""
+GTL Engineer wise customer RFQ Status Report
+
+Report Logic and Description is available on following youtube link
+
+https://www.youtube.com/watch?v=IpuS0d_zcgo&feature=youtu.be
+"""
+
+from __future__ import unicode_literals
+import frappe
+from frappe import _
+
+
+def execute(filters=None):
+    """
+    GTL Engineer wise customer RFQ Status Report
+
+    Report Logic and Description is available on following youtube link
+
+    https://www.youtube.com/watch?v=IpuS0d_zcgo&feature=youtu.be
+    """
+    data = []
+    columns = [{"fieldname": "customer_rfq_no", "label": _("Customer RFQ No"), "fieldtype": "Data"},
+               {"fieldname": "complete_by", "label": _("Complete By"), "fieldtype": "Data"},
+               {"fieldname": "c_rfq_status", "label": _("C.RFQ Status"), "fieldtype": "Data"},
+               {"fieldname": "status_remarks", "label": _("Status Remarks"), "fieldtype": "Data"}
+               ]
+    # get user full_name from fiters if name not available return blank data
+    full_name = filters.get("user")
+    if full_name:
+        # get user object from users full name
+        user = frappe.get_value("User", filters={"full_name": full_name})
+        assigned_to = '["{}"]'.format(user)
+        # get list of opportunities assigned to user
+        opportunities = frappe.get_list("Opportunity", filters={
+            "_assign": assigned_to}, fields=["name", "rfq_no",
+            "gtl_complete_by_date", "gtl_quote_status",
+            "gtl_status_remark"])
+        for o in opportunities:
+            data_dict = {}
+            q = frappe.db.count("Quotation", filters={
+                    "opportunity": ["=", o.name],
+                    "status": ["!=", "Submitted"]
+                })
+            if q > 0:
+                data_dict["customer_rfq_no"] = o.rfq_no
+                data_dict["complete_by"] = o.gtl_complete_by_date
+                data_dict["c_rfq_status"] = o.gtl_quote_status
+                data_dict["status_remarks"] = o.gtl_status_remark
+                data.append(data_dict)
+    return columns, data

+ 0 - 0
gtl_custom/gtl_customisation/report/procurement_report/__init__.py


+ 22 - 0
gtl_custom/gtl_customisation/report/procurement_report/procurement_report.js

@@ -0,0 +1,22 @@
+// Copyright (c) 2016, Fafadia Tech and contributors
+// For license information, please see license.txt
+/* eslint-disable */
+
+frappe.query_reports["Procurement Report"] = {
+	"filters": [
+
+	],
+        // formatter callback is used to format column and row data
+        // reference: https://github.com/frappe/erpnext/blob/develop/erpnext/accounts/report/accounts_payable/accounts_payable.js
+        // line number 121
+        // reference: https://discuss.erpnext.com/t/error-in-colouring-script-reports/44077/6
+        // set formatter for user column and set value with href to Engineer wise Customer RFQ Report with user filter parameter
+	"formatter": function(value, row, column, data, default_formatter) {
+                value = default_formatter(value, row, column, data);
+                if (column.label == "User"){
+                    var url = '/desk#query-report/Engineer-wise%20Customer%20RFQ%20Status?user=' + value.split(" ").join("%20")
+		    value = '<a href='+url+'>'+value+'</a>'
+		}
+                return value;
+        }
+};

+ 40 - 0
gtl_custom/gtl_customisation/report/procurement_report/procurement_report.json

@@ -0,0 +1,40 @@
+{
+ "add_total_row": 0,
+ "creation": "2020-03-23 02:28:42.902703",
+ "disable_prepared_report": 0,
+ "disabled": 0,
+ "docstatus": 0,
+ "doctype": "Report",
+ "idx": 0,
+ "is_standard": "Yes",
+ "letter_head": "GTL",
+ "modified": "2020-05-15 08:20:53.516700",
+ "modified_by": "Administrator",
+ "module": "GTL Customisation",
+ "name": "Procurement Report",
+ "owner": "Administrator",
+ "prepared_report": 0,
+ "ref_doctype": "Opportunity",
+ "report_name": "Procurement Report",
+ "report_type": "Script Report",
+ "roles": [
+  {
+   "role": "Sales Manager"
+  },
+  {
+   "role": "Purchase Manager"
+  },
+  {
+   "role": "Sales User"
+  },
+  {
+   "role": "Purchase User"
+  },
+  {
+   "role": "Procurement Team Lead"
+  },
+  {
+   "role": "Procurement Manager"
+  }
+ ]
+}

+ 148 - 0
gtl_custom/gtl_customisation/report/procurement_report/procurement_report.py

@@ -0,0 +1,148 @@
+# Copyright (c) 2013, Fafadia Tech and contributors
+# For license information, please see license.txt
+
+"""
+Report logic and description is available on following youtube link
+
+https://www.youtube.com/watch?v=A_2hcSehHE0&feature=youtu.be
+"""
+
+from __future__ import unicode_literals
+import frappe
+from frappe import _
+
+
+def get_customer_rfq(opportunities):
+    """
+    This method is used to get quotation count for given opportunities where status is not equal to Submitted and even if there is no Quotation
+    Input:
+        opportunities name (List)
+    Output:
+        open_customer_rfq (count) (int)
+    """
+    open_customer_rfq = 0
+    for o in opportunities:
+        q = frappe.db.count("Quotation", filters={
+                "opportunity": ["=", o.name],
+                "status": ["!=", "Submitted"]
+            })
+        if q > 0:
+            open_customer_rfq += 1
+        if not q:
+            open_customer_rfq += 1
+    return open_customer_rfq
+
+
+def get_opportunties(assigned_to, quote_status, status_comp):
+    """
+    This method is used to get filtered list of opportunities assigned to specific procurement user and
+    given qoute status and status comparision i.e (= 'Equal To', != 'Not Equal To')
+    Input:
+        assigned_to (user name) (string) format: '["user@example.com"]'
+        quote_status (string)
+        status_comp (string) (example: = and !=)
+    Output:
+        opportunities (list) (list containing opportunities name)
+    """
+    opportunities = frappe.get_list("Opportunity", filters={
+        "_assign": assigned_to,
+        "gtl_quote_status": [status_comp, quote_status]})
+    return opportunities
+
+
+def execute(filters=None):
+        """
+        GTL Procurement Report
+
+        Report Logic and Description is available on following youtube link
+
+        https://www.youtube.com/watch?v=A_2hcSehHE0&feature=youtu.be
+        """
+        data = []
+        columns = [{"fieldname": "user", "label": _("User"), "fieldtype": "Data"},
+                {"fieldname": "open_customer_rfq", "label": _("Open Customer RFQ"), "fieldtype": "Data"},
+                {"fieldname": "rfq_not_floated", "label": _("RFQ Not Floated"), "fieldtype": "Data"},
+                {"fieldname": "rfq_floated", "label": _("RFQ Floated"), "fieldtype": "Data"},
+                {"fieldname": "end_user_input_awaited", "label": _("End User Input Awaited"), "fieldtype": "Data"},
+                {"fieldname": "quote_pending", "label": _("Quote Pending"), "fieldtype": "Data"},
+                {"fieldname": "quote_received", "label": _("Quote Received"), "fieldtype": "Data"},
+                {"fieldname": "clarification_pending", "label": _("Clarification Pending"), "fieldtype": "Data"},
+                {"fieldname": "bid_preperation_pending", "label": _("Bid Preperation Pending"), "fieldtype": "Data"},
+                {"fieldname": "bid_submitted_to_tl", "label": _("Bid Submitted to TL"), "fieldtype": "Data"},
+                {"fieldname": "bid_approved_by_tl", "label": _("Bid Approved by TL"), "fieldtype": "Data"},
+                {"fieldname": "bid_rejected_by_tl", "label": _("Bid Rejected by TL"), "fieldtype": "Data"},
+                ]
+        # get list of all users with role "Procurement Engineer"
+        users = frappe.get_list("User", filters={
+            "role_profile_name": "V1 Procurement Engineer"},
+            fields=["name", "full_name"])
+
+        for u in users:
+            data_dict = {}
+            data_dict["user"] = u.full_name
+            assigned_to = '["{}"]'.format(u.name)
+            # get list of opportunities assigned to specific user
+            opportunities = frappe.get_list("Opportunity", {"_assign": assigned_to})
+            # get open customerrfq count defined in above function
+            open_customer_rfq = get_customer_rfq(opportunities)
+            data_dict["open_customer_rfq"] = open_customer_rfq
+
+            opportunities = get_opportunties(
+                assigned_to, "RFQ Not Floated", "=")
+            rfq_not_floated = get_customer_rfq(opportunities)
+            data_dict["rfq_not_floated"] = rfq_not_floated
+
+            opportunities = get_opportunties(
+                assigned_to, "RFQ Not Floated", "!=")
+            rfq_floated = get_customer_rfq(opportunities)
+            data_dict["rfq_floated"] = rfq_floated
+
+            opportunities = get_opportunties(
+                assigned_to, "End-User Input Awaited", "=")
+            end_user_input_awaited = get_customer_rfq(opportunities)
+            data_dict["end_user_input_awaited"] = end_user_input_awaited
+
+            opportunities = get_opportunties(
+                assigned_to, "Quote Pending", "=")
+            quote_pending = get_customer_rfq(opportunities)
+            data_dict["quote_pending"] = quote_pending
+
+            opportunities = get_opportunties(
+                assigned_to, "Clarifications-Technical ", "=")
+            ct = get_customer_rfq(opportunities)
+
+            opportunities = get_opportunties(
+                assigned_to, "Clarifications-Commercial", "=")
+            cc = get_customer_rfq(opportunities)
+
+            clarification_pending = ct + cc
+            data_dict["clarification_pending"] = clarification_pending
+
+            opportunities = get_opportunties(
+                assigned_to, "Bid Preparation Pending", "=")
+            bid_preperation_pending = get_customer_rfq(opportunities)
+            data_dict["bid_preperation_pending"] = bid_preperation_pending
+
+            opportunities = get_opportunties(
+                assigned_to, "Bid Submitted to TL", "=")
+            bid_submitted_to_tl = get_customer_rfq(opportunities)
+            data_dict["bid_submitted_to_tl"] = bid_submitted_to_tl
+
+            opportunities = get_opportunties(
+                assigned_to, "Bid Approved by TL", "=")
+            bid_approved_by_tl = get_customer_rfq(opportunities)
+            data_dict["bid_approved_by_tl"] = bid_approved_by_tl
+
+            opportunities = get_opportunties(
+                assigned_to, "Bid Rejected by TL", "=")
+            bid_rejected_by_tl = get_customer_rfq(opportunities)
+            data_dict["bid_rejected_by_tl"] = bid_rejected_by_tl
+
+            data_dict["quote_received"] = clarification_pending + \
+                bid_preperation_pending + bid_submitted_to_tl + \
+                bid_approved_by_tl + bid_rejected_by_tl
+
+            data.append(data_dict)
+
+        return columns, data
+

+ 0 - 0
gtl_custom/gtl_customisation/report/tracker/__init__.py


+ 7 - 0
gtl_custom/gtl_customisation/report/tracker/tracker.js

@@ -0,0 +1,7 @@
+// Copyright (c) 2016, Fafadia Tech and contributors
+// For license information, please see license.txt
+/* eslint-disable */
+
+frappe.query_reports["Tracker"] = {
+	
+};

+ 55 - 0
gtl_custom/gtl_customisation/report/tracker/tracker.json

@@ -0,0 +1,55 @@
+{
+ "add_total_row": 0,
+ "creation": "2020-03-23 03:51:14.433058",
+ "disable_prepared_report": 0,
+ "disabled": 0,
+ "docstatus": 0,
+ "doctype": "Report",
+ "idx": 0,
+ "is_standard": "Yes",
+ "letter_head": "GTL",
+ "modified": "2020-05-18 00:08:41.393799",
+ "modified_by": "Administrator",
+ "module": "GTL Customisation",
+ "name": "Tracker",
+ "owner": "Administrator",
+ "prepared_report": 0,
+ "ref_doctype": "Sales Order",
+ "report_name": "Tracker",
+ "report_type": "Script Report",
+ "roles": [
+  {
+   "role": "Sales User"
+  },
+  {
+   "role": "Sales Manager"
+  },
+  {
+   "role": "Maintenance User"
+  },
+  {
+   "role": "Stock User"
+  },
+  {
+   "role": "Accounts User"
+  },
+  {
+   "role": "Fulfillment User"
+  },
+  {
+   "role": "Purchase Manager"
+  },
+  {
+   "role": "Purchase User"
+  },
+  {
+   "role": "Expediting Engineer"
+  },
+  {
+   "role": "Expediting Team Lead"
+  },
+  {
+   "role": "Expediting Manager"
+  }
+ ]
+}

+ 97 - 0
gtl_custom/gtl_customisation/report/tracker/tracker.py

@@ -0,0 +1,97 @@
+# Copyright (c) 2013, Fafadia Tech and contributors
+# For license information, please see license.txt
+
+from __future__ import unicode_literals
+import frappe
+from frappe import _
+import datetime
+
+def get_po_total(currency, grand_total):
+    currency_symbol = frappe.db.get_value("Currency", currency, "symbol")
+    return currency_symbol + " " + str(grand_total)
+
+def get_assigned_to(purchase_order):
+    q = "SELECT _assign FROM `tabPurchase Order` WHERE name='{0}'".format(purchase_order)
+    results = frappe.db.sql(q)
+    if len(results) == 0 or len(results[0]) == 0 or not results[0][0]:
+        return ""
+    result = eval(results[0][0])
+    if result:
+        email = result[0]
+        q = "SELECT full_name FROM `tabUser` WHERE email='{0}'".format(email)
+        results = frappe.db.sql(q)
+
+        if len(result) > 0:
+            return results[0][0]
+        return ""
+
+def get_comment(comment):
+    if comment:
+        return comment.replace("\n","<br>").strip()
+    return ""
+
+def get_date_of_email(purchase_order):
+    results = frappe.get_all("Communication",filters={"reference_name":purchase_order})
+    if len(results) == 0:
+        return ""
+
+    # first time email doctype
+    doc_name = results[-1]["name"]
+    comm_date = frappe.get_value("Communication", doc_name, "communication_date")
+    if comm_date:
+        return comm_date
+
+def get_so(so_values):
+    so = None
+    for sales_order in so_values:
+        if sales_order[0]:
+            return sales_order[0]
+
+def execute(filters=None):
+    columns, data = [], []
+    columns = [
+    {"fieldname": "date", "label": _("Date"), "fieldtype": "date",},
+    {"fieldname": "gtl_so_ref", "label": _("GTL SO Ref"), "fieldtype": "data",},
+    {"fieldname": "so_value", "label": _("SO Value"), "fieldtype":"data"},
+    {"fieldname": "rfq_no", "label": _("RFQ/GTL Ref"), "fieldtype":"data"},
+    {"fieldname": "delivery_date", "label": _("Delivery Date"), "fieldtype":"date"},
+    {"fieldname": "po_rfq_no", "label": _("GTL PO to supplier/RFQ no"), "fieldtype":"data"},
+    {"fieldname": "supplier", "label": _("Supplier"), "fieldtype":"data"},
+    {"fieldname": "contact", "label": _("Product/Contact Person"), "fieldtype":"data"},
+    {"fieldname": "transaction_date", "label": _("Date - PO sent to Supplier"), "fieldtype":"date"},
+    {"fieldname": "po_grand_total", "label": _("PO Value to Supplier"), "fieldtype":"Currency/currency"},
+    {"fieldname": "so_po", "label": _("RDD to Supplier"), "fieldtype":"date"},
+    {"fieldname": "diff_so", "label": _("Current Delivery status"), "fieldtype":"data"},
+    {"fieldname": "assigned_user", "label": _("Person Handling the order"), "fieldtype":"data"},
+    {"fieldname": "gtl_pay_status", "label": _("PAID"), "fieldtype":"data"},
+    {"fieldname": "workflow_status", "label": _("Category"), "fieldtype":"data"},
+    {"fieldname": "gtl_status", "label": _("Status"), "fieldtype":"data"},
+    {"fieldname": "gtl_comment", "label": _("Comments"), "fieldtype":"data"},
+    ]
+
+    for vro in frappe.get_all("Purchase Order", filters={"status":["not in",("Draft", "Cancelled")]}):
+        so = get_so(frappe.db.sql(f"SELECT sales_order FROM `tabPurchase Order Item` WHERE parent='{vro.name}'"))
+        if so:
+            so_q = f"SELECT transaction_date, gtl_so_id, grand_total, rfq_no, delivery_date, status FROM `tabSales Order` WHERE name='{so}'"
+            so_values = frappe.db.sql(so_q, as_dict=1)[0]
+            po_q = f"SELECT gtl_po_no, supplier, contact_display, currency, grand_total, glt_status, gtl_po_paid, schedule_date, gtl_po_comment FROM `tabPurchase Order` WHERE name='{vro.name}'"
+            po_values = frappe.db.sql(po_q, as_dict=1)[0]
+            data.append({"date": frappe.utils.formatdate(so_values["transaction_date"], "MM-dd-YYYY"),
+                 "gtl_so_ref":so_values["gtl_so_id"],
+                 "so_value":so_values["grand_total"],
+                 "rfq_no":so_values["rfq_no"],
+                 "delivery_date": frappe.utils.formatdate(so_values["delivery_date"], "MM-dd-YYYY"),
+                 "po_rfq_no":po_values["gtl_po_no"],
+                 "supplier":po_values["supplier"],
+                 "contact":po_values["contact_display"],
+                 "transaction_date":frappe.utils.formatdate(get_date_of_email(vro.name), "dd-MMM-YYYY"),
+                 "po_grand_total":get_po_total(po_values["currency"],po_values["grand_total"]),
+                 "workflow_status":so_values["status"],
+                 "gtl_status": po_values["glt_status"],
+                 "gtl_pay_status":po_values["gtl_po_paid"],
+                 "so_po":frappe.utils.formatdate(po_values["schedule_date"], "MM-dd-YYYY"),
+                 "diff_so":(so_values["delivery_date"] - po_values["schedule_date"]).days,
+                 "assigned_user": get_assigned_to(vro.name),
+                 "gtl_comment": get_comment(po_values["gtl_po_comment"])
+                 })
+    return columns, data

+ 86 - 0
gtl_custom/gtl_customisation/report/tracker/tracker.py.bak

@@ -0,0 +1,86 @@
+# Copyright (c) 2013, Fafadia Tech and contributors
+# For license information, please see license.txt
+
+from __future__ import unicode_literals
+import frappe
+from frappe import _
+import datetime
+
+def get_po_total(doc):
+    currency_symbol = frappe.db.get_value("Currency", doc.currency, "symbol")
+    return currency_symbol + " " + str(doc.grand_total)
+
+def get_assigned_to(purchase_order):
+    q = "SELECT _assign FROM `tabPurchase Order` WHERE name='{0}'".format(purchase_order)
+    results = frappe.db.sql(q)
+    if len(results) == 0 or len(results[0]) == 0 or not results[0][0]:
+        return ""
+    result = eval(results[0][0])
+    if result:
+        email = result[0]
+        q = "SELECT full_name FROM `tabUser` WHERE email='{0}'".format(email)
+        results = frappe.db.sql(q)
+
+        if len(result) > 0:
+            return results[0][0]
+        return ""
+
+def get_comment(comment):
+    if comment:
+        return comment.replace(".","<br>").strip()
+    return ""
+
+def get_date_of_email(purchase_order):
+    results = frappe.get_all("Communication",filters={"reference_name":purchase_order})
+    if len(results) == 0:
+        return ""
+
+    # first time email doctype
+    doc_name = results[-1]["name"]
+    comm_date = frappe.get_value("Communication", doc_name, "communication_date")
+    if comm_date:
+        return comm_date
+
+def execute(filters=None):
+    columns, data = [], []
+    columns = [
+    {"fieldname": "date", "label": _("Date"), "fieldtype": "date",},
+    {"fieldname": "gtl_so_ref", "label": _("GTL SO Ref"), "fieldtype": "data",},
+    {"fieldname": "so_value", "label": _("SO Value"), "fieldtype":"data"},
+    {"fieldname": "rfq_no", "label": _("RFQ/GTL Ref"), "fieldtype":"data"},
+    {"fieldname": "delivery_date", "label": _("Delivery Date"), "fieldtype":"date"},
+    {"fieldname": "po_rfq_no", "label": _("GTL PO to supplier/RFQ no"), "fieldtype":"data"},
+    {"fieldname": "supplier", "label": _("Supplier"), "fieldtype":"data"},
+    {"fieldname": "contact", "label": _("Product/Contact Person"), "fieldtype":"data"},
+    {"fieldname": "transaction_date", "label": _("Date - PO sent to Supplier"), "fieldtype":"date"},
+    {"fieldname": "po_grand_total", "label": _("PO Value to Supplier"), "fieldtype":"Currency/currency"},
+    {"fieldname": "so_po", "label": _("RDD to Supplier"), "fieldtype":"date"},
+    {"fieldname": "diff_so", "label": _("Current Delivery status"), "fieldtype":"data"},
+    {"fieldname": "assigned_user", "label": _("Person Handling the order"), "fieldtype":"data"},
+    {"fieldname": "gtl_pay_status", "label": _("PAID"), "fieldtype":"data"},
+    {"fieldname": "workflow_status", "label": _("Category"), "fieldtype":"data"},
+    {"fieldname": "gtl_status", "label": _("Status"), "fieldtype":"data"},
+    {"fieldname": "gtl_comment", "label": _("Comments"), "fieldtype":"data"},
+    ]
+
+    for vro in frappe.get_all("Purchase Order", filters={"status":["not in",("Draft", "Cancelled")]}):
+        po_doc = frappe.get_doc("Purchase Order",vro)
+        for item in po_doc.items:
+            if item.sales_order:
+                so_doc = frappe.get_doc("Sales Order",item.sales_order)
+                data.append({"date": frappe.utils.formatdate(so_doc.transaction_date, "MM-dd-YYYY"),
+                     "gtl_so_ref":so_doc.gtl_so_id,
+                     "so_value":so_doc.grand_total,"rfq_no":so_doc.rfq_no,
+                     "delivery_date": frappe.utils.formatdate(so_doc.delivery_date, "MM-dd-YYYY"),
+                     "po_rfq_no":po_doc.gtl_po_no,
+                     "supplier":po_doc.supplier,"contact":po_doc.contact_display,
+                     "transaction_date":frappe.utils.formatdate(get_date_of_email(po_doc.name), "dd-MMM-YYYY"),
+                     "po_grand_total":get_po_total(po_doc),"workflow_status":so_doc.status,
+                     "gtl_status":po_doc.glt_status,"gtl_pay_status":po_doc.gtl_po_paid,
+                     "so_po":frappe.utils.formatdate(po_doc.schedule_date, "MM-dd-YYYY"),
+                     "diff_so":(so_doc.delivery_date-po_doc.schedule_date).days,
+                     "assigned_user": get_assigned_to(po_doc.name),
+                     "gtl_comment": get_comment(po_doc.gtl_po_comment)
+                     })
+                break
+    return columns, data

+ 154 - 0
gtl_custom/hooks.py

@@ -0,0 +1,154 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+from . import __version__ as app_version
+
+app_name = "gtl_custom"
+app_title = "GTL Customisation"
+app_publisher = "Fafadia Tech"
+app_description = "Customisations done for GTL"
+app_icon = "octicon octicon-file-directory"
+app_color = "grey"
+app_email = "sidharth@fafadiatech.com"
+app_license = "MIT"
+from erpnext.controllers.accounts_controller import AccountsController
+
+def custom_validate_qty_is_not_zero(self):
+    pass
+
+AccountsController.validate_qty_is_not_zero = custom_validate_qty_is_not_zero
+
+# Includes in <head>
+# ------------------
+
+# include js, css files in header of desk.html
+# app_include_css = "/assets/gtl_custom/css/gtl_custom.css"
+# app_include_js = "/assets/gtl_custom/js/gtl_custom.js"
+
+# include js, css files in header of web template
+# web_include_css = "/assets/gtl_custom/css/gtl_custom.css"
+# web_include_js = "/assets/gtl_custom/js/gtl_custom.js"
+
+# include js in page
+# page_js = {"page" : "public/js/file.js"}
+
+# include js in doctype views
+# doctype_js = {"doctype" : "public/js/doctype.js"}
+# doctype_list_js = {"doctype" : "public/js/doctype_list.js"}
+doctype_list_js = {"Purchase Order":"public/js/purchase_order_list.js"}
+# doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}
+# doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"}
+
+# Home Pages
+# ----------
+
+# application home page (will override Website Settings)
+# home_page = "login"
+
+# website user home page (by Role)
+# role_home_page = {
+#	"Role": "home_page"
+# }
+
+# Website user home page (by function)
+# get_website_user_home_page = "gtl_custom.utils.get_home_page"
+
+# Generators
+# ----------
+
+# automatically create page for each record of this doctype
+# website_generators = ["Web Page"]
+
+# Installation
+# ------------
+
+# before_install = "gtl_custom.install.before_install"
+# after_install = "gtl_custom.install.after_install"
+
+# Desk Notifications
+# ------------------
+# See frappe.core.notifications.get_notification_config
+
+# notification_config = "gtl_custom.notifications.get_notification_config"
+
+# Permissions
+# -----------
+# Permissions evaluated in scripted ways
+
+# permission_query_conditions = {
+# 	"Event": "frappe.desk.doctype.event.event.get_permission_query_conditions",
+# }
+#
+# has_permission = {
+# 	"Event": "frappe.desk.doctype.event.event.has_permission",
+# }
+
+# Document Events
+# ---------------
+# Hook on document methods and events
+
+# doc_events = {
+# 	"*": {
+# 		"on_update": "method",
+# 		"on_cancel": "method",
+# 		"on_trash": "method"
+#	}
+# }
+
+doc_events = {
+	"Request for Quotation": {
+		"validate": "gtl_custom.validations.rfq_validations"
+	},
+	"Quotation": {
+		"validate": "gtl_custom.validations.quote_validations",
+                "on_update": "gtl_custom.validations.quote_update",
+	},
+        "Purchase Order": {
+                "validate": "gtl_custom.validations.purchase_order_validation"
+        },
+        "ToDo": {
+                "validate": "gtl_custom.validations.todo_validation"
+        }
+}
+
+
+# Scheduled Tasks
+# ---------------
+
+# scheduler_events = {
+# 	"all": [
+# 		"gtl_custom.tasks.all"
+# 	],
+# 	"daily": [
+# 		"gtl_custom.tasks.daily"
+# 	],
+# 	"hourly": [
+# 		"gtl_custom.tasks.hourly"
+# 	],
+# 	"weekly": [
+# 		"gtl_custom.tasks.weekly"
+# 	]
+# 	"monthly": [
+# 		"gtl_custom.tasks.monthly"
+# 	]
+# }
+
+# Testing
+# -------
+
+# before_tests = "gtl_custom.install.before_tests"
+
+# Overriding Methods
+# ------------------------------
+#
+# override_whitelisted_methods = {
+# # 	"frappe.desk.doctype.event.event.get_events": "gtl_custom.event.get_events"
+        # "erpnext.controllers.accounts_controller.AccountsController.validate_qty_is_not_zero": "gtl_custom.api.custom_validate_qty_is_not_zero"
+# }
+#
+# each overriding function accepts a `data` argument;
+# generated from the base implementation of the doctype dashboard,
+# along with any modifications made in other Frappe apps
+# override_doctype_dashboards = {
+# 	"Task": "gtl_custom.task.get_dashboard_data"
+# }
+

+ 139 - 0
gtl_custom/hooks.py~

@@ -0,0 +1,139 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+from . import __version__ as app_version
+
+app_name = "gtl_custom"
+app_title = "GTL Customisation"
+app_publisher = "Fafadia Tech"
+app_description = "Customisations done for GTL"
+app_icon = "octicon octicon-file-directory"
+app_color = "grey"
+app_email = "sidharth@fafadiatech.com"
+app_license = "MIT"
+
+# Includes in <head>
+# ------------------
+
+# include js, css files in header of desk.html
+# app_include_css = "/assets/gtl_custom/css/gtl_custom.css"
+# app_include_js = "/assets/gtl_custom/js/gtl_custom.js"
+
+# include js, css files in header of web template
+# web_include_css = "/assets/gtl_custom/css/gtl_custom.css"
+# web_include_js = "/assets/gtl_custom/js/gtl_custom.js"
+
+# include js in page
+# page_js = {"page" : "public/js/file.js"}
+
+# include js in doctype views
+# doctype_js = {"doctype" : "public/js/doctype.js"}
+# doctype_list_js = {"doctype" : "public/js/doctype_list.js"}
+# doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}
+# doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"}
+
+# Home Pages
+# ----------
+
+# application home page (will override Website Settings)
+# home_page = "login"
+
+# website user home page (by Role)
+# role_home_page = {
+#	"Role": "home_page"
+# }
+
+# Website user home page (by function)
+# get_website_user_home_page = "gtl_custom.utils.get_home_page"
+
+# Generators
+# ----------
+
+# automatically create page for each record of this doctype
+# website_generators = ["Web Page"]
+
+# Installation
+# ------------
+
+# before_install = "gtl_custom.install.before_install"
+# after_install = "gtl_custom.install.after_install"
+
+# Desk Notifications
+# ------------------
+# See frappe.core.notifications.get_notification_config
+
+# notification_config = "gtl_custom.notifications.get_notification_config"
+
+# Permissions
+# -----------
+# Permissions evaluated in scripted ways
+
+# permission_query_conditions = {
+# 	"Event": "frappe.desk.doctype.event.event.get_permission_query_conditions",
+# }
+#
+# has_permission = {
+# 	"Event": "frappe.desk.doctype.event.event.has_permission",
+# }
+
+# Document Events
+# ---------------
+# Hook on document methods and events
+
+# doc_events = {
+# 	"*": {
+# 		"on_update": "method",
+# 		"on_cancel": "method",
+# 		"on_trash": "method"
+#	}
+# }
+
+doc_events = {
+	"Request for Quotation": {
+		"validate": "gtl_custom.validations.rfq_validations"
+	},
+	"Quotation": {
+		"validate": "gtl_custom.validations.quote_validations",
+                "validate": "gtl_custom.validations.quote_update"
+	},
+}
+
+# Scheduled Tasks
+# ---------------
+
+# scheduler_events = {
+# 	"all": [
+# 		"gtl_custom.tasks.all"
+# 	],
+# 	"daily": [
+# 		"gtl_custom.tasks.daily"
+# 	],
+# 	"hourly": [
+# 		"gtl_custom.tasks.hourly"
+# 	],
+# 	"weekly": [
+# 		"gtl_custom.tasks.weekly"
+# 	]
+# 	"monthly": [
+# 		"gtl_custom.tasks.monthly"
+# 	]
+# }
+
+# Testing
+# -------
+
+# before_tests = "gtl_custom.install.before_tests"
+
+# Overriding Methods
+# ------------------------------
+#
+# override_whitelisted_methods = {
+# 	"frappe.desk.doctype.event.event.get_events": "gtl_custom.event.get_events"
+# }
+#
+# each overriding function accepts a `data` argument;
+# generated from the base implementation of the doctype dashboard,
+# along with any modifications made in other Frappe apps
+# override_doctype_dashboards = {
+# 	"Task": "gtl_custom.task.get_dashboard_data"
+# }
+

+ 1 - 0
gtl_custom/modules.txt

@@ -0,0 +1 @@
+GTL Customisation

+ 0 - 0
gtl_custom/patches.txt


+ 5 - 0
gtl_custom/public/js/purchase_order_list.js

@@ -0,0 +1,5 @@
+$.extend(frappe.listview_settings['Purchase Order'], {
+        refresh: function(listview) {
+               $(".primary-action").addClass("hide");
+        }
+    });

+ 0 - 0
gtl_custom/templates/__init__.py


+ 0 - 0
gtl_custom/templates/pages/__init__.py


+ 0 - 0
gtl_custom/templates/pages/__pycache__/__init__.py


+ 129 - 0
gtl_custom/validations.py

@@ -0,0 +1,129 @@
+import frappe
+from frappe import _
+
+def get_supplier_quotes(item_code):
+    q = "SELECT parent FROM  `tabSupplier Quotation Item` WHERE item_code='{0}' ORDER BY modified DESC LIMIT 3;".format(item_code)
+    results = frappe.db.sql(q, as_dict=True)
+    return results
+
+def get_manufaturer_part_no(item_code):
+    q = "SELECT manufacturer_part_no FROM `tabItem Manufacturer` WHERE parent='{0}' LIMIT 1;".format(item_code)
+    results = frappe.db.sql(q, as_dict=True)
+    if len(results) > 0:
+        return results[0]['manufacturer_part_no']
+    return ""
+
+def get_supplier_quotes_by_mpn(manufacturer_part_no):
+    q = "SELECT parent FROM  `tabSupplier Quotation Item` WHERE manufacturer_part_no='{0}' ORDER BY modified DESC LIMIT 3;".format(manufacturer_part_no)
+    results = frappe.db.sql(q, as_dict=True)
+    return results
+
+def rfq_validations(doc, method):
+    """
+    Message print of values of supplier quotation id manufacturer
+    part no associated with the item code
+    """
+    results = ""
+    for current in doc.items:
+        supplier_quotes = []
+        for quote in get_supplier_quotes(current.item_code):
+            supplier_quotes.append(quote['parent'])
+
+        if len(supplier_quotes) > 0:
+            results += "Item %s has Supplier Quotes: %s <br/><hr/>" % (current.item_code, ",".join(supplier_quotes))
+
+        supplier_quotes = []
+        manufaturer_part_no = get_manufaturer_part_no(current.item_code)
+
+        # we didn't find manufaturer_part_no
+        # hence no point processing it furthure
+        if manufaturer_part_no.strip() == "":
+            continue
+
+        for quote in get_supplier_quotes_by_mpn(manufaturer_part_no):
+            supplier_quotes.append(quote['parent'])
+
+        if len(supplier_quotes) > 0:
+            results += "Item %s{MPN:%s} has Supplier Quotes: %s <br/><hr/>" % (current.item_code, manufaturer_part_no, ",".join(supplier_quotes))
+
+
+    if results.strip() != "":
+        frappe.msgprint(_(results))
+
+def get_marked_up_prices(opportunity_name):
+    q = "SELECT name,supplier FROM `tabSupplier Quotation` WHERE opportunity='{0}' AND status='Submitted';".format(opportunity_name)
+    quotes = frappe.db.sql(q, as_dict=True)
+    results = {}
+    suppliers = {}
+    for current in quotes:
+        rate_q = "SELECT item_code,rate FROM `tabSupplier Quotation Item` WHERE parent='{0}'".format(current['name'])
+        rate_results = frappe.db.sql(rate_q, as_dict=True)
+        for item in rate_results:
+            results[item['item_code']] = item['rate'] * 1.15
+            suppliers[item['item_code']] = current["supplier"]
+    return results, suppliers
+
+def quote_validations(doc, method):
+    """
+    Setting up rate, amount, and supplier in item table from previous supplier quotation
+    based on opporunity.
+    """
+    marked_up_prices, suppliers = get_marked_up_prices(doc.opportunity)
+    if marked_up_prices:
+        for current in doc.items:
+            if current.rate == 0.0:
+                if current.item_code not in marked_up_prices:
+                    current.rate = 0
+                    current.amount = 0
+                else:
+                    current.rate = marked_up_prices[current.item_code]
+                    current.amount = current.rate * current.qty
+            if current.item_code in suppliers:
+                current.supplier = suppliers[current.item_code]
+
+def quote_update(doc, method):
+    doc.quote_reviewed_by = frappe.session.user
+
+def purchase_order_validation(doc, method):
+    # fetch unit price from iro to vro
+    for item in doc.items:
+        if item.sales_order:
+            so = frappe.get_doc("Sales Order", item.sales_order)
+            if so.shipping_address:
+                shipping_address = so.shipping_address.replace("<br>"," ")
+            shipping_address = so.shipping_address
+
+            doc.gtl_ship_address = shipping_address
+            for so_item in so.items:
+                if so_item.supplier == doc.supplier_name:
+                    item.gtl_unit_price_usd = so_item.rate
+
+    for item in doc.items:
+        total_amt = item.qty*item.gtl_unit_price_usd
+        item.gtl_total_price_usd = total_amt
+
+    supplier_name = frappe.get_list("Supplier Quotation",{"rfq_no":doc.rfq_no})
+    if supplier_name:
+        for supp_doc_name in supplier_name:
+            supp_doc = frappe.get_doc("Supplier Quotation",supp_doc_name["name"])
+            for supp_item in supp_doc.items:
+                for vro_item in doc.items:
+                    if vro_item.item_name == supp_item.item_name:
+                        if vro_item.rate not in [0,supp_item.rate] or vro_item.qty != supp_item.qty:
+                            return True
+                        vro_item.rate = supp_item.rate
+                        vro_item.amount = supp_item.amount
+    return True
+
+def todo_validation(doc, method):
+    """
+    Fetch Values from different References.
+    """
+    if doc.reference_type == "Quotation":
+        quote_doc = frappe.get_doc(doc.reference_type,doc.reference_name)
+        doc.rfq_no = quote_doc.rfq_no
+        doc.total = quote_doc.total
+    if doc.reference_type == "Purchase Order":
+        po_doc = frappe.get_doc(doc.reference_type,doc.reference_name)
+        doc.po_no = po_doc.po_no
+        doc.total = po_doc.total

+ 115 - 0
gtl_custom/validations.py.bak

@@ -0,0 +1,115 @@
+import frappe
+from frappe import _
+
+def get_supplier_quotes(item_code):
+    q = "SELECT parent FROM  `tabSupplier Quotation Item` WHERE item_code='{0}' ORDER BY modified DESC LIMIT 3;".format(item_code)
+    results = frappe.db.sql(q, as_dict=True)
+    return results
+
+def get_manufaturer_part_no(item_code):
+    q = "SELECT manufacturer_part_no FROM `tabItem Manufacturer` WHERE parent='{0}' LIMIT 1;".format(item_code)
+    results = frappe.db.sql(q, as_dict=True)
+    if len(results) > 0:
+        return results[0]['manufacturer_part_no']
+    return ""
+
+def get_supplier_quotes_by_mpn(manufacturer_part_no):
+    q = "SELECT parent FROM  `tabSupplier Quotation Item` WHERE manufacturer_part_no='{0}' ORDER BY modified DESC LIMIT 3;".format(manufacturer_part_no)
+    results = frappe.db.sql(q, as_dict=True)
+    return results
+
+def rfq_validations(doc, method):
+    results = ""
+    for current in doc.items:
+        supplier_quotes = []
+        for quote in get_supplier_quotes(current.item_code):
+            supplier_quotes.append(quote['parent'])
+
+        if len(supplier_quotes) > 0:
+            results += "Item %s has Supplier Quotes: %s <br/><hr/>" % (current.item_code, ",".join(supplier_quotes))
+
+        supplier_quotes = []
+        manufaturer_part_no = get_manufaturer_part_no(current.item_code)
+
+        # we didn't find manufaturer_part_no
+        # hence no point processing it furthure
+        if manufaturer_part_no.strip() == "":
+            continue
+        
+        for quote in get_supplier_quotes_by_mpn(manufaturer_part_no):
+            supplier_quotes.append(quote['parent'])
+
+        if len(supplier_quotes) > 0:
+            results += "Item %s{MPN:%s} has Supplier Quotes: %s <br/><hr/>" % (current.item_code, manufaturer_part_no, ",".join(supplier_quotes))
+
+
+    if results.strip() != "":
+        frappe.msgprint(_(results))
+
+def get_marked_up_prices(opportunity_name):
+    q = "SELECT name,supplier FROM `tabSupplier Quotation` WHERE opportunity='{0}' AND status='Submitted';".format(opportunity_name)
+    quotes = frappe.db.sql(q, as_dict=True)
+    results = {}
+    suppliers = {}
+    for current in quotes:
+        rate_q = "SELECT item_code,rate FROM `tabSupplier Quotation Item` WHERE parent='{0}'".format(current['name'])
+        rate_results = frappe.db.sql(rate_q, as_dict=True)
+        for item in rate_results:
+            results[item['item_code']] = item['rate'] * 1.15
+            suppliers[item['item_code']] = current["supplier"]
+    return results, suppliers
+
+def quote_validations(doc, method):
+    marked_up_prices, suppliers = get_marked_up_prices(doc.opportunity)
+    if marked_up_prices:
+        for current in doc.items:
+            if current.rate == 0.0:
+                if current.item_code not in marked_up_prices:
+                    current.rate = 0
+                    current.amount = 0
+                else:
+                    current.rate = marked_up_prices[current.item_code]
+                    current.amount = current.rate * current.qty
+            if current.item_code in suppliers:
+                current.supplier = suppliers[current.item_code]
+
+def quote_update(doc, method):
+    doc.quote_reviewed_by = frappe.session.user
+
+def purchase_order_validation(doc, method):
+    # fetch unit price from iro to vro
+    for item in doc.items:
+        if item.sales_order:
+            so = frappe.get_doc("Sales Order", item.sales_order)
+            shipping_address = so.shipping_address.replace("<br>"," ")
+            doc.gtl_ship_address = shipping_address
+            for so_item in so.items:
+                if so_item.supplier == doc.supplier_name:
+                    item.gtl_unit_price_usd = so_item.rate
+
+    for item in doc.items:
+        total_amt = item.qty*item.gtl_unit_price_usd
+        item.gtl_total_price_usd = total_amt
+
+    supplier_name = frappe.get_list("Supplier Quotation",{"rfq_no":doc.rfq_no})
+    if supplier_name:
+        for supp_doc_name in supplier_name:
+            supp_doc = frappe.get_doc("Supplier Quotation",supp_doc_name["name"])
+            for supp_item in supp_doc.items:
+                for vro_item in doc.items:
+                    if vro_item.item_name == supp_item.item_name:
+                        vro_item.rate = supp_item.rate
+                        vro_item.amount = supp_item.amount
+                        frappe.logger().debug(vro_item.rate)
+                        frappe.logger().debug(vro_item.amount)
+    return True
+
+def todo_validation(doc, method):
+    if doc.reference_type == "Quotation":
+        quote_doc = frappe.get_doc(doc.reference_type,doc.reference_name)
+        doc.rfq_no = quote_doc.rfq_no
+        doc.total = quote_doc.total
+    if doc.reference_type == "Purchase Order":
+        po_doc = frappe.get_doc(doc.reference_type,doc.reference_name)
+        doc.po_no = po_doc.po_no
+        doc.total = po_doc.total

+ 115 - 0
gtl_custom/validations.py~

@@ -0,0 +1,115 @@
+import frappe
+from frappe import _
+
+def get_supplier_quotes(item_code):
+    q = "SELECT parent FROM  `tabSupplier Quotation Item` WHERE item_code='{0}' ORDER BY modified DESC LIMIT 3;".format(item_code)
+    results = frappe.db.sql(q, as_dict=True)
+    return results
+
+def get_manufaturer_part_no(item_code):
+    q = "SELECT manufacturer_part_no FROM `tabItem Manufacturer` WHERE parent='{0}' LIMIT 1;".format(item_code)
+    results = frappe.db.sql(q, as_dict=True)
+    if len(results) > 0:
+        return results[0]['manufacturer_part_no']
+    return ""
+
+def get_supplier_quotes_by_mpn(manufacturer_part_no):
+    q = "SELECT parent FROM  `tabSupplier Quotation Item` WHERE manufacturer_part_no='{0}' ORDER BY modified DESC LIMIT 3;".format(manufacturer_part_no)
+    results = frappe.db.sql(q, as_dict=True)
+    return results
+
+def rfq_validations(doc, method):
+    results = ""
+    for current in doc.items:
+        supplier_quotes = []
+        for quote in get_supplier_quotes(current.item_code):
+            supplier_quotes.append(quote['parent'])
+
+        if len(supplier_quotes) > 0:
+            results += "Item %s has Supplier Quotes: %s <br/><hr/>" % (current.item_code, ",".join(supplier_quotes))
+
+        supplier_quotes = []
+        manufaturer_part_no = get_manufaturer_part_no(current.item_code)
+
+        # we didn't find manufaturer_part_no
+        # hence no point processing it furthure
+        if manufaturer_part_no.strip() == "":
+            continue
+        
+        for quote in get_supplier_quotes_by_mpn(manufaturer_part_no):
+            supplier_quotes.append(quote['parent'])
+
+        if len(supplier_quotes) > 0:
+            results += "Item %s{MPN:%s} has Supplier Quotes: %s <br/><hr/>" % (current.item_code, manufaturer_part_no, ",".join(supplier_quotes))
+
+
+    if results.strip() != "":
+        frappe.msgprint(_(results))
+
+def get_marked_up_prices(opportunity_name):
+    q = "SELECT name,supplier FROM `tabSupplier Quotation` WHERE opportunity='{0}' AND status='Submitted';".format(opportunity_name)
+    quotes = frappe.db.sql(q, as_dict=True)
+    results = {}
+    suppliers = {}
+    for current in quotes:
+        rate_q = "SELECT item_code,rate FROM `tabSupplier Quotation Item` WHERE parent='{0}'".format(current['name'])
+        rate_results = frappe.db.sql(rate_q, as_dict=True)
+        for item in rate_results:
+            results[item['item_code']] = item['rate'] * 1.15
+            suppliers[item['item_code']] = current["supplier"]
+    return results, suppliers
+
+def quote_validations(doc, method):
+    marked_up_prices, suppliers = get_marked_up_prices(doc.opportunity)
+    if marked_up_prices:
+        for current in doc.items:
+            if current.rate == 0.0:
+                if current.item_code not in marked_up_prices:
+                    current.rate = 0
+                    current.amount = 0
+                else:
+                    current.rate = marked_up_prices[current.item_code]
+                    current.amount = current.rate * current.qty
+            if current.item_code in suppliers:
+                current.supplier = suppliers[current.item_code]
+
+def quote_update(doc, method):
+    doc.quote_reviewed_by = frappe.session.user
+
+def purchase_order_validation(doc, method):
+    # fetch unit price from iro to vro
+    for item in doc.items:
+        if item.sales_order:
+            so = frappe.get_doc("Sales Order", item.sales_order)
+            shipping_address = so.shipping_address.replace("<br>"," ")
+            doc.gtl_ship_address = shipping_address
+            for so_item in so.items:
+                if so_item.supplier == doc.supplier_name:
+                    item.gtl_unit_price_usd = so_item.rate
+
+    for item in doc.items:
+        total_amt = item.qty*item.gtl_unit_price_usd
+        item.gtl_total_price_usd = total_amt
+
+    supplier_name = frappe.get_list("Supplier Quotation",{"rfq_no":doc.rfq_no})
+    if supplier_name:
+        for supp_doc_name in supplier_name:
+            supp_doc = frappe.get_doc("Supplier Quotation",supp_doc_name["name"])
+            for supp_item in supp_doc.items:
+                for vro_item in doc.items:
+                    if vro_item.item_name == supp_item.item_name:
+                        vro_item.rate = supp_item.rate
+                        vro_item.amount = supp_item.amount
+                        frappe.logger().debug(vro_item.rate)
+                        frappe.logger().debug(vro_item.amount)
+    return True
+
+def todo_validation(doc, method):
+    if doc.reference_type == "Quotation":
+        quote_doc = frappe.get_doc(doc.reference_type,doc.reference_name)
+        doc.rfq_no = quote_doc.rfq_no
+        doc.total = quote_doc.total
+    if doc.reference_type == "Purchase Order":
+        vro_doc = frappe.get_doc(doc.reference_type,doc.reference_name)
+        doc.po_no = quote_doc.po_no
+        doc.total = quote_doc.total

+ 0 - 0
gtl_custom/www/__init__.py


+ 0 - 0
gtl_custom/www/__pycache__/__init__.py


+ 1 - 0
license.txt

@@ -0,0 +1 @@
+License: MIT

+ 1 - 0
requirements.txt

@@ -0,0 +1 @@
+frappe

+ 20 - 0
setup.py

@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+from setuptools import setup, find_packages
+
+with open('requirements.txt') as f:
+	install_requires = f.read().strip().split('\n')
+
+# get version from __version__ variable in gtl_custom/__init__.py
+from gtl_custom import __version__ as version
+
+setup(
+	name='gtl_custom',
+	version=version,
+	description='Customisations done for GTL',
+	author='Fafadia Tech',
+	author_email='sidharth@fafadiatech.com',
+	packages=find_packages(),
+	zip_safe=False,
+	include_package_data=True,
+	install_requires=install_requires
+)