From f48b1de70e876e97694f84d80f255af8e1e38164 Mon Sep 17 00:00:00 2001 From: apple Date: Mon, 24 Mar 2025 10:18:05 +0530 Subject: [PATCH] feat:Pos Changes --- posnext/doc_events/sales_invoice.py | 10 +- posnext/hooks.py | 5 +- posnext/posnext/custom/pos_profile.json | 2674 +++++++++++++++++++++++ posnext/public/js/pos_item_cart.js | 121 +- posnext/public/js/pos_item_selector.js | 2 + posnext/public/js/pos_payment.js | 26 + 6 files changed, 2832 insertions(+), 6 deletions(-) create mode 100644 posnext/posnext/custom/pos_profile.json diff --git a/posnext/doc_events/sales_invoice.py b/posnext/doc_events/sales_invoice.py index ccb7b5d..5a6f6ee 100644 --- a/posnext/doc_events/sales_invoice.py +++ b/posnext/doc_events/sales_invoice.py @@ -12,4 +12,12 @@ def validate_si(doc,method): doc.append("payments", { "mode_of_payment": mop[0].mode_of_payment, "amount": doc.rounded_total or doc.grand_total - }) \ No newline at end of file + }) + + +@frappe.whitelist() +def validate_taxes(doc, method): + if doc.taxes and doc.is_pos: + for tax in doc.taxes: + if not tax.included_in_print_rate: + tax.included_in_print_rate = 1 diff --git a/posnext/hooks.py b/posnext/hooks.py index 65bdc25..3e5a467 100644 --- a/posnext/hooks.py +++ b/posnext/hooks.py @@ -139,7 +139,10 @@ "validate": "posnext.doc_events.item.validate_item" }, "Sales Invoice": { - "validate": "posnext.doc_events.sales_invoice.validate_si" + "validate": [ + "posnext.doc_events.sales_invoice.validate_si", + "posnext.doc_events.sales_invoice.validate_taxes", + ] }, "POS Profile": { "validate": "posnext.doc_events.pos_profile.validate_pf" diff --git a/posnext/posnext/custom/pos_profile.json b/posnext/posnext/custom/pos_profile.json new file mode 100644 index 0000000..5206b5a --- /dev/null +++ b/posnext/posnext/custom/pos_profile.json @@ -0,0 +1,2674 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-19 16:46:48.780943", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "branch", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "dimension_col_break", + "is_system_generated": 1, + "is_virtual": 0, + "label": "Branch", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-03-19 16:46:48.780943", + "modified_by": "admin@gmail.com", + "module": null, + "name": "POS Profile-branch", + "no_copy": 0, + "non_negative": 0, + "options": "Branch", + "owner": "admin@gmail.com", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:26.667683", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_add_reference_details", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 44, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_product_bundle", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Add Reference Details", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-03-14 22:29:05.863641", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_add_reference_details", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:20.039744", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_allow_add_new_items_on_new_line", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 15, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_item_code", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow add new Items on new line", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-10-22 15:31:21.319244", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_allow_add_new_items_on_new_line", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:23.369689", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_veumi", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 30, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_whatsapp_message", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:19.998987", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_column_break_veumi", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:27.052075", + "default": "List", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_default_view", + "fieldtype": "Select", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 46, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_mobile_number_length", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Default View", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:20.160526", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_default_view", + "no_copy": 0, + "non_negative": 0, + "options": "\nList\nCard", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 1, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:21.449770", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_edit_rate_and_uom", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 20, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_logical_rack", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Edit Rate and UOM", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-11-08 04:28:10.042705", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_edit_rate", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:22.892147", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_filter_order_list_by_profile", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 27, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_use_discount_amount", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Filter Order List By Profile", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-12-04 23:51:18.578234", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_filter_order_list_by_profile", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:19.423234", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_mobile_number_based_customer", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 12, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_held_button", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Mobile Number Based Customer", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:20.324682", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_mobile_number_based_customer", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:26.857817", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_mobile_number_length", + "fieldtype": "Int", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 45, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_add_reference_details", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Mobile Number Length", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:20.913321", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_mobile_number_length", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:18.740121", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_posnext_settings", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 9, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "company_address", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POSNext Settings", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:20.083170", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_posnext_settings", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:26.483737", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_product_bundle", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 43, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_last_customer_rate", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Product Bundle", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-03-14 10:38:39.117168", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_product_bundle", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:24.208254", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_additional_note", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 35, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_sales_man", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Additional Note", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-11-01 05:25:31.561160", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_additional_note", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:24.866347", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_alternative_item_for_pos_search", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 37, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_credit_sales", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Alternative Item for POS Search", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-11-01 05:25:31.924813", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_alternative_item_for_pos_search", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:19.697975", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_checkout_button", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 13, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_mobile_number_based_customer", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Checkout Button", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:20.242873", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_checkout_button", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:23.850604", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_close_the_pos", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 33, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_toggle_recent_orders", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Close the POS", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:20.838448", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_close_the_pos", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:24.384510", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_credit_sales", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 36, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_additional_note", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Credit Sales", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-11-01 05:25:31.674539", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_credit_sales", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:19.004032", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_held_button", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 11, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_order_list_button", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Held Button", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:20.416342", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_held_button", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:21.799146", + "default": null, + "depends_on": "eval: doc.custom_edit_rate_and_uom;", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_incoming_rate", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 22, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "show_branch", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Incoming Rate", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-12-04 00:05:16.953710", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_incoming_rate", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:19.872779", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_item_code", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 14, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_checkout_button", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Item Code", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-10-23 04:20:13.966560", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_item_code", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:26.299365", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_last_customer_rate", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 42, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_use_additional_discount_amount", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Last Customer Rate", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-12-04 00:05:12.513921", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_last_customer_rate", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:20.666633", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_last_incoming_rate", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 17, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_posting_date", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Last Incoming Rate", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-11-01 05:25:32.110447", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_last_incoming_rate", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:21.281444", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_logical_rack", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 19, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_oem_part_number", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Logical Rack", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-11-07 06:23:09.148261", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_logical_rack", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:21.974156", + "default": null, + "depends_on": "eval: doc.custom_edit_rate_and_uom;", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_logical_rack_in_cart", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 24, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_incoming_rate", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Logical Rack in Cart", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-12-07 00:03:43.974745", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_logical_rack_in_cart", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:21.112538", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_oem_part_number", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 18, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_last_incoming_rate", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show OEM Part Number", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-11-01 05:25:32.017621", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_oem_part_number", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:23.495059", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_only_card_view", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 31, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_veumi", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show only Card View", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:19.835528", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_only_card_view", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:25.920216", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_only_list_view", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 40, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_open_form_view", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show only List View", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:19.914911", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_only_list_view", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:25.733375", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_open_form_view", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 39, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_save_as_draft", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Open Form View", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:20.593668", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_open_form_view", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:18.845578", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_order_list_button", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 10, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_posnext_settings", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Order List Button", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:20.501115", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_order_list_button", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:20.214547", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_posting_date", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 16, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_allow_add_new_items_on_new_line", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Posting Date", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-11-01 05:25:32.202207", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_posting_date", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:24.027386", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_sales_man", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 34, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_close_the_pos", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Sales Man", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-11-01 05:25:31.790257", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_sales_man", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:25.295728", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_save_as_draft", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 38, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_alternative_item_for_pos_search", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Save as Draft", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:20.763682", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_save_as_draft", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:23.672010", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_toggle_recent_orders", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 32, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_only_card_view", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Toggle Recent Orders", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:20.680105", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_toggle_recent_orders", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:21.627886", + "default": null, + "depends_on": "eval: doc.custom_edit_rate_and_uom;", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_uom_in_cart", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 21, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_edit_rate_and_uom", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show UOM in Cart", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-12-08 22:09:04.484772", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_show_uom_in_cart", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:27.245238", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_skip_stock_transaction_validation", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 56, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "validate_stock_on_save", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Skip Stock Transaction Validation", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-12-08 22:10:15.427468", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_skip_stock_transaction_validation", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:26.109405", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_use_additional_discount_amount", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 41, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_only_list_view", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use Additional Discount Amount", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-12-02 21:09:47.521699", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_use_additional_discount_amount", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:22.721411", + "default": null, + "depends_on": "eval: doc.custom_edit_rate_and_uom", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_use_discount_amount", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 26, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_use_discount_percentage", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use Discount Amount", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-11-15 06:30:05.558116", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_use_discount_amount", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:22.345720", + "default": null, + "depends_on": "eval: doc.custom_edit_rate_and_uom", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_use_discount_percentage", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 25, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_logical_rack_in_cart", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use Discount Percentage", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-11-15 06:30:05.707381", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_use_discount_percentage", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:23.068663", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_whatsapp_field_names", + "fieldtype": "Table", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 28, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_filter_order_list_by_profile", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Whatsapp Field Names", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:19.627227", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_whatsapp_field_names", + "no_copy": 0, + "non_negative": 0, + "options": "POS Profile Whatsapp Field Names", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-18 13:28:23.191308", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_whatsapp_message", + "fieldtype": "Small Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 29, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_whatsapp_field_names", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Whatsapp Message", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-16 07:44:19.756372", + "modified_by": "Administrator", + "module": "Posnext", + "name": "POS Profile-custom_whatsapp_message", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 1, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-03-19 12:56:38.820204", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "show_branch", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 21, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_show_uom_in_cart", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Branch", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-03-19 12:56:38.820204", + "modified_by": "admin@gmail.com", + "module": null, + "name": "POS Profile-show_branch", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "admin@gmail.com", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + } + ], + "custom_perms": [], + "doctype": "POS Profile", + "links": [ + { + "creation": "2013-05-24 12:15:51", + "custom": 0, + "docstatus": 0, + "group": "Opening & Closing", + "hidden": 0, + "idx": 3, + "is_child_table": 0, + "link_doctype": "POS Opening Entry", + "link_fieldname": "pos_profile", + "modified": "2025-03-18 13:25:54.895278", + "modified_by": "Administrator", + "name": "1jc4auuh7l", + "owner": "Administrator", + "parent": "POS Profile", + "parent_doctype": null, + "parentfield": "links", + "parenttype": "DocType", + "table_fieldname": null + }, + { + "creation": "2013-05-24 12:15:51", + "custom": 0, + "docstatus": 0, + "group": "Invoices", + "hidden": 0, + "idx": 2, + "is_child_table": 0, + "link_doctype": "POS Invoice", + "link_fieldname": "pos_profile", + "modified": "2025-03-18 13:25:54.895278", + "modified_by": "Administrator", + "name": "1jchceo9st", + "owner": "Administrator", + "parent": "POS Profile", + "parent_doctype": null, + "parentfield": "links", + "parenttype": "DocType", + "table_fieldname": null + }, + { + "creation": "2013-05-24 12:15:51", + "custom": 0, + "docstatus": 0, + "group": "Invoices", + "hidden": 0, + "idx": 1, + "is_child_table": 0, + "link_doctype": "Sales Invoice", + "link_fieldname": "pos_profile", + "modified": "2025-03-18 13:25:54.895278", + "modified_by": "Administrator", + "name": "1jclqfppl6", + "owner": "Administrator", + "parent": "POS Profile", + "parent_doctype": null, + "parentfield": "links", + "parenttype": "DocType", + "table_fieldname": null + }, + { + "creation": "2013-05-24 12:15:51", + "custom": 0, + "docstatus": 0, + "group": "Opening & Closing", + "hidden": 0, + "idx": 4, + "is_child_table": 0, + "link_doctype": "POS Closing Entry", + "link_fieldname": "pos_profile", + "modified": "2025-03-18 13:25:54.895278", + "modified_by": "Administrator", + "name": "1jcpuauvti", + "owner": "Administrator", + "parent": "POS Profile", + "parent_doctype": null, + "parentfield": "links", + "parenttype": "DocType", + "table_fieldname": null + } + ], + "property_setters": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-03-19 12:56:38.666726", + "default_value": null, + "doc_type": "POS Profile", + "docstatus": 0, + "doctype_or_field": "DocType", + "field_name": null, + "idx": 0, + "is_system_generated": 0, + "modified": "2025-03-19 12:56:38.666726", + "modified_by": "admin@gmail.com", + "module": null, + "name": "POS Profile-main-field_order", + "owner": "admin@gmail.com", + "property": "field_order", + "property_type": "Data", + "row_name": null, + "value": "[\"company\", \"customer\", \"country\", \"disabled\", \"column_break_9\", \"warehouse\", \"campaign\", \"company_address\", \"custom_posnext_settings\", \"custom_show_order_list_button\", \"custom_show_held_button\", \"custom_mobile_number_based_customer\", \"custom_show_checkout_button\", \"custom_show_item_code\", \"custom_allow_add_new_items_on_new_line\", \"custom_show_posting_date\", \"custom_show_last_incoming_rate\", \"custom_show_oem_part_number\", \"custom_show_logical_rack\", \"custom_edit_rate_and_uom\", \"custom_show_uom_in_cart\", \"show_branch\", \"custom_show_incoming_rate\", \"custom_show_logical_rack_in_cart\", \"custom_use_discount_percentage\", \"custom_use_discount_amount\", \"custom_filter_order_list_by_profile\", \"custom_whatsapp_field_names\", \"custom_whatsapp_message\", \"custom_column_break_veumi\", \"custom_show_only_card_view\", \"custom_show_toggle_recent_orders\", \"custom_show_close_the_pos\", \"custom_show_sales_man\", \"custom_show_additional_note\", \"custom_show_credit_sales\", \"custom_show_alternative_item_for_pos_search\", \"custom_show_save_as_draft\", \"custom_show_open_form_view\", \"custom_show_only_list_view\", \"custom_use_additional_discount_amount\", \"custom_show_last_customer_rate\", \"custom_product_bundle\", \"custom_add_reference_details\", \"custom_mobile_number_length\", \"custom_default_view\", \"section_break_15\", \"applicable_for_users\", \"section_break_11\", \"payments\", \"section_break_14\", \"hide_images\", \"hide_unavailable_items\", \"auto_add_item_to_cart\", \"validate_stock_on_save\", \"custom_skip_stock_transaction_validation\", \"print_receipt_on_order_complete\", \"column_break_16\", \"update_stock\", \"ignore_pricing_rule\", \"allow_rate_change\", \"allow_discount_change\", \"disable_grand_total_to_default_mop\", \"section_break_23\", \"item_groups\", \"column_break_25\", \"customer_groups\", \"section_break_16\", \"print_format\", \"letter_head\", \"column_break0\", \"tc_name\", \"select_print_heading\", \"section_break_19\", \"selling_price_list\", \"currency\", \"write_off_account\", \"write_off_cost_center\", \"write_off_limit\", \"account_for_change_amount\", \"disable_rounded_total\", \"column_break_23\", \"income_account\", \"expense_account\", \"taxes_and_charges\", \"tax_category\", \"apply_discount_on\", \"accounting_dimensions_section\", \"cost_center\", \"dimension_col_break\"]" + } + ], + "sync_on_migrate": 1 +} \ No newline at end of file diff --git a/posnext/public/js/pos_item_cart.js b/posnext/public/js/pos_item_cart.js index 6331626..f323a4e 100644 --- a/posnext/public/js/pos_item_cart.js +++ b/posnext/public/js/pos_item_cart.js @@ -20,6 +20,8 @@ posnext.PointOfSale.ItemCart = class { this.custom_show_last_customer_rate = settings.custom_show_last_customer_rate; this.custom_show_logical_rack_in_cart = settings.custom_show_logical_rack_in_cart && settings.custom_edit_rate_and_uom; this.custom_show_uom_in_cart = settings.custom_show_uom_in_cart && settings.custom_edit_rate_and_uom; + this.show_branch = settings.show_branch; + this.show_batch_in_cart = settings.show_batch_in_cart // this.custom_edit_uom = settings.custom_edit_uom; this.settings = settings; this.warehouse = settings.warehouse; @@ -79,6 +81,9 @@ posnext.PointOfSale.ItemCart = class { if(this.custom_show_uom_in_cart){ html += `
${__('UOM')}
` } + if(this.show_batch_in_cart){ + html += `
${__('Batch')}
` + } if(this.custom_edit_rate){ html += `
${__('Rate')}
` } @@ -102,13 +107,14 @@ posnext.PointOfSale.ItemCart = class { html += `
${__('Amount')}
+
` this.$component.append(html); this.$cart_container = this.$component.find('.cart-container'); - + this.make_branch_section(); this.make_cart_totals_section(); this.make_cart_items_section(); this.make_cart_numpad(); @@ -139,9 +145,55 @@ posnext.PointOfSale.ItemCart = class { ); } + get_branch_icon() { + return ` + + + + `; + } + + make_branch_section() { + if (this.show_branch) { + this.$branch_section = this.$component.find('.cart-branch-section'); + + if (this.$branch_section.length) { + this.$branch_section.append(` +
+
+ ${this.get_branch_icon()} ${__('Add Branch')} +
+ `); + + // Apply styles + this.$branch_section.find('.add-branch-wrapper').css({ + "display": "flex", + "align-items": "center", + "gap": "8px", + "border": "2px dashed #ccc", + "padding": "10px", + "border-radius": "6px", + "cursor": "pointer", + "font-weight": "bold" + }); + + // Change cursor on hover + this.$branch_section.find('.add-branch-wrapper').hover( + function () { + $(this).css("background-color", "#f9f9f9"); + }, + function () { + $(this).css("background-color", "transparent"); + } + ); + } + } + } + + make_cart_totals_section() { this.$totals_section = this.$component.find('.cart-totals-section'); - + this.$totals_section.append( `
${this.get_discount_icon()} ${__('Add Discount')} @@ -470,6 +522,35 @@ this.highlight_checkout_btn(true); if(!this.discount_field || can_edit_discount) this.show_discount_control(); }); + this.$component.on('click', '.add-branch-wrapper', function () { + const $wrapper = $(this); // Store reference to the clicked element + + // Create a div container for the link field + const branchFieldWrapper = $('
'); + + // Replace the wrapper with the new div + $wrapper.replaceWith(branchFieldWrapper); + + // Create a Frappe Link Field dynamically + let branchField = new frappe.ui.form.ControlLink({ + df: { + fieldtype: 'Link', + options: 'Branch', // Link to Branch Doctype + fieldname: 'branch', + label: 'Branch', + placeholder: 'Select Branch', + }, + parent: branchFieldWrapper, // Append inside the same container + value: '', + change: function (value) { + console.log('Selected Branch:', value); + } + }); + + // Render the field + branchField.refresh(); + }); + frappe.ui.form.on("Sales Invoice", "paid_amount", frm => { // called when discount is applied this.update_totals_section(frm); @@ -529,6 +610,8 @@ this.highlight_checkout_btn(true); ignore_inputs: true, page: cur_page.page.page }); + + frappe.ui.keys.on("escape", () => { const item_cart_visible = this.$component.is(":visible"); if (item_cart_visible && this.discount_field && this.discount_field.parent.is(":visible")) { @@ -870,7 +953,6 @@ this.highlight_checkout_btn(true); } render_cart_item(item_data, $item_to_update) { - const currency = this.events.get_frm().doc.currency; const me = this; @@ -936,6 +1018,27 @@ this.highlight_checkout_btn(true); render_input: true, }); } + if(me.show_batch_in_cart){ + this[item_data.item_code + "_batch"] = frappe.ui.form.make_control({ + df: { + fieldname: "batch", + fieldtype: "Link", + options: "Batch", + get_query: function() { + return { + filters: { + item: item_data.item_code + } + }; + }, + onchange: function() { + me.events.form_updated(item_data, "batch_no", this.value); + }, + }, + parent: $item_to_update.find(`.item-batch`), + render_input: true, + }); + } this[item_data.item_code + "_rate"] = frappe.ui.form.make_control({ df: { fieldname: "rate", @@ -1045,7 +1148,9 @@ this.highlight_checkout_btn(true); this[item_data.item_code + "_uom"].set_value(item_data.uom); this[item_data.item_code + "_uom"].refresh(); } - + if(me.show_batch_in_cart){ + this[item_data.item_code + "_batch"].set_value(item_data.batch_no); + } // this[item_data.item_code + "_amount"].set_value(parseFloat(item_data.amount).toFixed(3)); // this[item_data.item_code + "_rate"].set_value(parseFloat(item_data.rate).toFixed(3)); this[item_data.item_code + "_amount"].set_value(item_data.amount); @@ -1111,6 +1216,9 @@ this.highlight_checkout_btn(true); if(me.custom_show_uom_in_cart){ html += `
`; } + if(me.show_batch_in_cart){ + html += `
`; + } html += `
`; if(me.custom_use_discount_percentage){ html += `
` @@ -1138,6 +1246,9 @@ this.highlight_checkout_btn(true); if(me.custom_show_uom_in_cart){ html += `
`; } + if(me.show_batch_in_cart){ + html += `
`; + } html += `
`; if(me.custom_use_discount_percentage){ html += `
` @@ -1165,6 +1276,7 @@ this.highlight_checkout_btn(true);
${item_data.qty || 0}
${item_data.uom}
+
${item_data.batch}
${parseFloat(item_data.amount).toFixed(2)}
${parseFloat(item_data.rate).toFixed(2)}
@@ -1175,6 +1287,7 @@ this.highlight_checkout_btn(true);
${item_data.qty || 0}
${item_data.uom}
+
${item_data.batch}
${parseFloat(item_data.rate).toFixed(2)}
diff --git a/posnext/public/js/pos_item_selector.js b/posnext/public/js/pos_item_selector.js index 3dfba59..e724649 100644 --- a/posnext/public/js/pos_item_selector.js +++ b/posnext/public/js/pos_item_selector.js @@ -416,6 +416,7 @@ posnext.PointOfSale.ItemSelector = class {
${format_currency(item_data.price_list_rate, currency)}
${item_data.actual_qty || 0}
+
${item_data.batch_no || 0}
` } else { @@ -425,6 +426,7 @@ posnext.PointOfSale.ItemSelector = class {
${format_currency(item_data.price_list_rate, currency)}
${item_data.actual_qty || 0}
+
${item_data.batch_no || 0}
` } diff --git a/posnext/public/js/pos_payment.js b/posnext/public/js/pos_payment.js index 7da42c4..d1dc811 100644 --- a/posnext/public/js/pos_payment.js +++ b/posnext/public/js/pos_payment.js @@ -10,9 +10,13 @@ posnext.PointOfSale.Payment = class { this.custom_show_credit_sales = settings.custom_show_credit_sales this.default_payment = settings.default_payment this.current_payments = [] + this.enable_coupon_code = settings.enable_coupon_code this.init_component(); // this.init_component(); + if (this.enable_coupon_code){ + this.render_coupon_code_field(); + } } init_component() { @@ -31,6 +35,7 @@ posnext.PointOfSale.Payment = class {
+
@@ -41,13 +46,31 @@ posnext.PointOfSale.Payment = class {
${__("Complete Order")}
` ); + + // ✅ Assign to the right class this.$component = this.wrapper.find('.payment-container'); this.$payment_modes = this.$component.find('.payment-modes'); this.$totals_section = this.$component.find('.totals-section'); this.$totals = this.$component.find('.totals'); this.$numpad = this.$component.find('.number-pad'); + this.$coupon_code = this.$component.find('.coupon-code'); this.$invoice_fields_section = this.$component.find('.fields-section'); } + + render_coupon_code_field() { + frappe.ui.form.make_control({ + df: { + label: __('Coupon Code'), + fieldtype: 'Link', + options: 'Coupon Code', + fieldname: 'coupon_code', + placeholder: __('Select a coupon'), + }, + parent: this.$component.find('.coupon-code'), + render_input: true + }); + } + make_invoice_fields_control() { // frappe.db.get_doc("POS Settings", undefined).then((doc) => { @@ -625,6 +648,9 @@ posnext.PointOfSale.Payment = class { update_totals_section(doc) { if (!doc) doc = this.events.get_frm().doc; + let branch_value = $('.input-with-feedback[data-fieldname="branch"]').val(); + frappe.model.set_value(cur_frm.doctype, cur_frm.docname, 'branch', branch_value); + cur_frm.save() // doc.paid_amount = doc.grand_total const paid_amount = doc.paid_amount;