diff --git a/posawesome/__init__.py b/posawesome/__init__.py index cfacd300e..374c2ebcb 100644 --- a/posawesome/__init__.py +++ b/posawesome/__init__.py @@ -1,9 +1,4 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -import frappe __version__ = "6.3.0" - - -def console(*data): - frappe.publish_realtime("toconsole", data, user=frappe.session.user) diff --git a/posawesome/api.py b/posawesome/api.py new file mode 100644 index 000000000..7e2d95bd0 --- /dev/null +++ b/posawesome/api.py @@ -0,0 +1,22 @@ +# posawesome/posawesome/api.py + +import frappe +from frappe import _ + +@frappe.whitelist() +def pay_commission(sales_invoice): + if not sales_invoice: + frappe.throw(_("Sales Invoice is required.")) + + # Update the commission_paid check field + frappe.db.set_value("Sales Invoice", sales_invoice, "custom_commission_paid", 1) + frappe.db.commit() + +@frappe.whitelist() +def pay_partner_commission(sales_invoice): + if not sales_invoice: + frappe.throw(_("Sales Invoice is required.")) + + # Update the commission_paid check field + frappe.db.set_value("Sales Invoice", sales_invoice, "custom_partner_commission_paid", 1) + frappe.db.commit() diff --git a/posawesome/fixtures/custom_field.json b/posawesome/fixtures/custom_field.json index 2e00aea31..ffdaf3860 100644 --- a/posawesome/fixtures/custom_field.json +++ b/posawesome/fixtures/custom_field.json @@ -65,7 +65,7 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", + "dt": "Sales Order Item", "fetch_from": null, "fetch_if_empty": 0, "fieldname": "posa_notes", @@ -80,15 +80,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "item_code", + "insert_after": "ensure_delivery_based_on_produced_serial_no", "is_system_generated": 0, "is_virtual": 0, "label": "Additional Notes", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-21 15:28:50.283526", + "modified": "2021-06-21 16:17:25.085195", "module": null, - "name": "Sales Invoice Item-posa_notes", + "name": "Sales Order Item-posa_notes", "no_copy": 0, "non_negative": 0, "options": null, @@ -119,7 +119,7 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Order Item", + "dt": "Sales Invoice Item", "fetch_from": null, "fetch_if_empty": 0, "fieldname": "posa_notes", @@ -134,15 +134,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "ensure_delivery_based_on_produced_serial_no", + "insert_after": "item_code", "is_system_generated": 0, "is_virtual": 0, "label": "Additional Notes", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-21 16:17:25.085195", + "modified": "2021-06-21 15:28:50.283526", "module": null, - "name": "Sales Order Item-posa_notes", + "name": "Sales Invoice Item-posa_notes", "no_copy": 0, "non_negative": 0, "options": null, @@ -227,11 +227,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", + "dt": "Sales Order Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_delivery_date", - "fieldtype": "Date", + "fieldname": "posa_row_id", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -242,15 +242,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_row_id", + "insert_after": "item_name", "is_system_generated": 0, "is_virtual": 0, - "label": "Delivery Date", + "label": "Row ID", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-21 15:40:02.062423", + "modified": "2021-08-21 14:16:22.909705", "module": null, - "name": "Sales Invoice Item-posa_delivery_date", + "name": "Sales Order Item-posa_row_id", "no_copy": 0, "non_negative": 0, "options": null, @@ -259,13 +259,13 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 0, + "read_only": 1, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, "search_index": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -281,11 +281,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Order Item", + "dt": "Sales Invoice Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_row_id", - "fieldtype": "Data", + "fieldname": "posa_delivery_date", + "fieldtype": "Date", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -296,15 +296,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "item_name", + "insert_after": "posa_row_id", "is_system_generated": 0, "is_virtual": 0, - "label": "Row ID", + "label": "Delivery Date", "length": 0, "mandatory_depends_on": null, - "modified": "2021-08-21 14:16:22.909705", + "modified": "2021-06-21 15:40:02.062423", "module": null, - "name": "Sales Order Item-posa_row_id", + "name": "Sales Invoice Item-posa_delivery_date", "no_copy": 0, "non_negative": 0, "options": null, @@ -313,13 +313,13 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 1, + "read_only": 0, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, "search_index": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -327,19 +327,19 @@ "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, - "collapsible": 1, + "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Batch", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_pos_awesome_settings", - "fieldtype": "Section Break", + "fieldname": "posa_batch_price", + "fieldtype": "Float", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -350,15 +350,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "company_address", + "insert_after": "manufacturing_date", "is_system_generated": 0, "is_virtual": 0, - "label": "POS Awesome Settings", + "label": "Price", "length": 0, "mandatory_depends_on": null, - "modified": "2020-10-09 15:36:23.711921", + "modified": "2020-10-26 02:31:58.913688", "module": null, - "name": "POS Profile-posa_pos_awesome_settings", + "name": "Batch-posa_batch_price", "no_copy": 0, "non_negative": 0, "options": null, @@ -386,14 +386,14 @@ "columns": 0, "default": null, "depends_on": null, - "description": "For POS Closing Shift Payment Reconciliation", + "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_cash_mode_of_payment", - "fieldtype": "Link", + "fieldname": "posa_pos_opening_shift", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -403,31 +403,31 @@ "in_global_search": 0, "in_list_view": 0, "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "posa_pos_awesome_settings", + "in_standard_filter": 1, + "insert_after": "pos_profile", "is_system_generated": 0, "is_virtual": 0, - "label": "Cash Mode of Payment", + "label": "POS Shift", "length": 0, "mandatory_depends_on": null, - "modified": "2021-03-06 00:29:24.240940", + "modified": "2020-09-27 03:15:11.844405", "module": null, - "name": "POS Profile-posa_cash_mode_of_payment", - "no_copy": 0, + "name": "Sales Invoice-posa_pos_opening_shift", + "no_copy": 1, "non_negative": 0, - "options": "Mode of Payment", + "options": null, "permlevel": 0, "precision": "", - "print_hide": 0, + "print_hide": 1, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 0, + "read_only": 1, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, "search_index": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -438,16 +438,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": "", "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "Address", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_discount", - "fieldtype": "Float", + "fieldname": "posa_delivery_charges", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -458,18 +458,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "lead_name", + "insert_after": "is_shipping_address", "is_system_generated": 0, "is_virtual": 0, - "label": "Discount %", + "label": "Delivery Charges", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-04 21:02:31.784347", + "modified": "2022-07-24 17:20:00.246026", "module": null, - "name": "Customer-posa_discount", + "name": "Address-posa_delivery_charges", "no_copy": 0, - "non_negative": 1, - "options": null, + "non_negative": 0, + "options": "Delivery Charges", "permlevel": 0, "precision": "", "print_hide": 0, @@ -492,15 +492,15 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_delete", + "fieldname": "posa_is_printed", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -511,16 +511,16 @@ "in_global_search": 0, "in_list_view": 0, "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "posa_cash_mode_of_payment", + "in_standard_filter": 1, + "insert_after": "posa_pos_opening_shift", "is_system_generated": 0, "is_virtual": 0, - "label": "Auto Delete Draft Invoice", + "label": "Printed", "length": 0, "mandatory_depends_on": null, - "modified": "2020-10-09 16:01:30.649938", + "modified": "2020-11-02 02:48:23.877227", "module": null, - "name": "POS Profile-posa_allow_delete", + "name": "Sales Invoice-posa_is_printed", "no_copy": 0, "non_negative": 0, "options": null, @@ -529,7 +529,7 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 0, + "read_only": 1, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, @@ -543,19 +543,19 @@ "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, - "collapsible": 0, + "collapsible": 1, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Batch", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_batch_price", - "fieldtype": "Float", + "fieldname": "posa_pos_awesome_settings", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -566,15 +566,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "manufacturing_date", + "insert_after": "company_address", "is_system_generated": 0, "is_virtual": 0, - "label": "Price", + "label": "POS Awesome Settings", "length": 0, "mandatory_depends_on": null, - "modified": "2020-10-26 02:31:58.913688", + "modified": "2025-09-05 12:45:54.403761", "module": null, - "name": "Batch-posa_batch_price", + "name": "POS Profile-posa_pos_awesome_settings", "no_copy": 0, "non_negative": 0, "options": null, @@ -600,16 +600,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, - "description": null, + "description": "For POS Closing Shift Payment Reconciliation", "docstatus": 0, "doctype": "Custom Field", "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_user_to_edit_rate", - "fieldtype": "Check", + "fieldname": "posa_cash_mode_of_payment", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -620,18 +620,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_delete", + "insert_after": "posa_pos_awesome_settings", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow user to edit Rate", + "label": "Cash Mode of Payment", "length": 0, "mandatory_depends_on": null, - "modified": "2020-10-09 16:01:30.936524", + "modified": "2021-03-06 00:29:24.240940", "module": null, - "name": "POS Profile-posa_allow_user_to_edit_rate", + "name": "POS Profile-posa_cash_mode_of_payment", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Mode of Payment", "permlevel": 0, "precision": "", "print_hide": 0, @@ -654,16 +654,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_user_to_edit_additional_discount", - "fieldtype": "Check", + "fieldname": "posa_discount", + "fieldtype": "Float", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -674,17 +674,17 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_user_to_edit_rate", + "insert_after": "lead_name", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow user to edit Additional Discount", + "label": "Discount %", "length": 0, - "mandatory_depends_on": "0", - "modified": "2020-10-09 16:01:31.157157", + "mandatory_depends_on": null, + "modified": "2021-06-04 21:02:31.784347", "module": null, - "name": "POS Profile-posa_allow_user_to_edit_additional_discount", + "name": "Customer-posa_discount", "no_copy": 0, - "non_negative": 0, + "non_negative": 1, "options": null, "permlevel": 0, "precision": "", @@ -709,14 +709,14 @@ "collapsible_depends_on": null, "columns": 0, "default": "0", - "depends_on": "posa_allow_user_to_edit_additional_discount", + "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_use_percentage_discount", + "fieldname": "posa_allow_delete", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -728,15 +728,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_user_to_edit_additional_discount", + "insert_after": "posa_cash_mode_of_payment", "is_system_generated": 0, "is_virtual": 0, - "label": "Use Percentage Discount", + "label": "Auto Delete Draft Invoice", "length": 0, - "mandatory_depends_on": "", - "modified": "2021-09-26 14:08:06.765185", + "mandatory_depends_on": null, + "modified": "2020-10-09 16:01:30.649938", "module": null, - "name": "POS Profile-posa_use_percentage_discount", + "name": "POS Profile-posa_allow_delete", "no_copy": 0, "non_negative": 0, "options": null, @@ -763,15 +763,15 @@ "collapsible_depends_on": null, "columns": 0, "default": "0", - "depends_on": "", + "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_max_discount_allowed", - "fieldtype": "Float", + "fieldname": "posa_allow_user_to_edit_rate", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -782,15 +782,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_use_percentage_discount", + "insert_after": "posa_allow_delete", "is_system_generated": 0, "is_virtual": 0, - "label": "Max Discount Percentage Allowed ", + "label": "Allow user to edit Rate", "length": 0, "mandatory_depends_on": null, - "modified": "2020-10-26 05:11:52.101322", + "modified": "2020-10-09 16:01:30.936524", "module": null, - "name": "POS Profile-posa_max_discount_allowed", + "name": "POS Profile-posa_allow_user_to_edit_rate", "no_copy": 0, "non_negative": 0, "options": null, @@ -816,16 +816,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "221", + "default": null, "depends_on": null, - "description": "It is best not to use more than four numbers", + "description": null, "docstatus": 0, "doctype": "Custom Field", "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_scale_barcode_start", - "fieldtype": "Int", + "fieldname": "posa_allow_user_to_edit_additional_discount", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -836,15 +836,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_max_discount_allowed", + "insert_after": "posa_allow_user_to_edit_rate", "is_system_generated": 0, "is_virtual": 0, - "label": "Scale Barcode Start With", + "label": "Allow user to edit Additional Discount", "length": 0, - "mandatory_depends_on": null, - "modified": "2020-10-30 03:54:32.270370", + "mandatory_depends_on": "0", + "modified": "2020-10-09 16:01:31.157157", "module": null, - "name": "POS Profile-posa_scale_barcode_start", + "name": "POS Profile-posa_allow_user_to_edit_additional_discount", "no_copy": 0, "non_negative": 0, "options": null, @@ -870,15 +870,15 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, - "depends_on": null, + "default": "0", + "depends_on": "posa_allow_user_to_edit_additional_discount", "description": null, "docstatus": 0, "doctype": "Custom Field", "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_change_posting_date", + "fieldname": "posa_use_percentage_discount", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -890,15 +890,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_scale_barcode_start", + "insert_after": "posa_allow_user_to_edit_additional_discount", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow Change Posting Date", + "label": "Use Percentage Discount", "length": 0, - "mandatory_depends_on": null, - "modified": "2022-12-16 11:20:05.134781", + "mandatory_depends_on": "", + "modified": "2021-09-26 14:08:06.765185", "module": null, - "name": "POS Profile-posa_allow_change_posting_date", + "name": "POS Profile-posa_use_percentage_discount", "no_copy": 0, "non_negative": 0, "options": null, @@ -924,16 +924,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, - "depends_on": null, + "default": "0", + "depends_on": "", "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_pos_opening_shift", - "fieldtype": "Data", + "fieldname": "posa_max_discount_allowed", + "fieldtype": "Float", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -943,31 +943,31 @@ "in_global_search": 0, "in_list_view": 0, "in_preview": 0, - "in_standard_filter": 1, - "insert_after": "pos_profile", + "in_standard_filter": 0, + "insert_after": "posa_use_percentage_discount", "is_system_generated": 0, "is_virtual": 0, - "label": "POS Shift", + "label": "Max Discount Percentage Allowed ", "length": 0, "mandatory_depends_on": null, - "modified": "2020-09-27 03:15:11.844405", + "modified": "2020-10-26 05:11:52.101322", "module": null, - "name": "Sales Invoice-posa_pos_opening_shift", - "no_copy": 1, + "name": "POS Profile-posa_max_discount_allowed", + "no_copy": 0, "non_negative": 0, "options": null, "permlevel": 0, "precision": "", - "print_hide": 1, + "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 1, + "read_only": 0, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, "search_index": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -978,16 +978,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "", + "default": "221", "depends_on": null, - "description": null, + "description": "It is best not to use more than four numbers", "docstatus": 0, "doctype": "Custom Field", - "dt": "Address", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_delivery_charges", - "fieldtype": "Link", + "fieldname": "posa_scale_barcode_start", + "fieldtype": "Int", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -998,18 +998,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "is_shipping_address", + "insert_after": "posa_max_discount_allowed", "is_system_generated": 0, "is_virtual": 0, - "label": "Delivery Charges", + "label": "Scale Barcode Start With", "length": 0, "mandatory_depends_on": null, - "modified": "2022-07-24 17:20:00.246026", + "modified": "2020-10-30 03:54:32.270370", "module": null, - "name": "Address-posa_delivery_charges", + "name": "POS Profile-posa_scale_barcode_start", "no_copy": 0, "non_negative": 0, - "options": "Delivery Charges", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1040,7 +1040,7 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_default_card_view", + "fieldname": "posa_allow_change_posting_date", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -1052,15 +1052,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_change_posting_date", + "insert_after": "posa_scale_barcode_start", "is_system_generated": 0, "is_virtual": 0, - "label": "Default Card View", + "label": "Allow Change Posting Date", "length": 0, "mandatory_depends_on": null, - "modified": "2023-03-12 14:03:44.088542", + "modified": "2022-12-16 11:20:05.134781", "module": null, - "name": "POS Profile-posa_default_card_view", + "name": "POS Profile-posa_allow_change_posting_date", "no_copy": 0, "non_negative": 0, "options": null, @@ -1091,10 +1091,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_is_printed", + "fieldname": "posa_default_card_view", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -1105,16 +1105,16 @@ "in_global_search": 0, "in_list_view": 0, "in_preview": 0, - "in_standard_filter": 1, - "insert_after": "posa_pos_opening_shift", + "in_standard_filter": 0, + "insert_after": "posa_allow_change_posting_date", "is_system_generated": 0, "is_virtual": 0, - "label": "Printed", + "label": "Default Card View", "length": 0, "mandatory_depends_on": null, - "modified": "2020-11-02 02:48:23.877227", + "modified": "2023-03-12 14:03:44.088542", "module": null, - "name": "Sales Invoice-posa_is_printed", + "name": "POS Profile-posa_default_card_view", "no_copy": 0, "non_negative": 0, "options": null, @@ -1123,7 +1123,7 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 1, + "read_only": 0, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, @@ -1569,19 +1569,19 @@ "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, - "collapsible": 0, + "collapsible": 1, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Company", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "use_cashback", - "fieldtype": "Check", + "fieldname": "posa_referral_section", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -1592,15 +1592,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_apply_customer_discount", + "insert_after": "total_monthly_sales", "is_system_generated": 0, "is_virtual": 0, - "label": "Use Cashback", + "label": "Referral Code", "length": 0, "mandatory_depends_on": null, - "modified": "2021-03-24 04:35:08.517136", + "modified": "2021-07-29 23:04:22.290849", "module": null, - "name": "POS Profile-use_cashback", + "name": "Company-posa_referral_section", "no_copy": 0, "non_negative": 0, "options": null, @@ -1634,7 +1634,7 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "use_customer_credit", + "fieldname": "use_cashback", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -1646,15 +1646,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "use_cashback", + "insert_after": "posa_apply_customer_discount", "is_system_generated": 0, "is_virtual": 0, - "label": "Use Customer Credit", + "label": "Use Cashback", "length": 0, "mandatory_depends_on": null, - "modified": "2021-03-24 04:51:50.333452", + "modified": "2021-03-24 04:35:08.517136", "module": null, - "name": "POS Profile-use_customer_credit", + "name": "POS Profile-use_cashback", "no_copy": 0, "non_negative": 0, "options": null, @@ -1685,10 +1685,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Company", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_hide_closing_shift", + "fieldname": "posa_auto_referral", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -1700,15 +1700,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "use_customer_credit", + "insert_after": "posa_referral_section", "is_system_generated": 0, "is_virtual": 0, - "label": "Hide Close Shift", + "label": "Auto Create Referral For New Customers", "length": 0, "mandatory_depends_on": null, - "modified": "2021-04-15 01:14:57.247333", + "modified": "2021-07-29 23:07:08.681215", "module": null, - "name": "POS Profile-posa_hide_closing_shift", + "name": "Company-posa_auto_referral", "no_copy": 0, "non_negative": 0, "options": null, @@ -1734,7 +1734,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, @@ -1742,7 +1742,7 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_auto_set_batch", + "fieldname": "use_customer_credit", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -1754,15 +1754,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_hide_closing_shift", + "insert_after": "use_cashback", "is_system_generated": 0, "is_virtual": 0, - "label": "Auto Set Batch", + "label": "Use Customer Credit", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-20 20:25:37.627551", + "modified": "2021-03-24 04:51:50.333452", "module": null, - "name": "POS Profile-posa_auto_set_batch", + "name": "POS Profile-use_customer_credit", "no_copy": 0, "non_negative": 0, "options": null, @@ -1788,16 +1788,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Company", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_display_item_code", - "fieldtype": "Check", + "fieldname": "posa_column_break_22", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -1808,15 +1808,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_auto_set_batch", + "insert_after": "posa_auto_referral", "is_system_generated": 0, "is_virtual": 0, - "label": "Display Item Code", + "label": "", "length": 0, "mandatory_depends_on": null, - "modified": "2022-05-17 02:45:24.071753", + "modified": "2021-07-29 23:11:04.558635", "module": null, - "name": "POS Profile-posa_display_item_code", + "name": "Company-posa_column_break_22", "no_copy": 0, "non_negative": 0, "options": null, @@ -1850,7 +1850,7 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_zero_rated_items", + "fieldname": "posa_hide_closing_shift", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -1862,15 +1862,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_display_item_code", + "insert_after": "use_customer_credit", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow Zero Rated Items", + "label": "Hide Close Shift", "length": 0, "mandatory_depends_on": null, - "modified": "2022-07-20 15:09:09.652861", + "modified": "2021-04-15 01:14:57.247333", "module": null, - "name": "POS Profile-posa_allow_zero_rated_items", + "name": "POS Profile-posa_hide_closing_shift", "no_copy": 0, "non_negative": 0, "options": null, @@ -1893,7 +1893,7 @@ "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, - "collapsible": 0, + "collapsible": 1, "collapsible_depends_on": null, "columns": 0, "default": null, @@ -1901,11 +1901,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Sales Order", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "hide_expected_amount", - "fieldtype": "Check", + "fieldname": "posa_additional_notes_section", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -1916,15 +1916,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_zero_rated_items", + "insert_after": "items", "is_system_generated": 0, "is_virtual": 0, - "label": "Hide Expected Amount", + "label": "Additional Notes", "length": 0, "mandatory_depends_on": null, - "modified": "2022-12-15 16:57:46.117639", + "modified": "2021-06-21 16:11:59.366893", "module": null, - "name": "POS Profile-hide_expected_amount", + "name": "Sales Order-posa_additional_notes_section", "no_copy": 0, "non_negative": 0, "options": null, @@ -1951,15 +1951,15 @@ "collapsible_depends_on": null, "columns": 0, "default": null, - "depends_on": null, + "depends_on": "posa_auto_referral", "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Company", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_column_break_112", - "fieldtype": "Column Break", + "fieldname": "posa_customer_offer", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -1970,18 +1970,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "hide_expected_amount", + "insert_after": "posa_column_break_22", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Final Customer Offer", "length": 0, - "mandatory_depends_on": null, - "modified": "2021-06-23 22:48:40.886230", + "mandatory_depends_on": "posa_auto_referral", + "modified": "2021-07-29 23:11:04.891539", "module": null, - "name": "POS Profile-posa_column_break_112", + "name": "Company-posa_customer_offer", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "POS Offer", "permlevel": 0, "precision": "", "print_hide": 0, @@ -2012,7 +2012,7 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_sales_order", + "fieldname": "posa_auto_set_batch", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -2024,15 +2024,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_column_break_112", + "insert_after": "posa_hide_closing_shift", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow Create Sales Order", + "label": "Auto Set Batch", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-22 03:02:27.784096", + "modified": "2021-06-20 20:25:37.627551", "module": null, - "name": "POS Profile-posa_allow_sales_order", + "name": "POS Profile-posa_auto_set_batch", "no_copy": 0, "non_negative": 0, "options": null, @@ -2051,64 +2051,11 @@ "unique": 0, "width": null }, - { - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "doctype": "Custom Field", - "dt": "POS Profile", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_allow_select_sales_order", - "fieldtype": "Check", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 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": "posa_allow_sales_order", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Allow Select Sales Order", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-11-13 12:16:27.784096", - "module": null, - "name": "POS Profile-custom_allow_select_sales_order", - "no_copy": 0, - "non_negative": 0, - "options": null, - "permlevel": 0, - "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, - "translatable": 0, - "unique": 0, - "width": null -}, { "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, - "collapsible": 1, + "collapsible": 0, "collapsible_depends_on": null, "columns": 0, "default": null, @@ -2116,11 +2063,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Company", + "dt": "Sales Order", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_referral_section", - "fieldtype": "Section Break", + "fieldname": "posa_notes", + "fieldtype": "Small Text", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2131,15 +2078,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "total_monthly_sales", + "insert_after": "posa_additional_notes_section", "is_system_generated": 0, "is_virtual": 0, - "label": "Referral Code", + "label": "Additional Notes", "length": 0, "mandatory_depends_on": null, - "modified": "2021-07-29 23:04:22.290849", + "modified": "2021-06-21 16:11:59.829304", "module": null, - "name": "Company-posa_referral_section", + "name": "Sales Order-posa_notes", "no_copy": 0, "non_negative": 0, "options": null, @@ -2154,7 +2101,7 @@ "reqd": 0, "search_index": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -2166,15 +2113,15 @@ "collapsible_depends_on": null, "columns": 0, "default": null, - "depends_on": null, + "depends_on": "posa_auto_referral", "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Company", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_show_template_items", - "fieldtype": "Check", + "fieldname": "posa_primary_offer", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2185,18 +2132,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_sales_order", + "insert_after": "posa_customer_offer", "is_system_generated": 0, "is_virtual": 0, - "label": "Show Template Items", + "label": "Primary Customer Offer", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-23 22:48:41.288938", + "modified": "2021-07-29 23:11:05.290809", "module": null, - "name": "POS Profile-posa_show_template_items", + "name": "Company-posa_primary_offer", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "POS Offer", "permlevel": 0, "precision": "", "print_hide": 0, @@ -2219,15 +2166,15 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Company", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_auto_referral", + "fieldname": "posa_display_item_code", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -2239,15 +2186,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_referral_section", + "insert_after": "posa_auto_set_batch", "is_system_generated": 0, "is_virtual": 0, - "label": "Auto Create Referral For New Customers", + "label": "Display Item Code", "length": 0, "mandatory_depends_on": null, - "modified": "2021-07-29 23:07:08.681215", + "modified": "2022-05-17 02:45:24.071753", "module": null, - "name": "Company-posa_auto_referral", + "name": "POS Profile-posa_display_item_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -2273,16 +2220,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, - "depends_on": "posa_show_template_items", + "default": "", + "depends_on": "posa_auto_referral", "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Company", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_hide_variants_items", - "fieldtype": "Check", + "fieldname": "posa_referral_campaign", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2293,18 +2240,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_show_template_items", + "insert_after": "posa_primary_offer", "is_system_generated": 0, "is_virtual": 0, - "label": "Hide Variants Items", + "label": "Referral Campaign", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-24 03:24:52.591942", + "modified": "2021-07-29 23:11:05.723688", "module": null, - "name": "POS Profile-posa_hide_variants_items", + "name": "Company-posa_referral_campaign", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Campaign", "permlevel": 0, "precision": "", "print_hide": 0, @@ -2324,7 +2271,7 @@ "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, - "collapsible": 1, + "collapsible": 0, "collapsible_depends_on": null, "columns": 0, "default": null, @@ -2332,11 +2279,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Order", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_additional_notes_section", - "fieldtype": "Section Break", + "fieldname": "posa_allow_zero_rated_items", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2347,15 +2294,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "items", + "insert_after": "posa_display_item_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Additional Notes", + "label": "Allow Zero Rated Items", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-21 16:11:59.366893", + "modified": "2022-07-20 15:09:09.652861", "module": null, - "name": "Sales Order-posa_additional_notes_section", + "name": "POS Profile-posa_allow_zero_rated_items", "no_copy": 0, "non_negative": 0, "options": null, @@ -2386,11 +2333,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Company", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_column_break_22", - "fieldtype": "Column Break", + "fieldname": "hide_expected_amount", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2401,15 +2348,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_auto_referral", + "insert_after": "posa_allow_zero_rated_items", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Hide Expected Amount", "length": 0, "mandatory_depends_on": null, - "modified": "2021-07-29 23:11:04.558635", + "modified": "2022-12-15 16:57:46.117639", "module": null, - "name": "Company-posa_column_break_22", + "name": "POS Profile-hide_expected_amount", "no_copy": 0, "non_negative": 0, "options": null, @@ -2443,8 +2390,8 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_fetch_coupon", - "fieldtype": "Check", + "fieldname": "posa_column_break_112", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2455,15 +2402,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_hide_variants_items", + "insert_after": "hide_expected_amount", "is_system_generated": 0, "is_virtual": 0, - "label": "Auto Fetch Coupon Gifts", + "label": "", "length": 0, "mandatory_depends_on": null, - "modified": "2021-07-29 22:58:10.372543", + "modified": "2021-06-23 22:48:40.886230", "module": null, - "name": "POS Profile-posa_fetch_coupon", + "name": "POS Profile-posa_column_break_112", "no_copy": 0, "non_negative": 0, "options": null, @@ -2494,11 +2441,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Order", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_notes", - "fieldtype": "Small Text", + "fieldname": "posa_allow_sales_order", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2509,15 +2456,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_additional_notes_section", + "insert_after": "posa_column_break_112", "is_system_generated": 0, "is_virtual": 0, - "label": "Additional Notes", + "label": "Allow Create Sales Order", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-21 16:11:59.829304", + "modified": "2021-06-22 03:02:27.784096", "module": null, - "name": "Sales Order-posa_notes", + "name": "POS Profile-posa_allow_sales_order", "no_copy": 0, "non_negative": 0, "options": null, @@ -2532,7 +2479,7 @@ "reqd": 0, "search_index": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -2544,15 +2491,15 @@ "collapsible_depends_on": null, "columns": 0, "default": null, - "depends_on": "posa_auto_referral", + "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Company", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_customer_offer", - "fieldtype": "Link", + "fieldname": "posa_show_template_items", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2563,18 +2510,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_column_break_22", + "insert_after": "posa_allow_sales_order", "is_system_generated": 0, "is_virtual": 0, - "label": "Final Customer Offer", + "label": "Show Template Items", "length": 0, - "mandatory_depends_on": "posa_auto_referral", - "modified": "2021-07-29 23:11:04.891539", + "mandatory_depends_on": null, + "modified": "2021-06-23 22:48:41.288938", "module": null, - "name": "Company-posa_customer_offer", + "name": "POS Profile-posa_show_template_items", "no_copy": 0, "non_negative": 0, - "options": "POS Offer", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -2602,11 +2549,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "Sales Invoice Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_birthday", - "fieldtype": "Date", + "fieldname": "posa_offers", + "fieldtype": "Small Text", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2617,15 +2564,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "contact_html", + "insert_after": "pricing_rules", "is_system_generated": 0, "is_virtual": 0, - "label": "Birthday", + "label": "POS Offers", "length": 0, "mandatory_depends_on": null, - "modified": "2021-07-31 00:12:09.417519", + "modified": "2021-06-07 01:51:16.390447", "module": null, - "name": "Customer-posa_birthday", + "name": "Sales Invoice Item-posa_offers", "no_copy": 0, "non_negative": 0, "options": null, @@ -2634,13 +2581,13 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 0, + "read_only": 1, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, "search_index": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -2651,15 +2598,15 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", - "depends_on": null, + "default": null, + "depends_on": "posa_show_template_items", "description": null, "docstatus": 0, "doctype": "Custom Field", "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_customer_purchase_order", + "fieldname": "posa_hide_variants_items", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -2671,15 +2618,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_fetch_coupon", + "insert_after": "posa_show_template_items", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow Customer Purchase Order", + "label": "Hide Variants Items", "length": 0, "mandatory_depends_on": null, - "modified": "2021-12-16 16:27:32.300240", + "modified": "2021-06-24 03:24:52.591942", "module": null, - "name": "POS Profile-posa_allow_customer_purchase_order", + "name": "POS Profile-posa_hide_variants_items", "no_copy": 0, "non_negative": 0, "options": null, @@ -2706,15 +2653,15 @@ "collapsible_depends_on": null, "columns": 0, "default": null, - "depends_on": "posa_auto_referral", + "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Company", + "dt": "Sales Invoice Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_primary_offer", - "fieldtype": "Link", + "fieldname": "posa_offer_applied", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2725,24 +2672,24 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_customer_offer", + "insert_after": "posa_offers", "is_system_generated": 0, "is_virtual": 0, - "label": "Primary Customer Offer", + "label": "Offer Applied", "length": 0, "mandatory_depends_on": null, - "modified": "2021-07-29 23:11:05.290809", + "modified": "2021-06-12 00:12:28.473489", "module": null, - "name": "Company-posa_primary_offer", + "name": "Sales Invoice Item-posa_offer_applied", "no_copy": 0, "non_negative": 0, - "options": "POS Offer", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 0, + "read_only": 1, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, @@ -2756,7 +2703,7 @@ "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, - "collapsible": 1, + "collapsible": 0, "collapsible_depends_on": null, "columns": 0, "default": null, @@ -2764,11 +2711,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_referral_section", - "fieldtype": "Section Break", + "fieldname": "posa_fetch_coupon", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2779,15 +2726,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_birthday", + "insert_after": "posa_hide_variants_items", "is_system_generated": 0, "is_virtual": 0, - "label": "Referral Code", + "label": "Auto Fetch Coupon Gifts", "length": 0, "mandatory_depends_on": null, - "modified": "2021-07-29 23:23:04.910503", + "modified": "2021-07-29 22:58:10.372543", "module": null, - "name": "Customer-posa_referral_section", + "name": "POS Profile-posa_fetch_coupon", "no_copy": 0, "non_negative": 0, "options": null, @@ -2813,15 +2760,15 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Sales Invoice Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_print_last_invoice", + "fieldname": "posa_is_offer", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -2830,18 +2777,18 @@ "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, - "in_list_view": 0, + "in_list_view": 1, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_customer_purchase_order", + "insert_after": "posa_offer_applied", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow Print Last Invoice", + "label": "Is Offer", "length": 0, "mandatory_depends_on": null, - "modified": "2021-12-16 18:00:40.631156", + "modified": "2021-06-12 00:14:20.894553", "module": null, - "name": "POS Profile-posa_allow_print_last_invoice", + "name": "Sales Invoice Item-posa_is_offer", "no_copy": 0, "non_negative": 0, "options": null, @@ -2850,7 +2797,7 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 0, + "read_only": 1, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, @@ -2867,16 +2814,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "", - "depends_on": "posa_auto_referral", + "default": null, + "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Company", + "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_referral_campaign", - "fieldtype": "Link", + "fieldname": "posa_birthday", + "fieldtype": "Date", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2887,18 +2834,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_primary_offer", + "insert_after": "contact_html", "is_system_generated": 0, "is_virtual": 0, - "label": "Referral Campaign", + "label": "Birthday", "length": 0, "mandatory_depends_on": null, - "modified": "2021-07-29 23:11:05.723688", + "modified": "2021-07-31 00:12:09.417519", "module": null, - "name": "Company-posa_referral_campaign", + "name": "Customer-posa_birthday", "no_copy": 0, "non_negative": 0, - "options": "Campaign", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -2915,22 +2862,22 @@ "width": null }, { - "allow_in_quick_entry": 1, + "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_referral_code", - "fieldtype": "Data", + "fieldname": "posa_allow_customer_purchase_order", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2941,16 +2888,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_referral_section", + "insert_after": "posa_fetch_coupon", "is_system_generated": 0, "is_virtual": 0, - "label": "Referral Code", + "label": "Allow Customer Purchase Order", "length": 0, "mandatory_depends_on": null, - "modified": "2021-07-29 22:42:57.772021", + "modified": "2021-12-16 16:27:32.300240", "module": null, - "name": "Customer-posa_referral_code", - "no_copy": 1, + "name": "POS Profile-posa_allow_customer_purchase_order", + "no_copy": 0, "non_negative": 0, "options": null, "permlevel": 0, @@ -2964,7 +2911,7 @@ "reqd": 0, "search_index": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -2976,15 +2923,15 @@ "collapsible_depends_on": null, "columns": 0, "default": null, - "depends_on": null, + "depends_on": "", "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Sales Invoice Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_display_additional_notes", - "fieldtype": "Check", + "fieldname": "posa_is_replace", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2995,15 +2942,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_print_last_invoice", + "insert_after": "posa_is_offer", "is_system_generated": 0, "is_virtual": 0, - "label": "Display Additional Notes", + "label": "Is Offer Replace For item Row ID", "length": 0, "mandatory_depends_on": null, - "modified": "2021-12-19 16:54:32.986600", + "modified": "2021-06-17 18:10:36.233226", "module": null, - "name": "POS Profile-posa_display_additional_notes", + "name": "Sales Invoice Item-posa_is_replace", "no_copy": 0, "non_negative": 0, "options": null, @@ -3012,21 +2959,21 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 0, + "read_only": 1, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, "search_index": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, { - "allow_in_quick_entry": 1, + "allow_in_quick_entry": 0, "allow_on_submit": 0, - "bold": 1, - "collapsible": 0, + "bold": 0, + "collapsible": 1, "collapsible_depends_on": null, "columns": 0, "default": null, @@ -3037,8 +2984,8 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_referral_company", - "fieldtype": "Link", + "fieldname": "posa_referral_section", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3049,18 +2996,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_referral_code", + "insert_after": "posa_birthday", "is_system_generated": 0, "is_virtual": 0, - "label": "Referral Company", + "label": "Referral Code", "length": 0, "mandatory_depends_on": null, - "modified": "2021-07-29 23:24:11.207034", + "modified": "2021-07-29 23:23:04.910503", "module": null, - "name": "Customer-posa_referral_company", - "no_copy": 1, + "name": "Customer-posa_referral_section", + "no_copy": 0, "non_negative": 0, - "options": "Company", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -3083,7 +3030,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, @@ -3091,7 +3038,7 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_write_off_change", + "fieldname": "posa_allow_print_last_invoice", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -3103,15 +3050,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_display_additional_notes", + "insert_after": "posa_allow_customer_purchase_order", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow Write Off Change", + "label": "Allow Print Last Invoice", "length": 0, "mandatory_depends_on": null, - "modified": "2022-02-12 04:26:04.003374", + "modified": "2021-12-16 18:00:40.631156", "module": null, - "name": "POS Profile-posa_allow_write_off_change", + "name": "POS Profile-posa_allow_print_last_invoice", "no_copy": 0, "non_negative": 0, "options": null, @@ -3131,7 +3078,7 @@ "width": null }, { - "allow_in_quick_entry": 0, + "allow_in_quick_entry": 1, "allow_on_submit": 0, "bold": 0, "collapsible": 0, @@ -3142,11 +3089,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", + "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_offers", - "fieldtype": "Small Text", + "fieldname": "posa_referral_code", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3157,16 +3104,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "pricing_rules", + "insert_after": "posa_referral_section", "is_system_generated": 0, "is_virtual": 0, - "label": "POS Offers", + "label": "Referral Code", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-07 01:51:16.390447", + "modified": "2021-07-29 22:42:57.772021", "module": null, - "name": "Sales Invoice Item-posa_offers", - "no_copy": 0, + "name": "Customer-posa_referral_code", + "no_copy": 1, "non_negative": 0, "options": null, "permlevel": 0, @@ -3174,7 +3121,7 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 1, + "read_only": 0, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, @@ -3191,7 +3138,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, @@ -3199,7 +3146,7 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_new_line", + "fieldname": "posa_display_additional_notes", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -3211,15 +3158,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_write_off_change", + "insert_after": "posa_allow_print_last_invoice", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow add New Items on New Line", + "label": "Display Additional Notes", "length": 0, "mandatory_depends_on": null, - "modified": "2022-05-17 01:01:52.106645", + "modified": "2021-12-19 16:54:32.986600", "module": null, - "name": "POS Profile-posa_new_line", + "name": "POS Profile-posa_display_additional_notes", "no_copy": 0, "non_negative": 0, "options": null, @@ -3239,9 +3186,9 @@ "width": null }, { - "allow_in_quick_entry": 0, + "allow_in_quick_entry": 1, "allow_on_submit": 0, - "bold": 0, + "bold": 1, "collapsible": 0, "collapsible_depends_on": null, "columns": 0, @@ -3250,11 +3197,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", + "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_offer_applied", - "fieldtype": "Check", + "fieldname": "posa_referral_company", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3265,24 +3212,24 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_offers", + "insert_after": "posa_referral_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Offer Applied", + "label": "Referral Company", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-12 00:12:28.473489", + "modified": "2021-07-29 23:24:11.207034", "module": null, - "name": "Sales Invoice Item-posa_offer_applied", - "no_copy": 0, + "name": "Customer-posa_referral_company", + "no_copy": 1, "non_negative": 0, - "options": null, + "options": "Company", "permlevel": 0, "precision": "", "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 1, + "read_only": 0, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, @@ -3299,7 +3246,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, @@ -3307,7 +3254,7 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_input_qty", + "fieldname": "posa_allow_write_off_change", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -3319,15 +3266,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_new_line", + "insert_after": "posa_display_additional_notes", "is_system_generated": 0, "is_virtual": 0, - "label": "Use QTY Input", + "label": "Allow Write Off Change", "length": 0, "mandatory_depends_on": null, - "modified": "2022-05-17 02:17:13.591004", + "modified": "2022-02-12 04:26:04.003374", "module": null, - "name": "POS Profile-posa_input_qty", + "name": "POS Profile-posa_allow_write_off_change", "no_copy": 0, "non_negative": 0, "options": null, @@ -3353,15 +3300,15 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_is_offer", + "fieldname": "posa_new_line", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -3370,18 +3317,18 @@ "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, - "in_list_view": 1, + "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_offer_applied", + "insert_after": "posa_allow_write_off_change", "is_system_generated": 0, "is_virtual": 0, - "label": "Is Offer", + "label": "Allow add New Items on New Line", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-12 00:14:20.894553", + "modified": "2022-05-17 01:01:52.106645", "module": null, - "name": "Sales Invoice Item-posa_is_offer", + "name": "POS Profile-posa_new_line", "no_copy": 0, "non_negative": 0, "options": null, @@ -3390,7 +3337,7 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 1, + "read_only": 0, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, @@ -3407,7 +3354,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, @@ -3415,7 +3362,7 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_print_draft_invoices", + "fieldname": "posa_input_qty", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -3427,15 +3374,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_input_qty", + "insert_after": "posa_new_line", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow Print Draft Invoices", + "label": "Use QTY Input", "length": 0, "mandatory_depends_on": null, - "modified": "2022-07-22 11:51:07.782265", + "modified": "2022-05-17 02:17:13.591004", "module": null, - "name": "POS Profile-posa_allow_print_draft_invoices", + "name": "POS Profile-posa_input_qty", "no_copy": 0, "non_negative": 0, "options": null, @@ -3462,15 +3409,15 @@ "collapsible_depends_on": null, "columns": 0, "default": null, - "depends_on": "", + "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", + "dt": "POS Profile", "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "posa_is_replace", - "fieldtype": "Data", + "fetch_if_empty": 0, + "fieldname": "posa_allow_print_draft_invoices", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3481,15 +3428,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_is_offer", + "insert_after": "posa_input_qty", "is_system_generated": 0, "is_virtual": 0, - "label": "Is Offer Replace For item Row ID", + "label": "Allow Print Draft Invoices", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-17 18:10:36.233226", + "modified": "2022-07-22 11:51:07.782265", "module": null, - "name": "Sales Invoice Item-posa_is_replace", + "name": "POS Profile-posa_allow_print_draft_invoices", "no_copy": 0, "non_negative": 0, "options": null, @@ -3498,13 +3445,13 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 1, + "read_only": 0, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, "search_index": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -3786,15 +3733,15 @@ "collapsible_depends_on": null, "columns": 0, "default": null, - "depends_on": "", + "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "column_break_uolvm", - "fieldtype": "Column Break", + "dt": "Sales Invoice", + "fetch_from": "shipping_address_name.posa_delivery_charges", + "fetch_if_empty": 1, + "fieldname": "posa_delivery_charges", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3805,18 +3752,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_use_pos_awesome_payments", + "insert_after": "taxes_and_charges", "is_system_generated": 0, "is_virtual": 0, - "label": null, + "label": "Delivery Charges", "length": 0, "mandatory_depends_on": null, - "modified": "2023-06-11 23:29:44.857287", + "modified": "2022-07-25 11:49:02.312879", "module": null, - "name": "POS Profile-column_break_uolvm", + "name": "Sales Invoice-posa_delivery_charges", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Delivery Charges", "permlevel": 0, "precision": "", "print_hide": 0, @@ -3839,16 +3786,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "1", - "depends_on": "posa_use_pos_awesome_payments", + "default": null, + "depends_on": "", "description": null, "docstatus": 0, "doctype": "Custom Field", "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_make_new_payments", - "fieldtype": "Check", + "fieldname": "column_break_uolvm", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3859,15 +3806,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "column_break_uolvm", + "insert_after": "posa_use_pos_awesome_payments", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow Make New Payments", + "label": null, "length": 0, "mandatory_depends_on": null, - "modified": "2023-06-11 23:28:20.478033", + "modified": "2023-06-11 23:29:44.857287", "module": null, - "name": "POS Profile-posa_allow_make_new_payments", + "name": "POS Profile-column_break_uolvm", "no_copy": 0, "non_negative": 0, "options": null, @@ -3893,17 +3840,17 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "1", - "depends_on": "posa_use_pos_awesome_payments", + "default": null, + "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Profile", + "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_reconcile_payments", - "fieldtype": "Check", - "hidden": 0, + "fieldname": "posa_delivery_charges_rate", + "fieldtype": "Currency", + "hidden": 1, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, @@ -3913,24 +3860,24 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_make_new_payments", + "insert_after": "posa_delivery_charges", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow Reconcile Payments", + "label": "Delivery Charges Rate", "length": 0, "mandatory_depends_on": null, - "modified": "2023-06-11 23:28:20.897560", + "modified": "2022-07-25 11:49:04.797031", "module": null, - "name": "POS Profile-posa_allow_reconcile_payments", + "name": "Sales Invoice-posa_delivery_charges_rate", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "currency", "permlevel": 0, "precision": "", "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 0, + "read_only": 1, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, @@ -3947,7 +3894,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "1", "depends_on": "posa_use_pos_awesome_payments", "description": null, "docstatus": 0, @@ -3955,7 +3902,7 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_mpesa_reconcile_payments", + "fieldname": "posa_allow_make_new_payments", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -3967,15 +3914,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_reconcile_payments", + "insert_after": "column_break_uolvm", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow Mpesa Reconcile Payments", + "label": "Allow Make New Payments", "length": 0, "mandatory_depends_on": null, - "modified": "2023-06-11 23:44:22.343030", + "modified": "2023-06-11 23:28:20.478033", "module": null, - "name": "POS Profile-posa_allow_mpesa_reconcile_payments", + "name": "POS Profile-posa_allow_make_new_payments", "no_copy": 0, "non_negative": 0, "options": null, @@ -3998,19 +3945,19 @@ "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, - "collapsible": 1, + "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, - "depends_on": "", + "default": "1", + "depends_on": "posa_use_pos_awesome_payments", "description": null, "docstatus": 0, "doctype": "Custom Field", "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_pos_awesome_advance_settings", - "fieldtype": "Section Break", + "fieldname": "posa_allow_reconcile_payments", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4021,15 +3968,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_mpesa_reconcile_payments", + "insert_after": "posa_allow_make_new_payments", "is_system_generated": 0, "is_virtual": 0, - "label": "POS Awesome Advance Settings", + "label": "Allow Reconcile Payments", "length": 0, "mandatory_depends_on": null, - "modified": "2020-10-11 15:13:10.899536", + "modified": "2023-06-11 23:28:20.897560", "module": null, - "name": "POS Profile-posa_pos_awesome_advance_settings", + "name": "POS Profile-posa_allow_reconcile_payments", "no_copy": 0, "non_negative": 0, "options": null, @@ -4056,14 +4003,14 @@ "collapsible_depends_on": null, "columns": 0, "default": null, - "depends_on": null, - "description": "Send invoice to submit after printing", + "depends_on": "posa_use_pos_awesome_payments", + "description": null, "docstatus": 0, "doctype": "Custom Field", "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_allow_submissions_in_background_job", + "fieldname": "posa_allow_mpesa_reconcile_payments", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -4075,15 +4022,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_pos_awesome_advance_settings", + "insert_after": "posa_allow_reconcile_payments", "is_system_generated": 0, "is_virtual": 0, - "label": "Allow Submissions in background job", + "label": "Allow Mpesa Reconcile Payments", "length": 0, - "mandatory_depends_on": "0", - "modified": "2020-10-09 16:05:54.332880", + "mandatory_depends_on": null, + "modified": "2023-06-11 23:44:22.343030", "module": null, - "name": "POS Profile-posa_allow_submissions_in_background_job", + "name": "POS Profile-posa_allow_mpesa_reconcile_payments", "no_copy": 0, "non_negative": 0, "options": null, @@ -4106,19 +4053,19 @@ "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, - "collapsible": 0, + "collapsible": 1, "collapsible_depends_on": null, "columns": 0, "default": null, - "depends_on": null, + "depends_on": "", "description": null, "docstatus": 0, "doctype": "Custom Field", "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_search_serial_no", - "fieldtype": "Check", + "fieldname": "posa_pos_awesome_advance_settings", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4129,15 +4076,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_allow_submissions_in_background_job", + "insert_after": "posa_allow_mpesa_reconcile_payments", "is_system_generated": 0, "is_virtual": 0, - "label": "Search by Serial Number", + "label": "POS Awesome Advance Settings", "length": 0, "mandatory_depends_on": null, - "modified": "2021-06-20 20:47:47.966800", + "modified": "2020-10-11 15:13:10.899536", "module": null, - "name": "POS Profile-posa_search_serial_no", + "name": "POS Profile-posa_pos_awesome_advance_settings", "no_copy": 0, "non_negative": 0, "options": null, @@ -4165,13 +4112,13 @@ "columns": 0, "default": null, "depends_on": null, - "description": null, + "description": "Send invoice to submit after printing", "docstatus": 0, "doctype": "Custom Field", "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_search_batch_no", + "fieldname": "posa_allow_submissions_in_background_job", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -4183,15 +4130,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_search_serial_no", + "insert_after": "posa_pos_awesome_advance_settings", "is_system_generated": 0, "is_virtual": 0, - "label": "Search by Batch Number", + "label": "Allow Submissions in background job", "length": 0, - "mandatory_depends_on": null, - "modified": "2023-06-05 23:50:13.126933", + "mandatory_depends_on": "0", + "modified": "2020-10-09 16:05:54.332880", "module": null, - "name": "POS Profile-posa_search_batch_no", + "name": "POS Profile-posa_allow_submissions_in_background_job", "no_copy": 0, "non_negative": 0, "options": null, @@ -4222,11 +4169,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice", - "fetch_from": "shipping_address_name.posa_delivery_charges", - "fetch_if_empty": 1, - "fieldname": "posa_delivery_charges", - "fieldtype": "Link", + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_search_serial_no", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4237,18 +4184,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "taxes_and_charges", + "insert_after": "posa_allow_submissions_in_background_job", "is_system_generated": 0, "is_virtual": 0, - "label": "Delivery Charges", + "label": "Search by Serial Number", "length": 0, "mandatory_depends_on": null, - "modified": "2022-07-25 11:49:02.312879", + "modified": "2021-06-20 20:47:47.966800", "module": null, - "name": "Sales Invoice-posa_delivery_charges", + "name": "POS Profile-posa_search_serial_no", "no_copy": 0, "non_negative": 0, - "options": "Delivery Charges", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -4271,7 +4218,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "1", + "default": null, "depends_on": null, "description": null, "docstatus": 0, @@ -4279,7 +4226,7 @@ "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_tax_inclusive", + "fieldname": "posa_search_batch_no", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -4291,15 +4238,15 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_search_batch_no", + "insert_after": "posa_search_serial_no", "is_system_generated": 0, "is_virtual": 0, - "label": "Tax Inclusive", + "label": "Search by Batch Number", "length": 0, "mandatory_depends_on": null, - "modified": "2021-09-06 16:33:33.398280", + "modified": "2023-06-05 23:50:13.126933", "module": null, - "name": "POS Profile-posa_tax_inclusive", + "name": "POS Profile-posa_search_batch_no", "no_copy": 0, "non_negative": 0, "options": null, @@ -4325,17 +4272,17 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "1", "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice", + "dt": "POS Profile", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_delivery_charges_rate", - "fieldtype": "Currency", - "hidden": 1, + "fieldname": "posa_tax_inclusive", + "fieldtype": "Check", + "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, @@ -4345,24 +4292,24 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_delivery_charges", + "insert_after": "posa_search_batch_no", "is_system_generated": 0, "is_virtual": 0, - "label": "Delivery Charges Rate", + "label": "Tax Inclusive", "length": 0, "mandatory_depends_on": null, - "modified": "2022-07-25 11:49:04.797031", + "modified": "2021-09-06 16:33:33.398280", "module": null, - "name": "Sales Invoice-posa_delivery_charges_rate", + "name": "POS Profile-posa_tax_inclusive", "no_copy": 0, "non_negative": 0, - "options": "currency", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 1, + "read_only": 0, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, @@ -4750,6 +4697,60 @@ "unique": 0, "width": null }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_allow_select_sales_order", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 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": "posa_search_limit", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Select Sales Order", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-11-13 12:16:27.784096", + "module": null, + "name": "POS Profile-custom_allow_select_sales_order", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "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, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, { "allow_in_quick_entry": 0, "allow_on_submit": 0, diff --git a/posawesome/fixtures/property_setter.json b/posawesome/fixtures/property_setter.json index 39fc1f073..09b95af8d 100644 --- a/posawesome/fixtures/property_setter.json +++ b/posawesome/fixtures/property_setter.json @@ -7,7 +7,7 @@ "doctype_or_field": "DocField", "field_name": "posa_pos_opening_shift", "is_system_generated": 0, - "modified": "2020-10-26 15:35:40.861492", + "modified": "2025-09-13 08:14:41.930092", "module": null, "name": "Sales Invoice-posa_pos_opening_shift-no_copy", "property": "no_copy", diff --git a/posawesome/fixtures/role.json b/posawesome/fixtures/role.json new file mode 100644 index 000000000..54e4bab6e --- /dev/null +++ b/posawesome/fixtures/role.json @@ -0,0 +1,28 @@ +[ + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-08-20 11:14:28.247108", + "name": "Sales Commission Admin", + "restrict_to_domain": null, + "role_name": "Sales Commission Admin", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-08-07 14:25:18.465699", + "name": "Sales Commission", + "restrict_to_domain": null, + "role_name": "Sales Commission", + "two_factor_auth": 0 + } +] \ No newline at end of file diff --git a/posawesome/hooks.py b/posawesome/hooks.py index 75158395d..8af23ed60 100644 --- a/posawesome/hooks.py +++ b/posawesome/hooks.py @@ -20,8 +20,12 @@ app_include_js = [ "/assets/posawesome/node_modules/vuetify/dist/vuetify.js", "posawesome.bundle.js", + "/assets/posawesome/js/xlsx.full.min.js", + "/assets/posawesome/js/sales_person_commiss.js", + "/assets/posawesome/js/sales_partner_commis.js" ] + # include js, css files in header of web template # web_include_css = "/assets/posawesome/css/posawesome.css" # web_include_js = "/assets/posawesome/js/posawesome.js" @@ -33,6 +37,8 @@ # include js in page # page_js = {"page" : "public/js/file.js"} + + # include js in doctype views doctype_js = { "POS Profile": "posawesome/api/pos_profile.js", @@ -93,8 +99,13 @@ # --------------- # Hook on document methods and events +override_doctype_class = { + "Sales Invoice": "posawesome.overrides.custom_sales_invoice.SalesInvoice" +} doc_events = { "Sales Invoice": { + "before_save": "posawesome.overrides.selling_commission.run_custom_commission", + "before_save": "posawesome.overrides.selling_commission.run_custom_contribution", "validate": "posawesome.posawesome.api.invoice.validate", "before_submit": "posawesome.posawesome.api.invoice.before_submit", "before_cancel": "posawesome.posawesome.api.invoice.before_cancel", @@ -265,4 +276,10 @@ "doctype": "Property Setter", "filters": [["name", "in", ("Sales Invoice-posa_pos_opening_shift-no_copy")]], }, + { + "doctype": "Role", + "filters": [ + ["role_name", "in", ["Sales Commission", "Sales Commission Admin"]] + ], + }, ] diff --git a/posawesome/overrides/custom_sales_invoice.py b/posawesome/overrides/custom_sales_invoice.py new file mode 100644 index 000000000..f6ed62188 --- /dev/null +++ b/posawesome/overrides/custom_sales_invoice.py @@ -0,0 +1,15 @@ +# Custom override of Sales Invoice to bypass POS validation error on returns +# ERPNext core validation (validate_pos) throws error for Paid + Write-off > Grand Total (even for returns) +from erpnext.accounts.doctype.sales_invoice.sales_invoice import SalesInvoice as BaseSalesInvoice +from frappe.utils import flt +from frappe import _ +import frappe + +class SalesInvoice(BaseSalesInvoice): + def validate_pos(self): + if self.is_return: + invoice_total = self.rounded_total or self.grand_total + if flt(self.paid_amount) + flt(self.write_off_amount) - abs(flt(invoice_total)) > 1.0 / ( + 10.0 ** (self.precision("grand_total") + 1.0) + ): + frappe.throw(_("Paid amount + Write Off Amount can not be greater than Grand Total")) diff --git a/posawesome/overrides/selling_commission.py b/posawesome/overrides/selling_commission.py new file mode 100644 index 000000000..4155f88ec --- /dev/null +++ b/posawesome/overrides/selling_commission.py @@ -0,0 +1,143 @@ +import frappe +from frappe import _ +from frappe.utils import flt + +def custom_calculate_commission(self): + # ✅ Run only if Sales Partner is set + if not self.sales_partner: + return + + if not self.meta.get_field("commission_rate") or self.docstatus.is_submitted(): + return + + self.round_floats_in(self, ("amount_eligible_for_commission", "commission_rate")) + + if not (0 <= flt(self.commission_rate) <= 100.0): + frappe.throw( + "{} {}".format( + _(self.meta.get_label("commission_rate")), + _("must be between 0 and 100"), + ) + ) + + partner_rate = flt(self.commission_rate) + customer_rate = flt(self.custom_discount_ or 0) # ✅ take customer share + effective_rate = max(partner_rate - customer_rate, 0) # ✅ ensure not negative + + total_commission = 0 + eligible_amount = 0 + + # clear breakdown + self.set("custom_commission_breakdown", []) + + for item in self.items: + if not item.grant_commission: + continue + + tax_rate = 0 + if self.taxes_and_charges: + tax_rows = frappe.get_all( + "Sales Taxes and Charges", + filters={"parent": self.taxes_and_charges}, + fields=["rate"] + ) + if tax_rows: + tax_rate = flt(tax_rows[0].rate) # or sum if multiple + + # ✅ Exclude tax from Price List Rate + base_rate_excl_tax = flt(item.price_list_rate) / (1 + (tax_rate / 100)) + item_amount = flt(item.qty) * base_rate_excl_tax + + item_cap_rate = flt(item.custom_max_commission_rate) or effective_rate + applied_rate = min(effective_rate, item_cap_rate) + + commission_amount = item_amount * applied_rate / 100 + total_commission += commission_amount + eligible_amount += item_amount + + self.append("custom_commission_breakdown", { + "item_code": item.item_code, + "base_net_amount": item_amount, + "applied_rate": applied_rate, + "commission_amount": commission_amount + }) + + + self.amount_eligible_for_commission = eligible_amount + self.total_commission = flt(total_commission, self.precision("total_commission")) + + # ✅ Set the additional fields + self.custom_effective_commission_rate = applied_rate + self.custom_effective_commission = eligible_amount + + + + +def run_custom_commission(doc, method): + """Hook wrapper so it works in POS + Manual Invoices""" + custom_calculate_commission(doc) + + + +def custom_calculate_contribution(self): + if not self.meta.get_field("sales_team"): + return + + total = 0.0 + sales_team = self.get("sales_team") + + self.validate_sales_team(sales_team) + + # clear breakdown table + self.set("custom_sales_person_commission_breakdown", []) + self.amount_eligible_for_commission = sum( + item.base_net_amount for item in self.items if item.grant_commission + ) + + for sales_person in sales_team: + self.round_floats_in(sales_person) + + sales_person.allocated_amount = flt( + flt(self.amount_eligible_for_commission) * sales_person.allocated_percentage / 100.0, + self.precision("allocated_amount", sales_person), + ) + + total_commission = 0 + + if sales_person.commission_rate: + for item in self.items: + if not item.grant_commission: + continue + + # ensure numeric values + partner_rate = flt(sales_person.commission_rate) + item_cap_rate = flt(item.custom_sales_person_max_commission_rate) or partner_rate + + applied_rate = partner_rate if partner_rate < item_cap_rate else item_cap_rate + + commission_amount = (flt(item.base_net_amount) or 0) * applied_rate / 100 + total_commission += commission_amount + + self.append("custom_sales_person_commission_breakdown", { + "sales_person": sales_person.sales_person, + "item_code": item.item_code, + "base_net_amount": flt(item.base_net_amount), + "applied_rate": applied_rate, + "commission_amount": commission_amount + }) + + + sales_person.incentives = flt( + total_commission, + self.precision("incentives", sales_person), + ) + + total += sales_person.allocated_percentage + + if sales_team and total != 100.0: + frappe.throw(_("Total allocated percentage for sales team should be 100")) + + +def run_custom_contribution(doc, method): + """Hook wrapper so it works in POS + Manual Invoices""" + custom_calculate_contribution(doc) \ No newline at end of file diff --git a/posawesome/posawesome/api/posapp.py b/posawesome/posawesome/api/posapp.py index d92dacafc..db79d5c16 100644 --- a/posawesome/posawesome/api/posapp.py +++ b/posawesome/posawesome/api/posapp.py @@ -5,6 +5,7 @@ from __future__ import unicode_literals import json import frappe +import copy from frappe.utils import nowdate, flt, cstr, getdate from frappe import _ from erpnext.accounts.doctype.sales_invoice.sales_invoice import get_bank_cash_account @@ -450,6 +451,14 @@ def get_sales_person_names(): ) return sales_persons +@frappe.whitelist() +def get_sales_partner_names(): + sales_partners = frappe.get_list( + "Sales Partner", + fields=["name", "partner_name"], + limit_page_length=100000, + ) + return sales_partners def add_taxes_from_tax_template(item, parent_doc): accounts_settings = frappe.get_cached_doc("Accounts Settings") @@ -495,6 +504,7 @@ def update_invoice_from_order(data): @frappe.whitelist() def update_invoice(data): data = json.loads(data) + if data.get("name"): invoice_doc = frappe.get_doc("Sales Invoice", data.get("name")) invoice_doc.update(data) @@ -505,21 +515,41 @@ def update_invoice(data): invoice_doc.flags.ignore_permissions = True frappe.flags.ignore_account_permission = True + # Handle returns if invoice_doc.is_return and invoice_doc.return_against: - ref_doc = frappe.get_cached_doc(invoice_doc.doctype, invoice_doc.return_against) + ref_doc = frappe.get_doc("Sales Invoice", invoice_doc.return_against) + if not ref_doc.update_stock: invoice_doc.update_stock = 0 + if len(invoice_doc.payments) == 0: invoice_doc.payments = ref_doc.payments - invoice_doc.paid_amount = ( - invoice_doc.rounded_total or invoice_doc.grand_total or invoice_doc.total - ) - for payment in invoice_doc.payments: - if payment.default: - payment.amount = invoice_doc.paid_amount + + for return_item in invoice_doc.items: + match_found = False + for original_item in ref_doc.items: + if return_item.item_code == original_item.item_code: + return_item.sales_invoice = ref_doc.name + return_item.sales_invoice_item = original_item.name + return_item.rate = original_item.rate + return_item.uom = original_item.uom + return_item.income_account = original_item.income_account + return_item.cost_center = original_item.cost_center + return_item.warehouse = original_item.warehouse + match_found = True + break + if not match_found: + frappe.throw( + _("Row # {0}: Returned Item {1} does not exist in Sales Invoice {2}").format( + return_item.idx, return_item.item_code, ref_doc.name + ) + ) + + # Validate zero-rated items allow_zero_rated_items = frappe.get_cached_value( "POS Profile", invoice_doc.pos_profile, "posa_allow_zero_rated_items" ) + for item in invoice_doc.items: if not item.rate or item.rate == 0: if allow_zero_rated_items: @@ -531,8 +561,10 @@ def update_invoice(data): ) else: item.is_free_item = 0 + add_taxes_from_tax_template(item, invoice_doc) + # Tax inclusion flag if frappe.get_cached_value( "POS Profile", invoice_doc.pos_profile, "posa_tax_inclusive" ): @@ -540,6 +572,7 @@ def update_invoice(data): for tax in invoice_doc.taxes: tax.included_in_print_rate = 1 + # Set posting time if backdated today_date = getdate() if ( invoice_doc.get("posting_date") @@ -547,10 +580,25 @@ def update_invoice(data): ): invoice_doc.set_posting_time = 1 + # Enforce payment reset + if invoice_doc.is_return: + invoice_doc.paid_amount = 0.0 + invoice_doc.write_off_amount = 0.0 + for payment in invoice_doc.payments: + payment.amount = 0.0 + + # ✅ Show message (not throw) if no payment selected + has_payment = any(flt(p.amount) > 0 for p in invoice_doc.payments) + if not has_payment: + frappe.msgprint(_("Please select a Mode of Payment before submitting the document.")) + invoice_doc.save() return invoice_doc + + + @frappe.whitelist() def submit_invoice(invoice, data): data = json.loads(data) @@ -1220,20 +1268,55 @@ def search_invoices_for_return(invoice_name, company): "is_return": 0, }, fields=["name"], - limit_page_length=0, order_by="customer", ) + data = [] - is_returned = frappe.get_all( - "Sales Invoice", - filters={"return_against": invoice_name, "docstatus": 1}, - fields=["name"], - order_by="customer", - ) - if len(is_returned): - return data + for invoice in invoices_list: - data.append(frappe.get_doc("Sales Invoice", invoice["name"])) + original = frappe.get_doc("Sales Invoice", invoice["name"]) + + # Get all return invoices for this invoice + return_invoices = frappe.get_all( + "Sales Invoice", + filters={"return_against": original.name, "docstatus": 1}, + fields=["name"] + ) + + # Build map: item_code -> total returned qty + returned_qty_map = {} + for ret in return_invoices: + ret_doc = frappe.get_doc("Sales Invoice", ret.name) + for item in ret_doc.items: + returned_qty_map[item.item_code] = returned_qty_map.get(item.item_code, 0) + abs(item.qty) + + has_returnable_items = False + updated_items = [] + + for item in original.items: + returned_qty = returned_qty_map.get(item.item_code, 0) + remaining_qty = item.qty - returned_qty + + # Copy item + new_item = copy.deepcopy(item) + + if remaining_qty > 0: + # Mark item for return (negate qty & recalc amounts) + new_item.qty = -remaining_qty + new_item.stock_qty = -(item.stock_qty / item.qty) * remaining_qty if item.qty else 0 + new_item.amount = -(item.amount / item.qty) * remaining_qty if item.qty else 0 + has_returnable_items = True + else: + new_item.qty = 0 + new_item.stock_qty = 0 + new_item.amount = 0 + + updated_items.append(new_item) + + if has_returnable_items: + original.set("items", updated_items) + data.append(original) + return data @@ -1809,9 +1892,26 @@ def delete_sales_invoice(sales_invoice): @frappe.whitelist() -def get_sales_invoice_child_table(sales_invoice, sales_invoice_item): +def get_sales_invoice_child_table(sales_invoice, sales_invoice_item=None): parent_doc = frappe.get_doc("Sales Invoice", sales_invoice) - child_doc = frappe.get_doc( - "Sales Invoice Item", {"parent": parent_doc.name, "name": sales_invoice_item} - ) - return child_doc + + if sales_invoice_item: + # fetch specific item row + return frappe.get_doc( + "Sales Invoice Item", {"parent": parent_doc.name, "name": sales_invoice_item} + ) + else: + # fetch all child rows for that invoice + return frappe.get_all( + "Sales Invoice Item", + filters={"parent": parent_doc.name}, + fields=["*"] + ) + +# @frappe.whitelist() +# def get_sales_invoice_child_table(sales_invoice, sales_invoice_item): +# parent_doc = frappe.get_doc("Sales Invoice", sales_invoice) +# child_doc = frappe.get_doc( +# "Sales Invoice Item", {"parent": parent_doc.name, "name": sales_invoice_item} +# ) +# return child_doc diff --git a/posawesome/posawesome/custom/item.json b/posawesome/posawesome/custom/item.json new file mode 100644 index 000000000..60a35a38f --- /dev/null +++ b/posawesome/posawesome/custom/item.json @@ -0,0 +1,270 @@ +{ + "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-09-08 13:15:10.648970", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_max_commission_rate", + "fieldtype": "Float", + "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": "standard_rate", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Max Commission Rate", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-09-08 13:15:10.648970", + "modified_by": "Administrator", + "module": null, + "name": "Item-custom_max_commission_rate", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-09-10 13:14:44.715378", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sales_person_max_commission_rate", + "fieldtype": "Float", + "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_max_commission_rate", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sales Person Max Commission Rate", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-09-10 13:14:44.715378", + "modified_by": "Administrator", + "module": null, + "name": "Item-custom_sales_person_max_commission_rate", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + } + ], + "custom_perms": [], + "doctype": "Item", + "links": [], + "property_setters": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:44.635145", + "default_value": null, + "doc_type": "Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "barcodes", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.268030", + "modified_by": "Administrator", + "module": null, + "name": "Item-barcodes-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:44.506766", + "default_value": null, + "doc_type": "Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "item_code", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.287007", + "modified_by": "Administrator", + "module": null, + "name": "Item-item_code-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:44.514610", + "default_value": null, + "doc_type": "Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "item_code", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.297194", + "modified_by": "Administrator", + "module": null, + "name": "Item-item_code-reqd", + "owner": "Administrator", + "property": "reqd", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-09-10 13:14:44.344071", + "default_value": null, + "doc_type": "Item", + "docstatus": 0, + "doctype_or_field": "DocType", + "field_name": null, + "idx": 0, + "is_system_generated": 0, + "modified": "2025-09-10 13:14:44.344071", + "modified_by": "Administrator", + "module": null, + "name": "Item-main-field_order", + "owner": "Administrator", + "property": "field_order", + "property_type": "Data", + "row_name": null, + "value": "[\"details\", \"naming_series\", \"item_code\", \"item_name\", \"item_group\", \"stock_uom\", \"column_break0\", \"disabled\", \"allow_alternative_item\", \"is_stock_item\", \"has_variants\", \"include_item_in_manufacturing\", \"opening_stock\", \"valuation_rate\", \"standard_rate\", \"custom_max_commission_rate\", null, \"is_fixed_asset\", \"auto_create_assets\", \"is_grouped_asset\", \"asset_category\", \"asset_naming_series\", \"over_delivery_receipt_allowance\", \"over_billing_allowance\", \"image\", \"section_break_11\", \"description\", \"brand\", \"dashboard_tab\", \"inventory_section\", \"inventory_settings_section\", \"shelf_life_in_days\", \"end_of_life\", \"default_material_request_type\", \"valuation_method\", \"column_break1\", \"warranty_period\", \"weight_per_unit\", \"weight_uom\", \"allow_negative_stock\", \"sb_barcodes\", \"barcodes\", \"reorder_section\", \"reorder_levels\", \"unit_of_measure_conversion\", \"uoms\", \"serial_nos_and_batches\", \"has_batch_no\", \"create_new_batch\", \"batch_number_series\", \"has_expiry_date\", \"retain_sample\", \"sample_quantity\", \"column_break_37\", \"has_serial_no\", \"serial_no_series\", \"variants_section\", \"variant_of\", \"variant_based_on\", \"attributes\", \"accounting\", \"deferred_accounting_section\", \"enable_deferred_expense\", \"no_of_months_exp\", \"column_break_9s9o\", \"enable_deferred_revenue\", \"no_of_months\", \"section_break_avcp\", \"item_defaults\", \"purchasing_tab\", \"purchase_uom\", \"min_order_qty\", \"safety_stock\", \"is_purchase_item\", \"purchase_details_cb\", \"lead_time_days\", \"last_purchase_rate\", \"is_customer_provided_item\", \"customer\", \"supplier_details\", \"delivered_by_supplier\", \"column_break2\", \"supplier_items\", \"foreign_trade_details\", \"country_of_origin\", \"column_break_59\", \"customs_tariff_number\", \"sales_details\", \"sales_uom\", \"grant_commission\", \"is_sales_item\", \"column_break3\", \"max_discount\", \"customer_details\", \"customer_items\", \"item_tax_section_break\", \"taxes\", \"quality_tab\", \"inspection_required_before_purchase\", \"quality_inspection_template\", \"inspection_required_before_delivery\", \"manufacturing\", \"is_sub_contracted_item\", \"default_bom\", \"column_break_74\", \"customer_code\", \"default_item_manufacturer\", \"default_manufacturer_part_no\", \"published_in_website\", \"total_projected_qty\"]" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:44.498954", + "default_value": null, + "doc_type": "Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "naming_series", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.317388", + "modified_by": "Administrator", + "module": null, + "name": "Item-naming_series-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:44.201215", + "default_value": null, + "doc_type": "Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "naming_series", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.326480", + "modified_by": "Administrator", + "module": null, + "name": "Item-naming_series-reqd", + "owner": "Administrator", + "property": "reqd", + "property_type": "Check", + "row_name": null, + "value": "0" + } + ], + "sync_on_migrate": 1 +} \ No newline at end of file diff --git a/posawesome/posawesome/custom/item_barcode.json b/posawesome/posawesome/custom/item_barcode.json new file mode 100644 index 000000000..fb580a7c9 --- /dev/null +++ b/posawesome/posawesome/custom/item_barcode.json @@ -0,0 +1,94 @@ +{ + "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-09-08 13:08:02.962603", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Item Barcode", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_uom", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 2, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "barcode_type", + "is_system_generated": 0, + "is_virtual": 0, + "label": "UOM", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-10-07 02:03:39.297065", + "modified_by": "Administrator", + "module": null, + "name": "Item Barcode-posa_uom", + "no_copy": 0, + "non_negative": 0, + "options": "UOM", + "owner": "Administrator", + "permlevel": 0, + "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, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + } + ], + "custom_perms": [], + "doctype": "Item Barcode", + "links": [], + "property_setters": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:44.620284", + "default_value": null, + "doc_type": "Item Barcode", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "barcode", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:36.465582", + "modified_by": "Administrator", + "module": null, + "name": "Item Barcode-barcode-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "0" + } + ], + "sync_on_migrate": 1 +} \ No newline at end of file diff --git a/posawesome/posawesome/custom/packed_item.json b/posawesome/posawesome/custom/packed_item.json new file mode 100644 index 000000000..e660c0000 --- /dev/null +++ b/posawesome/posawesome/custom/packed_item.json @@ -0,0 +1,32 @@ +{ + "custom_fields": [], + "custom_perms": [], + "doctype": "Packed Item", + "links": [], + "property_setters": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:40.486476", + "default_value": null, + "doc_type": "Packed Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "rate", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.822904", + "modified_by": "Administrator", + "module": null, + "name": "Packed Item-rate-read_only", + "owner": "Administrator", + "property": "read_only", + "property_type": "Check", + "row_name": null, + "value": "1" + } + ], + "sync_on_migrate": 1 +} \ No newline at end of file diff --git a/posawesome/posawesome/custom/pos_profile.json b/posawesome/posawesome/custom/pos_profile.json new file mode 100644 index 000000000..6c0a8b331 --- /dev/null +++ b/posawesome/posawesome/custom/pos_profile.json @@ -0,0 +1,4262 @@ +{ + "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-07-23 14:31:52.244436", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "column_break_anyol", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 73, + "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": "posa_server_cache_duration", + "is_system_generated": 0, + "is_virtual": 0, + "label": null, + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-06-05 16:59:17.793139", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-column_break_anyol", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:49.379086", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "column_break_dqsba", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 69, + "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": "posa_tax_inclusive", + "is_system_generated": 0, + "is_virtual": 0, + "label": null, + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-04-24 14:44:48.969896", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-column_break_dqsba", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:46.091004", + "default": null, + "depends_on": "", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "column_break_uolvm", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 60, + "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": "posa_use_pos_awesome_payments", + "is_system_generated": 0, + "is_virtual": 0, + "label": null, + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-06-11 23:29:44.857287", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-column_break_uolvm", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:33.941022", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_allow_select_sales_order", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 76, + "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": "posa_search_limit", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Select Sales Order", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-11-13 12:16:27.784096", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-custom_allow_select_sales_order", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-25 13:56:36.793646", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_8gvoy", + "fieldtype": "Column Break", + "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_discount_enabled", + "is_system_generated": 0, + "is_virtual": 0, + "label": null, + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-08-25 13:56:36.793646", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-custom_column_break_8gvoy", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-25 13:56:37.240191", + "default": null, + "depends_on": null, + "description": "If enabled, then can select Sales Person and Sales Partner for Commission", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_commission_enabled", + "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_commission_request", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Commission enabled", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-08-25 13:56:37.240191", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-custom_commission_enabled", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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": 1, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-08-25 13:56:36.982857", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_commission_request", + "fieldtype": "Section Break", + "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_column_break_8gvoy", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Commission Request", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-08-25 13:56:36.982857", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-custom_commission_request", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-25 13:56:36.598414", + "default": null, + "depends_on": null, + "description": "If enabled, then can apply for Discount Request.", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_discount_enabled", + "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_discount_request", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Discount enabled", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-08-25 13:56:36.598414", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-custom_discount_enabled", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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": 1, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-08-25 13:56:36.322250", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_discount_request", + "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": "campaign", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Discount Request", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-08-25 13:56:36.322250", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-custom_discount_request", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 12:25:45.253652", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_have_token", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 5, + "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": "disabled", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Have Token!", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-07-23 12:25:45.253652", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-custom_have_token", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-26 14:54:29.663930", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sales_partner_grand_total_limit", + "fieldtype": "Currency", + "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_sales_person_grand_total_limit", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sales Partner Grand Total limit", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-08-26 14:54:29.663930", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-custom_sales_partner_grand_total_limit", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-26 14:53:25.527500", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sales_person_grand_total_limit", + "fieldtype": "Currency", + "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_commission_enabled", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sales Person Grand Total Limit", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-08-26 14:53:25.527500", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-custom_sales_person_grand_total_limit", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-25 13:59:50.219372", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_section_break_zlymw", + "fieldtype": "Section Break", + "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_sales_partner_grand_total_limit", + "is_system_generated": 0, + "is_virtual": 0, + "label": null, + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-08-25 13:59:50.219372", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-custom_section_break_zlymw", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:32.883998", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "hide_expected_amount", + "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": "posa_allow_zero_rated_items", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Hide Expected Amount", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-12-15 16:57:46.117639", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-hide_expected_amount", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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": 1, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-07-23 14:31:44.661109", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "pos_awesome_payments", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 58, + "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": "posa_allow_duplicate_customer_names", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Awesome Payments", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-06-11 23:25:42.983974", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-pos_awesome_payments", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:25.199235", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_change_posting_date", + "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": "posa_scale_barcode_start", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Change Posting Date", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-12-16 11:20:05.134781", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_change_posting_date", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:29.580465", + "default": "0", + "depends_on": "posa_allow_partial_payment", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_credit_sale", + "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": "posa_allow_partial_payment", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Credit Sale", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-10-09 23:06:59.852139", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_credit_sale", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:36.967999", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_customer_purchase_order", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 48, + "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": "posa_fetch_coupon", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Customer Purchase Order", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-16 16:27:32.300240", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_customer_purchase_order", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:22.800506", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_delete", + "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": "posa_cash_mode_of_payment", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Auto Delete Draft Invoice", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-10-09 16:01:30.649938", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_delete", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:43.948570", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_duplicate_customer_names", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 57, + "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": "posa_auto_set_delivery_charges", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Duplicate Customer Names", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-06-05 15:55:21.190823", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_duplicate_customer_names", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:46.453653", + "default": "1", + "depends_on": "posa_use_pos_awesome_payments", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_make_new_payments", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 61, + "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": "column_break_uolvm", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Make New Payments", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-06-11 23:28:20.478033", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_make_new_payments", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:47.178588", + "default": null, + "depends_on": "posa_use_pos_awesome_payments", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_mpesa_reconcile_payments", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 63, + "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": "posa_allow_reconcile_payments", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Mpesa Reconcile Payments", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-06-11 23:44:22.343030", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_mpesa_reconcile_payments", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:29.217578", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_partial_payment", + "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": "posa_display_items_in_stock", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Partial Payment", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-10-09 23:06:59.598463", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_partial_payment", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:42.156706", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_print_draft_invoices", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 54, + "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": "posa_input_qty", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Print Draft Invoices", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-07-22 11:51:07.782265", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_print_draft_invoices", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:37.722435", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_print_last_invoice", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 49, + "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": "posa_allow_customer_purchase_order", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Print Last Invoice", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-16 18:00:40.631156", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_print_last_invoice", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:46.814124", + "default": "1", + "depends_on": "posa_use_pos_awesome_payments", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_reconcile_payments", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 62, + "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": "posa_allow_make_new_payments", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Reconcile Payments", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-06-11 23:28:20.897560", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_reconcile_payments", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:29.931330", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_return", + "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": "posa_allow_credit_sale", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Return", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-10-28 01:56:22.038314", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_return", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:33.589187", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_sales_order", + "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": "posa_column_break_112", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Create Sales Order", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-22 03:02:27.784096", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_sales_order", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:47.900943", + "default": null, + "depends_on": null, + "description": "Send invoice to submit after printing", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_submissions_in_background_job", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 65, + "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": "posa_pos_awesome_advance_settings", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Submissions in background job", + "length": 0, + "mandatory_depends_on": "0", + "modified": "2020-10-09 16:05:54.332880", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_submissions_in_background_job", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:23.689143", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_user_to_edit_additional_discount", + "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": "posa_allow_user_to_edit_rate", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow user to edit Additional Discount", + "length": 0, + "mandatory_depends_on": "0", + "modified": "2020-10-09 16:01:31.157157", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_user_to_edit_additional_discount", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:28.505175", + "default": null, + "depends_on": null, + "description": "", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_user_to_edit_item_discount", + "fieldtype": "Check", + "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": "posa_col_1", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow User to Edit Item Discount", + "length": 0, + "mandatory_depends_on": "0", + "modified": "2020-10-09 16:01:31.410384", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_user_to_edit_item_discount", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:23.333002", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_user_to_edit_rate", + "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": "posa_allow_delete", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow user to edit Rate", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-10-09 16:01:30.936524", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_user_to_edit_rate", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:38.863436", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_write_off_change", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 51, + "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": "posa_display_additional_notes", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Write Off Change", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-02-12 04:26:04.003374", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_write_off_change", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:32.518572", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_zero_rated_items", + "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": "posa_display_item_code", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Zero Rated Items", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-07-20 15:09:09.652861", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_allow_zero_rated_items", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:30.294096", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_apply_customer_discount", + "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": "posa_allow_return", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Apply Customer Discount", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-04 21:38:33.316557", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_apply_customer_discount", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:31.786438", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_auto_set_batch", + "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": "posa_hide_closing_shift", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Auto Set Batch", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-20 20:25:37.627551", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_auto_set_batch", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:43.258329", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_auto_set_delivery_charges", + "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": "posa_use_delivery_charges", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Auto Set Delivery Charges", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-07-25 11:57:18.367414", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_auto_set_delivery_charges", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:22.435260", + "default": null, + "depends_on": null, + "description": "For POS Closing Shift Payment Reconciliation", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_cash_mode_of_payment", + "fieldtype": "Link", + "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": "posa_pos_awesome_settings", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Cash Mode of Payment", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-03-06 00:29:24.240940", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_cash_mode_of_payment", + "no_copy": 0, + "non_negative": 0, + "options": "Mode of Payment", + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:28.142807", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_col_1", + "fieldtype": "Column Break", + "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": "posa_default_sales_order", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-10-30 03:24:09.367037", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_col_1", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:33.241163", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_column_break_112", + "fieldtype": "Column Break", + "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": "hide_expected_amount", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-23 22:48:40.886230", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_column_break_112", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:26.388590", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_default_card_view", + "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": "posa_allow_change_posting_date", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Default Card View", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-03-12 14:03:44.088542", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_default_card_view", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:27.427326", + "default": null, + "depends_on": "", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_default_sales_order", + "fieldtype": "Check", + "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": "posa_default_card_view", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Default Sales Order", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-03-12 14:37:41.556512", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_default_sales_order", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:38.498899", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_display_additional_notes", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 50, + "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": "posa_allow_print_last_invoice", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Display Additional Notes", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-19 16:54:32.986600", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_display_additional_notes", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:32.152269", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_display_item_code", + "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": "posa_auto_set_batch", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Display Item Code", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-05-17 02:45:24.071753", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_display_item_code", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:28.858337", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_display_items_in_stock", + "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": "posa_allow_user_to_edit_item_discount", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Hide Unavailable Items", + "length": 0, + "mandatory_depends_on": "", + "modified": "2020-10-09 16:01:31.663626", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_display_items_in_stock", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:36.200959", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_fetch_coupon", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 47, + "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": "posa_hide_variants_items", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Auto Fetch Coupon Gifts", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-07-29 22:58:10.372543", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_fetch_coupon", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:31.424553", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_hide_closing_shift", + "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": "use_customer_credit", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Hide Close Shift", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-04-15 01:14:57.247333", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_hide_closing_shift", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:35.430948", + "default": null, + "depends_on": "posa_show_template_items", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_hide_variants_items", + "fieldtype": "Check", + "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": "posa_show_template_items", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Hide Variants Items", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-24 03:24:52.591942", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_hide_variants_items", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:41.408393", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_input_qty", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 53, + "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": "posa_new_line", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use QTY Input", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-05-17 02:17:13.591004", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_input_qty", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:49.744059", + "default": "1", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_local_storage", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 70, + "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": "column_break_dqsba", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use Browser Local Storage", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-11-13 22:14:13.683091", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_local_storage", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:24.388852", + "default": "0", + "depends_on": "", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_max_discount_allowed", + "fieldtype": "Float", + "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": "posa_use_percentage_discount", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Max Discount Percentage Allowed ", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-10-26 05:11:52.101322", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_max_discount_allowed", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:40.175226", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_new_line", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 52, + "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": "posa_allow_write_off_change", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow add New Items on New Line", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-05-17 01:01:52.106645", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_new_line", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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": 1, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-07-23 14:31:47.539915", + "default": null, + "depends_on": "", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_pos_awesome_advance_settings", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 64, + "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": "posa_allow_mpesa_reconcile_payments", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Awesome Advance Settings", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-10-11 15:13:10.899536", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_pos_awesome_advance_settings", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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": 1, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-09-05 12:45:54.403761", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_pos_awesome_settings", + "fieldtype": "Section Break", + "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": "company_address", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Awesome Settings", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-09-05 12:45:54.403761", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_pos_awesome_settings", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:24.742128", + "default": "221", + "depends_on": null, + "description": "It is best not to use more than four numbers", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_scale_barcode_start", + "fieldtype": "Int", + "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": "posa_max_discount_allowed", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Scale Barcode Start With", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-10-30 03:54:32.270370", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_scale_barcode_start", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:48.648025", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_search_batch_no", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 67, + "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": "posa_search_serial_no", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Search by Batch Number", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-06-05 23:50:13.126933", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_search_batch_no", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:52.979280", + "default": "500", + "depends_on": "pose_use_limit_search", + "description": "Search Limit for Items\nFor best performance keep this under 1500", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_search_limit", + "fieldtype": "Int", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 75, + "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": "pose_use_limit_search", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Search Limit Number", + "length": 0, + "mandatory_depends_on": "pose_use_limit_search", + "modified": "2023-06-05 16:59:18.717131", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_search_limit", + "no_copy": 0, + "non_negative": 1, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:48.282908", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_search_serial_no", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 66, + "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": "posa_allow_submissions_in_background_job", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Search by Serial Number", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-20 20:47:47.966800", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_search_serial_no", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:51.187434", + "default": "30", + "depends_on": "posa_use_server_cache", + "description": "Cache the values for n minutes", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_server_cache_duration", + "fieldtype": "Int", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 72, + "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": "posa_use_server_cache", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Server Cache Duration", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-04-24 14:44:49.341660", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_server_cache_duration", + "no_copy": 0, + "non_negative": 1, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:34.690667", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_show_template_items", + "fieldtype": "Check", + "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": "posa_allow_sales_order", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show Template Items", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-23 22:48:41.288938", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_show_template_items", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:49.016166", + "default": "1", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_tax_inclusive", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 68, + "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": "posa_search_batch_no", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Tax Inclusive", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-09-06 16:33:33.398280", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_tax_inclusive", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:42.887791", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_use_delivery_charges", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 55, + "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": "posa_allow_print_draft_invoices", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use Delivery Charges", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-07-25 11:57:17.864203", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_use_delivery_charges", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:24.038508", + "default": "0", + "depends_on": "posa_allow_user_to_edit_additional_discount", + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_use_percentage_discount", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 23, + "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": "posa_allow_user_to_edit_additional_discount", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use Percentage Discount", + "length": 0, + "mandatory_depends_on": "", + "modified": "2021-09-26 14:08:06.765185", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_use_percentage_discount", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:45.372170", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_use_pos_awesome_payments", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 59, + "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": "pos_awesome_payments", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use POS Awesome Payments", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-06-11 23:25:43.339584", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_use_pos_awesome_payments", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:50.131712", + "default": "0", + "depends_on": null, + "description": "Use Redis cache on the server to speedup initial loads of POS Awesome ", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_use_server_cache", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 71, + "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": "posa_local_storage", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use Server Cache", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-04-24 14:44:49.219453", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-posa_use_server_cache", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:52.619373", + "default": null, + "depends_on": null, + "description": "Use Search Limit for Items", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "pose_use_limit_search", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 74, + "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": "column_break_anyol", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use Limit Search", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-06-05 16:59:18.429778", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-pose_use_limit_search", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:30.671369", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "use_cashback", + "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": "posa_apply_customer_discount", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use Cashback", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-03-24 04:35:08.517136", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-use_cashback", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-07-23 14:31:31.053261", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "use_customer_credit", + "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": "use_cashback", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Use Customer Credit", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-03-24 04:51:50.333452", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-use_customer_credit", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-05-26 22:40:29.344362", + "modified_by": "Administrator", + "name": "sh9l1l02sv", + "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-05-26 22:40:29.344362", + "modified_by": "Administrator", + "name": "sh9l3qh6dr", + "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-05-26 22:40:29.344362", + "modified_by": "Administrator", + "name": "sh9l8ifri5", + "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-05-26 22:40:29.344362", + "modified_by": "Administrator", + "name": "sh9luofbjg", + "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-09-05 12:49:40.108744", + "default_value": null, + "doc_type": "POS Profile", + "docstatus": 0, + "doctype_or_field": "DocType", + "field_name": null, + "idx": 0, + "is_system_generated": 0, + "modified": "2025-09-05 12:49:40.108744", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-main-field_order", + "owner": "Administrator", + "property": "field_order", + "property_type": "Data", + "row_name": null, + "value": "[\"company\", \"customer\", \"country\", \"disabled\", \"custom_have_token\", \"column_break_9\", \"warehouse\", \"campaign\", \"custom_discount_request\", \"custom_discount_enabled\", \"custom_column_break_8gvoy\", \"custom_commission_request\", \"custom_commission_enabled\", \"custom_sales_person_grand_total_limit\", \"custom_sales_partner_grand_total_limit\", \"custom_section_break_zlymw\", \"company_address\", \"posa_pos_awesome_settings\", \"posa_cash_mode_of_payment\", \"posa_allow_delete\", \"posa_allow_user_to_edit_rate\", \"posa_allow_user_to_edit_additional_discount\", \"posa_use_percentage_discount\", \"posa_max_discount_allowed\", \"posa_scale_barcode_start\", \"posa_allow_change_posting_date\", \"posa_default_card_view\", \"posa_default_sales_order\", \"posa_col_1\", \"posa_allow_user_to_edit_item_discount\", \"posa_display_items_in_stock\", \"posa_allow_partial_payment\", \"posa_allow_credit_sale\", \"posa_allow_return\", \"posa_apply_customer_discount\", \"use_cashback\", \"use_customer_credit\", \"posa_hide_closing_shift\", \"posa_auto_set_batch\", \"posa_display_item_code\", \"posa_allow_zero_rated_items\", \"hide_expected_amount\", \"posa_column_break_112\", \"posa_allow_sales_order\", \"posa_show_template_items\", \"posa_hide_variants_items\", \"posa_fetch_coupon\", \"posa_allow_customer_purchase_order\", \"posa_allow_print_last_invoice\", \"posa_display_additional_notes\", \"posa_allow_write_off_change\", \"posa_new_line\", \"posa_input_qty\", \"posa_allow_print_draft_invoices\", \"posa_use_delivery_charges\", \"posa_auto_set_delivery_charges\", \"posa_allow_duplicate_customer_names\", \"pos_awesome_payments\", \"posa_use_pos_awesome_payments\", \"column_break_uolvm\", \"posa_allow_make_new_payments\", \"posa_allow_reconcile_payments\", \"posa_allow_mpesa_reconcile_payments\", \"posa_pos_awesome_advance_settings\", \"posa_allow_submissions_in_background_job\", \"posa_search_serial_no\", \"posa_search_batch_no\", \"posa_tax_inclusive\", \"column_break_dqsba\", \"posa_local_storage\", \"posa_use_server_cache\", \"posa_server_cache_duration\", \"column_break_anyol\", \"pose_use_limit_search\", \"posa_search_limit\", \"custom_allow_select_sales_order\", \"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\", \"column_break_16\", \"update_stock\", \"ignore_pricing_rule\", \"allow_rate_change\", \"allow_discount_change\", \"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/posawesome/posawesome/custom/sales_invoice.json b/posawesome/posawesome/custom/sales_invoice.json new file mode 100644 index 000000000..a75f2c66e --- /dev/null +++ b/posawesome/posawesome/custom/sales_invoice.json @@ -0,0 +1,1475 @@ +{ + "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-09-08 13:21:48.075819", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_commission_breakdown", + "fieldtype": "Table", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 87, + "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_section_break_hpnsx", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Commission Breakdown", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-09-08 13:21:48.075819", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-custom_commission_breakdown", + "no_copy": 0, + "non_negative": 0, + "options": "Sales Partner Commission Detail", + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-04 15:05:06.666421", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_commission_paid", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 224, + "ignore_user_permissions": 1, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "repost_required", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Commission Paid", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-08-04 15:05:06.666421", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-custom_commission_paid", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-05 12:00:55.100497", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_partner_commission_paid", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 225, + "ignore_user_permissions": 1, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_commission_paid", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Partner Commission Paid", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-08-05 12:00:55.100497", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-custom_partner_commission_paid", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-09-10 13:19:18.192719", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sales_person_commission_breakdown", + "fieldtype": "Table", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 87, + "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_commission_breakdown", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sales Person Commission Breakdown", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-09-10 13:19:18.192719", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-custom_sales_person_commission_breakdown", + "no_copy": 0, + "non_negative": 0, + "options": "Sales Person Commission Detail", + "owner": "Administrator", + "permlevel": 0, + "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, + "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-09-08 13:21:47.643244", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_section_break_hpnsx", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 86, + "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": "disable_rounded_total", + "is_system_generated": 0, + "is_virtual": 0, + "label": null, + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-09-08 13:21:47.643244", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-custom_section_break_hpnsx", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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": 1, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2025-08-01 13:31:16.642411", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_additional_notes_section", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 187, + "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": "against_income_account", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Additional Notes", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-21 15:22:41.138670", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-posa_additional_notes_section", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-01 13:31:17.957229", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_column_break_111", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 189, + "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": "posa_notes", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-21 15:34:20.311391", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-posa_column_break_111", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-01 13:31:16.006207", + "default": "", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_coupons", + "fieldtype": "Table", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 102, + "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": "posa_offers", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Coupons Detail", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-07-25 01:18:29.588465", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-posa_coupons", + "no_copy": 0, + "non_negative": 0, + "options": "POS Coupon Detail", + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 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-08-01 13:31:11.465114", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": "shipping_address_name.posa_delivery_charges", + "fetch_if_empty": 1, + "fieldname": "posa_delivery_charges", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 59, + "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": "taxes_and_charges", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Delivery Charges", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-07-25 11:49:02.312879", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-posa_delivery_charges", + "no_copy": 0, + "non_negative": 0, + "options": "Delivery Charges", + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-01 13:31:12.472772", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_delivery_charges_rate", + "fieldtype": "Currency", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 60, + "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": "posa_delivery_charges", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Delivery Charges Rate", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-07-25 11:49:04.797031", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-posa_delivery_charges_rate", + "no_copy": 0, + "non_negative": 0, + "options": "currency", + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 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-08-01 13:31:18.631096", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_delivery_date", + "fieldtype": "Date", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 190, + "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": "posa_column_break_111", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Delivery Date", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-21 15:34:20.754955", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-posa_delivery_date", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-01 13:30:47.403452", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_is_printed", + "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": 1, + "insert_after": "posa_pos_opening_shift", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Printed", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-11-02 02:48:23.877227", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-posa_is_printed", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 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-08-01 13:31:17.294341", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_notes", + "fieldtype": "Small Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 188, + "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": "posa_additional_notes_section", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Additional Notes", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-21 15:23:30.034080", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-posa_notes", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-08-01 13:31:15.322943", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_offers", + "fieldtype": "Table", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 101, + "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": "pricing_rules", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Offers Detail", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-07 01:47:11.410905", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-posa_offers", + "no_copy": 0, + "non_negative": 0, + "options": "POS Offer Detail", + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 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-08-01 13:30:46.053475", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_pos_opening_shift", + "fieldtype": "Data", + "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": 1, + "insert_after": "pos_profile", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Shift", + "length": 0, + "mandatory_depends_on": null, + "modified": "2020-09-27 03:15:11.844405", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-posa_pos_opening_shift", + "no_copy": 1, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 1, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "sort_options": 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": "2022-01-25 10:29:57.771398", + "delete": 1, + "docstatus": 0, + "email": 1, + "export": 0, + "idx": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-05-26 22:43:29.842425", + "modified_by": "Administrator", + "name": "sj22tucssj", + "owner": "Administrator", + "parent": "Sales Invoice", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Accounts Manager", + "select": 0, + "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": "2025-05-26 22:43:29.921785", + "delete": 0, + "docstatus": 0, + "email": 0, + "export": 1, + "idx": 0, + "if_owner": 0, + "import": 0, + "modified": "2025-05-26 22:43:30.009578", + "modified_by": "Administrator", + "name": "sj239luju1", + "owner": "Administrator", + "parent": "Sales Invoice", + "permlevel": 0, + "print": 0, + "read": 0, + "report": 0, + "role": "Employee Self Service", + "select": 1, + "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": "2022-01-25 10:29:57.771398", + "delete": 0, + "docstatus": 0, + "email": 0, + "export": 0, + "idx": 4, + "if_owner": 0, + "import": 0, + "modified": "2025-05-26 22:43:29.903062", + "modified_by": "Administrator", + "name": "sj23i3f5tk", + "owner": "Administrator", + "parent": "Sales Invoice", + "permlevel": 1, + "print": 0, + "read": 1, + "report": 0, + "role": "All", + "select": 0, + "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": "2022-01-25 10:29:57.771398", + "delete": 0, + "docstatus": 0, + "email": 0, + "export": 0, + "idx": 3, + "if_owner": 0, + "import": 0, + "modified": "2025-05-26 22:43:29.914464", + "modified_by": "Administrator", + "name": "sj23qau1rt", + "owner": "Administrator", + "parent": "Sales Invoice", + "permlevel": 1, + "print": 0, + "read": 1, + "report": 0, + "role": "Accounts Manager", + "select": 0, + "set_user_permissions": 0, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "amend": 1, + "cancel": 0, + "create": 1, + "creation": "2022-01-25 10:29:57.771398", + "delete": 0, + "docstatus": 0, + "email": 1, + "export": 0, + "idx": 2, + "if_owner": 0, + "import": 0, + "modified": "2025-05-26 22:43:29.908919", + "modified_by": "Administrator", + "name": "sj23u2dvpa", + "owner": "Administrator", + "parent": "Sales Invoice", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Accounts User", + "select": 0, + "set_user_permissions": 0, + "share": 1, + "submit": 1, + "write": 1 + } + ], + "doctype": "Sales Invoice", + "links": [ + { + "creation": "2022-01-25 10:29:57.771398", + "custom": 0, + "docstatus": 0, + "group": "Reference", + "hidden": 0, + "idx": 1, + "is_child_table": 0, + "link_doctype": "POS Invoice", + "link_fieldname": "consolidated_invoice", + "modified": "2025-05-26 22:40:20.507907", + "modified_by": "Administrator", + "name": "sh6tck0ce4", + "owner": "Administrator", + "parent": "Sales Invoice", + "parent_doctype": null, + "parentfield": "links", + "parenttype": "DocType", + "table_fieldname": null + } + ], + "property_setters": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:40.519677", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "additional_discount_account", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.938741", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-additional_discount_account-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:40.527614", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "additional_discount_account", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.950274", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-additional_discount_account-mandatory_depends_on", + "owner": "Administrator", + "property": "mandatory_depends_on", + "property_type": "Code", + "row_name": null, + "value": "" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-07-30 13:51:56.704932", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "base_rounded_total", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.960580", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-base_rounded_total-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-07-30 13:51:56.736390", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "base_rounded_total", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.971041", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-base_rounded_total-print_hide", + "owner": "Administrator", + "property": "print_hide", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-07-30 13:51:56.835647", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "disable_rounded_total", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.981458", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-disable_rounded_total-default", + "owner": "Administrator", + "property": "default", + "property_type": "Text", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 22:41:29.571469", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "due_date", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.992702", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-due_date-print_hide", + "owner": "Administrator", + "property": "print_hide", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-07-30 13:51:57.855356", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "in_words", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:36.003996", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-in_words-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-07-30 13:51:57.889513", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "in_words", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:36.014272", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-in_words-print_hide", + "owner": "Administrator", + "property": "print_hide", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-09-10 13:19:17.687261", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocType", + "field_name": null, + "idx": 0, + "is_system_generated": 0, + "modified": "2025-09-10 13:19:17.687261", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-main-field_order", + "owner": "Administrator", + "property": "field_order", + "property_type": "Data", + "row_name": null, + "value": "[\"customer_section\", \"title\", \"naming_series\", \"customer\", \"customer_name\", \"tax_id\", \"company\", \"company_tax_id\", \"column_break1\", \"posting_date\", \"posting_time\", \"set_posting_time\", \"due_date\", \"column_break_14\", \"is_pos\", \"pos_profile\", \"posa_pos_opening_shift\", \"posa_is_printed\", \"is_consolidated\", \"is_return\", \"return_against\", \"update_outstanding_for_self\", \"update_billed_amount_in_sales_order\", \"update_billed_amount_in_delivery_note\", \"is_debit_note\", \"amended_from\", \"accounting_dimensions_section\", \"cost_center\", \"dimension_col_break\", \"project\", \"currency_and_price_list\", \"currency\", \"conversion_rate\", \"column_break2\", \"selling_price_list\", \"price_list_currency\", \"plc_conversion_rate\", \"ignore_pricing_rule\", \"items_section\", \"scan_barcode\", \"update_stock\", \"column_break_39\", \"set_warehouse\", \"set_target_warehouse\", \"section_break_42\", \"items\", \"section_break_30\", \"total_qty\", \"total_net_weight\", \"column_break_32\", \"base_total\", \"base_net_total\", \"column_break_52\", \"total\", \"net_total\", \"taxes_section\", \"tax_category\", \"taxes_and_charges\", \"posa_delivery_charges\", \"posa_delivery_charges_rate\", \"column_break_38\", \"shipping_rule\", \"column_break_55\", \"incoterm\", \"named_place\", \"section_break_40\", \"taxes\", \"section_break_43\", \"base_total_taxes_and_charges\", \"column_break_47\", \"total_taxes_and_charges\", \"totals\", \"base_grand_total\", \"base_rounding_adjustment\", \"base_rounded_total\", \"base_in_words\", \"column_break5\", \"grand_total\", \"rounding_adjustment\", \"use_company_roundoff_cost_center\", \"rounded_total\", \"in_words\", \"total_advance\", \"outstanding_amount\", \"disable_rounded_total\", \"custom_section_break_hpnsx\", \"custom_commission_breakdown\", null, \"section_break_49\", \"apply_discount_on\", \"base_discount_amount\", \"is_cash_or_non_trade_discount\", \"additional_discount_account\", \"column_break_51\", \"additional_discount_percentage\", \"discount_amount\", \"sec_tax_breakup\", \"other_charges_calculation\", \"pricing_rule_details\", \"pricing_rules\", \"posa_offers\", \"posa_coupons\", \"packing_list\", \"packed_items\", \"product_bundle_help\", \"time_sheet_list\", \"timesheets\", \"section_break_104\", \"total_billing_hours\", \"column_break_106\", \"total_billing_amount\", \"payments_tab\", \"payments_section\", \"cash_bank_account\", \"payments\", \"section_break_84\", \"base_paid_amount\", \"column_break_86\", \"paid_amount\", \"section_break_88\", \"base_change_amount\", \"column_break_90\", \"change_amount\", \"account_for_change_amount\", \"advances_section\", \"allocate_advances_automatically\", \"only_include_allocated_payments\", \"get_advances\", \"advances\", \"write_off_section\", \"write_off_amount\", \"base_write_off_amount\", \"write_off_outstanding_amount_automatically\", \"column_break_74\", \"write_off_account\", \"write_off_cost_center\", \"loyalty_points_redemption\", \"redeem_loyalty_points\", \"loyalty_points\", \"loyalty_amount\", \"column_break_77\", \"loyalty_program\", \"dont_create_loyalty_points\", \"loyalty_redemption_account\", \"loyalty_redemption_cost_center\", \"contact_and_address_tab\", \"address_and_contact\", \"customer_address\", \"address_display\", \"col_break4\", \"contact_person\", \"contact_display\", \"contact_mobile\", \"contact_email\", \"territory\", \"shipping_address_section\", \"shipping_address_name\", \"shipping_address\", \"shipping_addr_col_break\", \"dispatch_address_name\", \"dispatch_address\", \"company_address_section\", \"company_address\", \"company_address_display\", \"company_addr_col_break\", \"company_contact_person\", \"terms_tab\", \"payment_schedule_section\", \"ignore_default_payment_terms_template\", \"payment_terms_template\", \"payment_schedule\", \"terms_section_break\", \"tc_name\", \"terms\", \"more_info_tab\", \"customer_po_details\", \"po_no\", \"column_break_23\", \"po_date\", \"more_info\", \"debit_to\", \"party_account_currency\", \"is_opening\", \"column_break8\", \"unrealized_profit_loss_account\", \"against_income_account\", \"posa_additional_notes_section\", \"posa_notes\", \"posa_column_break_111\", \"posa_delivery_date\", \"sales_team_section_break\", \"sales_partner\", \"amount_eligible_for_commission\", \"column_break10\", \"commission_rate\", \"total_commission\", \"section_break2\", \"sales_team\", \"edit_printing_settings\", \"letter_head\", \"group_same_items\", \"column_break_84\", \"select_print_heading\", \"language\", \"subscription_section\", \"from_date\", \"auto_repeat\", \"column_break_140\", \"to_date\", \"update_auto_repeat_reference\", \"more_information\", \"status\", \"inter_company_invoice_reference\", \"campaign\", \"represents_company\", \"source\", \"customer_group\", \"col_break23\", \"is_internal_customer\", \"is_discounted\", \"remarks\", \"connections_tab\", \"repost_required\", \"custom_commission_paid\", \"custom_partner_commission_paid\"]" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 22:41:29.576608", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "payment_schedule", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:36.033952", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-payment_schedule-print_hide", + "owner": "Administrator", + "property": "print_hide", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-08-01 13:30:39.757266", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "posa_pos_opening_shift", + "idx": 0, + "is_system_generated": 0, + "modified": "2025-09-09 12:03:36.043512", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-posa_pos_opening_shift-no_copy", + "owner": "Administrator", + "property": "no_copy", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-07-30 13:51:56.771070", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "rounded_total", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:36.052785", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-rounded_total-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-07-30 13:51:56.804968", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "rounded_total", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:36.062529", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-rounded_total-print_hide", + "owner": "Administrator", + "property": "print_hide", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:44.644311", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "scan_barcode", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:36.072078", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-scan_barcode-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:40.443431", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "tax_id", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:36.081304", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-tax_id-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:40.453339", + "default_value": null, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "tax_id", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:36.090791", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice-tax_id-print_hide", + "owner": "Administrator", + "property": "print_hide", + "property_type": "Check", + "row_name": null, + "value": "0" + } + ], + "sync_on_migrate": 1 +} \ No newline at end of file diff --git a/posawesome/posawesome/custom/sales_invoice_item.json b/posawesome/posawesome/custom/sales_invoice_item.json new file mode 100644 index 000000000..2108903ac --- /dev/null +++ b/posawesome/posawesome/custom/sales_invoice_item.json @@ -0,0 +1,674 @@ +{ + "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-09-08 13:17:30.699003", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice Item", + "fetch_from": "item_code.custom_max_commission_rate", + "fetch_if_empty": 0, + "fieldname": "custom_max_commission_rate", + "fieldtype": "Float", + "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": "item_tax_template", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Max Commission Rate", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-09-08 13:17:30.699003", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-custom_max_commission_rate", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-09-10 13:17:13.909928", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice Item", + "fetch_from": "item_code.custom_sales_person_max_commission_rate", + "fetch_if_empty": 0, + "fieldname": "custom_sales_person_max_commission_rate", + "fieldtype": "Float", + "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_max_commission_rate", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sales Person Max Commission Rate", + "length": 0, + "mandatory_depends_on": null, + "modified": "2025-09-10 13:17:13.909928", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-custom_sales_person_max_commission_rate", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-09-08 13:08:04.950608", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_delivery_date", + "fieldtype": "Date", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 8, + "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": "posa_row_id", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Delivery Date", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-21 15:40:02.062423", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-posa_delivery_date", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-09-08 13:08:31.350350", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_is_offer", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 47, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "posa_offer_applied", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Is Offer", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-12 00:14:20.894553", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-posa_is_offer", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 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-09-08 13:08:32.088476", + "default": null, + "depends_on": "", + "description": null, + "docstatus": 0, + "dt": "Sales Invoice Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_is_replace", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 48, + "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": "posa_is_offer", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Is Offer Replace For item Row ID", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-17 18:10:36.233226", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-posa_is_replace", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 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-09-08 13:08:03.299081", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_notes", + "fieldtype": "Small Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 4, + "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": "item_code", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Additional Notes", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-21 15:28:50.283526", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-posa_notes", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "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, + "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-09-08 13:08:30.572841", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_offer_applied", + "fieldtype": "Check", + "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": "posa_offers", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Offer Applied", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-12 00:12:28.473489", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-posa_offer_applied", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 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-09-08 13:08:29.747413", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_offers", + "fieldtype": "Small Text", + "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": "pricing_rules", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Offers", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-07 01:51:16.390447", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-posa_offers", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 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-09-08 13:08:04.375300", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_row_id", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 7, + "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": "item_name", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Row ID", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-06-08 17:56:45.705775", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-posa_row_id", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "sort_options": 0, + "translatable": 1, + "unique": 0, + "width": null + } + ], + "custom_perms": [], + "doctype": "Sales Invoice Item", + "links": [], + "property_setters": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:44.527998", + "default_value": null, + "doc_type": "Sales Invoice Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "barcode", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.580390", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-barcode-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:40.502121", + "default_value": null, + "doc_type": "Sales Invoice Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "discount_account", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.592157", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-discount_account-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:40.511076", + "default_value": null, + "doc_type": "Sales Invoice Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "discount_account", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.602426", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-discount_account-mandatory_depends_on", + "owner": "Administrator", + "property": "mandatory_depends_on", + "property_type": "Code", + "row_name": null, + "value": "" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-09-10 13:17:13.674211", + "default_value": null, + "doc_type": "Sales Invoice Item", + "docstatus": 0, + "doctype_or_field": "DocType", + "field_name": null, + "idx": 0, + "is_system_generated": 0, + "modified": "2025-09-10 13:17:13.674211", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-main-field_order", + "owner": "Administrator", + "property": "field_order", + "property_type": "Data", + "row_name": null, + "value": "[\"barcode\", \"has_item_scanned\", \"item_code\", \"posa_notes\", \"col_break1\", \"item_name\", \"posa_row_id\", \"posa_delivery_date\", \"customer_item_code\", \"description_section\", \"description\", \"item_group\", \"brand\", \"image_section\", \"image\", \"image_view\", \"quantity_and_rate\", \"qty\", \"stock_uom\", \"col_break2\", \"uom\", \"conversion_factor\", \"stock_qty\", \"section_break_17\", \"price_list_rate\", \"base_price_list_rate\", \"discount_and_margin\", \"margin_type\", \"margin_rate_or_amount\", \"rate_with_margin\", \"column_break_19\", \"discount_percentage\", \"discount_amount\", \"base_rate_with_margin\", \"section_break1\", \"rate\", \"amount\", \"item_tax_template\", \"custom_max_commission_rate\", null, \"col_break3\", \"base_rate\", \"base_amount\", \"pricing_rules\", \"posa_offers\", \"posa_offer_applied\", \"posa_is_offer\", \"posa_is_replace\", \"stock_uom_rate\", \"is_free_item\", \"grant_commission\", \"section_break_21\", \"net_rate\", \"net_amount\", \"column_break_24\", \"base_net_rate\", \"base_net_amount\", \"drop_ship\", \"delivered_by_supplier\", \"accounting\", \"income_account\", \"is_fixed_asset\", \"asset\", \"finance_book\", \"col_break4\", \"expense_account\", \"discount_account\", \"deferred_revenue\", \"deferred_revenue_account\", \"service_stop_date\", \"enable_deferred_revenue\", \"column_break_50\", \"service_start_date\", \"service_end_date\", \"section_break_18\", \"weight_per_unit\", \"total_weight\", \"column_break_21\", \"weight_uom\", \"warehouse_and_reference\", \"warehouse\", \"target_warehouse\", \"quality_inspection\", \"batch_no\", \"incoming_rate\", \"col_break5\", \"allow_zero_valuation_rate\", \"serial_no\", \"item_tax_rate\", \"actual_batch_qty\", \"actual_qty\", \"edit_references\", \"sales_order\", \"so_detail\", \"sales_invoice_item\", \"column_break_74\", \"delivery_note\", \"dn_detail\", \"delivered_qty\", \"internal_transfer_section\", \"purchase_order\", \"column_break_92\", \"purchase_order_item\", \"accounting_dimensions_section\", \"cost_center\", \"dimension_col_break\", \"project\", \"section_break_54\", \"page_break\"]" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2025-05-26 12:15:44.793908", + "default_value": null, + "doc_type": "Sales Invoice Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "target_warehouse", + "idx": 0, + "is_system_generated": 1, + "modified": "2025-09-09 12:03:35.622698", + "modified_by": "Administrator", + "module": null, + "name": "Sales Invoice Item-target_warehouse-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + } + ], + "sync_on_migrate": 1 +} \ No newline at end of file diff --git a/posawesome/posawesome/doctype/sales_commission_payment/__init__.py b/posawesome/posawesome/doctype/sales_commission_payment/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/posawesome/posawesome/doctype/sales_commission_payment/sales_commission_payment.js b/posawesome/posawesome/doctype/sales_commission_payment/sales_commission_payment.js new file mode 100644 index 000000000..e2d35b337 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_commission_payment/sales_commission_payment.js @@ -0,0 +1,8 @@ +// Copyright (c) 2025, Youssef Restom and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Sales Commission Payment', { + // refresh: function(frm) { + + // } +}); diff --git a/posawesome/posawesome/doctype/sales_commission_payment/sales_commission_payment.json b/posawesome/posawesome/doctype/sales_commission_payment/sales_commission_payment.json new file mode 100644 index 000000000..78368f3e0 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_commission_payment/sales_commission_payment.json @@ -0,0 +1,75 @@ +{ + "actions": [], + "allow_rename": 1, + "autoname": "format:SCP-{DD}-{MM}-{YYYY}-{####}", + "creation": "2025-08-04 15:10:14.047579", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "sales_person", + "commission", + "mode_of_payment", + "reference_sales_invoice" + ], + "fields": [ + { + "fieldname": "sales_person", + "fieldtype": "Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Sales Person", + "options": "Sales Person" + }, + { + "fieldname": "commission", + "fieldtype": "Currency", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Commission" + }, + { + "fieldname": "mode_of_payment", + "fieldtype": "Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Mode Of Payment", + "options": "Mode of Payment" + }, + { + "fieldname": "reference_sales_invoice", + "fieldtype": "Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Reference Sales Invoice", + "options": "Sales Invoice" + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2025-08-06 13:44:52.783032", + "modified_by": "Administrator", + "module": "POSAwesome", + "name": "Sales Commission Payment", + "naming_rule": "Expression", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "sort_field": "modified", + "sort_order": "DESC", + "states": [], + "track_changes": 1 +} \ No newline at end of file diff --git a/posawesome/posawesome/doctype/sales_commission_payment/sales_commission_payment.py b/posawesome/posawesome/doctype/sales_commission_payment/sales_commission_payment.py new file mode 100644 index 000000000..33af8cdf7 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_commission_payment/sales_commission_payment.py @@ -0,0 +1,8 @@ +# Copyright (c) 2025, Youssef Restom and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class SalesCommissionPayment(Document): + pass diff --git a/posawesome/posawesome/doctype/sales_commission_payment/test_sales_commission_payment.py b/posawesome/posawesome/doctype/sales_commission_payment/test_sales_commission_payment.py new file mode 100644 index 000000000..0adf647d5 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_commission_payment/test_sales_commission_payment.py @@ -0,0 +1,9 @@ +# Copyright (c) 2025, Youssef Restom and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestSalesCommissionPayment(FrappeTestCase): + pass diff --git a/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/__init__.py b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/sales_partner_commission_bulk_pay_out.js b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/sales_partner_commission_bulk_pay_out.js new file mode 100644 index 000000000..f016b36e9 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/sales_partner_commission_bulk_pay_out.js @@ -0,0 +1,8 @@ +// Copyright (c) 2025, Youssef Restom and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Sales Partner Commission Bulk Pay Out', { + // refresh: function(frm) { + + // } +}); diff --git a/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/sales_partner_commission_bulk_pay_out.json b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/sales_partner_commission_bulk_pay_out.json new file mode 100644 index 000000000..d53934db5 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/sales_partner_commission_bulk_pay_out.json @@ -0,0 +1,105 @@ +{ + "actions": [], + "allow_rename": 1, + "autoname": "format:SPAR-BPO-{DD}-{MM}-{YYYY}-{####}", + "creation": "2025-08-21 11:28:05.247787", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "sales_partner", + "column_break_3bewg", + "mode_of_payment", + "posting_datetime", + "section_break_15rbm", + "items", + "total_commission", + "amended_from" + ], + "fields": [ + { + "fieldname": "amended_from", + "fieldtype": "Link", + "label": "Amended From", + "no_copy": 1, + "options": "Sales Partner Commission Bulk Pay Out", + "print_hide": 1, + "read_only": 1, + "search_index": 1 + }, + { + "fieldname": "column_break_3bewg", + "fieldtype": "Column Break" + }, + { + "fieldname": "mode_of_payment", + "fieldtype": "Link", + "label": "Mode Of Payment", + "options": "Mode of Payment" + }, + { + "fieldname": "posting_datetime", + "fieldtype": "Datetime", + "label": "Posting Date/Time" + }, + { + "fieldname": "section_break_15rbm", + "fieldtype": "Section Break" + }, + { + "fieldname": "items", + "fieldtype": "Table", + "label": "Items", + "options": "Sales Partner Commission Bulk Pay Out Items" + }, + { + "fieldname": "total_commission", + "fieldtype": "Currency", + "label": "Total Commission" + }, + { + "fieldname": "amended_from", + "fieldtype": "Link", + "label": "Amended From", + "no_copy": 1, + "options": "Sales Partner Commission Bulk Pay Out", + "print_hide": 1, + "read_only": 1, + "search_index": 1 + }, + { + "fieldname": "sales_partner", + "fieldtype": "Link", + "label": "Sales Partner", + "options": "Sales Partner" + } + ], + "index_web_pages_for_search": 1, + "is_submittable": 1, + "links": [], + "modified": "2025-08-21 12:25:12.927539", + "modified_by": "Administrator", + "module": "POSAwesome", + "name": "Sales Partner Commission Bulk Pay Out", + "naming_rule": "Expression", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "sort_field": "modified", + "sort_order": "DESC", + "states": [], + "track_changes": 1 +} \ No newline at end of file diff --git a/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/sales_partner_commission_bulk_pay_out.py b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/sales_partner_commission_bulk_pay_out.py new file mode 100644 index 000000000..35874ddce --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/sales_partner_commission_bulk_pay_out.py @@ -0,0 +1,22 @@ +# Copyright (c) 2025, Youssef Restom and contributors +# For license information, please see license.txt + +# import frappe +import frappe +from frappe.model.document import Document +from frappe import _ + +class SalesPartnerCommissionBulkPayOut(Document): + def before_submit(self): + if not self.mode_of_payment: + frappe.throw(_("Mode of Payment is required before submitting.")) + + def on_submit(self): + for row in self.items: + if row.reference_sales_invoice: + frappe.db.set_value( + "Sales Invoice", + row.reference_sales_invoice, + "custom_partner_commission_paid", + 1 + ) \ No newline at end of file diff --git a/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/test_sales_partner_commission_bulk_pay_out.py b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/test_sales_partner_commission_bulk_pay_out.py new file mode 100644 index 000000000..49f1e3ab1 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out/test_sales_partner_commission_bulk_pay_out.py @@ -0,0 +1,9 @@ +# Copyright (c) 2025, Youssef Restom and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestSalesPartnerCommissionBulkPayOut(FrappeTestCase): + pass diff --git a/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out_items/__init__.py b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out_items/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out_items/sales_partner_commission_bulk_pay_out_items.json b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out_items/sales_partner_commission_bulk_pay_out_items.json new file mode 100644 index 000000000..b02da30e5 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out_items/sales_partner_commission_bulk_pay_out_items.json @@ -0,0 +1,51 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2025-08-21 11:26:29.193887", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "reference_sales_invoice", + "commission", + "mode_of_payment" + ], + "fields": [ + { + "fieldname": "reference_sales_invoice", + "fieldtype": "Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Reference Sales Invoice", + "options": "Sales Invoice" + }, + { + "fieldname": "commission", + "fieldtype": "Currency", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Commission" + }, + { + "fieldname": "mode_of_payment", + "fieldtype": "Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Mode Of Payment", + "options": "Mode of Payment" + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2025-08-21 11:26:29.193887", + "modified_by": "Administrator", + "module": "POSAwesome", + "name": "Sales Partner Commission Bulk Pay Out Items", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out_items/sales_partner_commission_bulk_pay_out_items.py b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out_items/sales_partner_commission_bulk_pay_out_items.py new file mode 100644 index 000000000..23aa80de4 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_bulk_pay_out_items/sales_partner_commission_bulk_pay_out_items.py @@ -0,0 +1,8 @@ +# Copyright (c) 2025, Youssef Restom and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class SalesPartnerCommissionBulkPayOutItems(Document): + pass \ No newline at end of file diff --git a/posawesome/posawesome/doctype/sales_partner_commission_detail/__init__.py b/posawesome/posawesome/doctype/sales_partner_commission_detail/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/posawesome/posawesome/doctype/sales_partner_commission_detail/sales_partner_commission_detail.json b/posawesome/posawesome/doctype/sales_partner_commission_detail/sales_partner_commission_detail.json new file mode 100644 index 000000000..04e4f2d38 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_detail/sales_partner_commission_detail.json @@ -0,0 +1,57 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2025-09-08 13:19:31.715115", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "item_code", + "base_net_amount", + "applied_rate", + "commission_amount" + ], + "fields": [ + { + "fieldname": "item_code", + "fieldtype": "Link", + "in_list_view": 1, + "label": "Item Code", + "options": "Item", + "search_index": 1 + }, + { + "fieldname": "base_net_amount", + "fieldtype": "Currency", + "in_list_view": 1, + "label": "Base Net Amount", + "search_index": 1 + }, + { + "fieldname": "applied_rate", + "fieldtype": "Float", + "in_list_view": 1, + "label": "Applied Rate", + "search_index": 1 + }, + { + "fieldname": "commission_amount", + "fieldtype": "Currency", + "in_list_view": 1, + "label": "Commission Amount", + "search_index": 1 + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2025-09-09 11:54:47.630709", + "modified_by": "Administrator", + "module": "POSAwesome", + "name": "Sales Partner Commission Detail", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/posawesome/posawesome/doctype/sales_partner_commission_detail/sales_partner_commission_detail.py b/posawesome/posawesome/doctype/sales_partner_commission_detail/sales_partner_commission_detail.py new file mode 100644 index 000000000..59d9e9690 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_detail/sales_partner_commission_detail.py @@ -0,0 +1,8 @@ +# Copyright (c) 2025, Youssef Restom and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class SalesPartnerCommissionDetail(Document): + pass diff --git a/posawesome/posawesome/doctype/sales_partner_commission_payment/__init__.py b/posawesome/posawesome/doctype/sales_partner_commission_payment/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/posawesome/posawesome/doctype/sales_partner_commission_payment/sales_partner_commission_payment.js b/posawesome/posawesome/doctype/sales_partner_commission_payment/sales_partner_commission_payment.js new file mode 100644 index 000000000..49954666f --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_payment/sales_partner_commission_payment.js @@ -0,0 +1,8 @@ +// Copyright (c) 2025, Youssef Restom and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Sales Partner Commission Payment', { + // refresh: function(frm) { + + // } +}); diff --git a/posawesome/posawesome/doctype/sales_partner_commission_payment/sales_partner_commission_payment.json b/posawesome/posawesome/doctype/sales_partner_commission_payment/sales_partner_commission_payment.json new file mode 100644 index 000000000..e1cb5b3a7 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_payment/sales_partner_commission_payment.json @@ -0,0 +1,75 @@ +{ + "actions": [], + "allow_rename": 1, + "autoname": "format:SPCP-{DD}-{MM}-{YYYY}-{####}", + "creation": "2025-08-05 11:49:17.435603", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "sales_partner", + "commission", + "mode_of_payment", + "reference_sales_invoice" + ], + "fields": [ + { + "fieldname": "commission", + "fieldtype": "Currency", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Commission" + }, + { + "fieldname": "mode_of_payment", + "fieldtype": "Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Mode Of Payment", + "options": "Mode of Payment" + }, + { + "fieldname": "reference_sales_invoice", + "fieldtype": "Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Reference Sales Invoice", + "options": "Sales Invoice" + }, + { + "fieldname": "sales_partner", + "fieldtype": "Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Sales Partner", + "options": "Sales Partner" + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2025-08-06 13:46:05.107131", + "modified_by": "Administrator", + "module": "POSAwesome", + "name": "Sales Partner Commission Payment", + "naming_rule": "Expression", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "sort_field": "modified", + "sort_order": "DESC", + "states": [], + "track_changes": 1 +} \ No newline at end of file diff --git a/posawesome/posawesome/doctype/sales_partner_commission_payment/sales_partner_commission_payment.py b/posawesome/posawesome/doctype/sales_partner_commission_payment/sales_partner_commission_payment.py new file mode 100644 index 000000000..8682155fd --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_payment/sales_partner_commission_payment.py @@ -0,0 +1,8 @@ +# Copyright (c) 2025, Youssef Restom and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class SalesPartnerCommissionPayment(Document): + pass diff --git a/posawesome/posawesome/doctype/sales_partner_commission_payment/test_sales_partner_commission_payment.py b/posawesome/posawesome/doctype/sales_partner_commission_payment/test_sales_partner_commission_payment.py new file mode 100644 index 000000000..9ba2a9d4a --- /dev/null +++ b/posawesome/posawesome/doctype/sales_partner_commission_payment/test_sales_partner_commission_payment.py @@ -0,0 +1,9 @@ +# Copyright (c) 2025, Youssef Restom and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestSalesPartnerCommissionPayment(FrappeTestCase): + pass diff --git a/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/__init__.py b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/sales_person_commission_bulk_pay_out.js b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/sales_person_commission_bulk_pay_out.js new file mode 100644 index 000000000..5b2407a32 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/sales_person_commission_bulk_pay_out.js @@ -0,0 +1,8 @@ +// Copyright (c) 2025, Youssef Restom and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Sales Person Commission Bulk Pay Out', { + // refresh: function(frm) { + + // } +}); diff --git a/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/sales_person_commission_bulk_pay_out.json b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/sales_person_commission_bulk_pay_out.json new file mode 100644 index 000000000..ff426c1e8 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/sales_person_commission_bulk_pay_out.json @@ -0,0 +1,96 @@ +{ + "actions": [], + "allow_rename": 1, + "autoname": "format:SPR-BPO-{DD}-{MM}-{YYYY}-{####}", + "creation": "2025-08-07 09:30:38.565142", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "sales_person", + "amended_from", + "column_break_3bewg", + "mode_of_payment", + "posting_datetime", + "section_break_15rbm", + "items", + "total_commission" + ], + "fields": [ + { + "fieldname": "sales_person", + "fieldtype": "Link", + "label": "Sales Person", + "options": "Sales Person" + }, + { + "fieldname": "amended_from", + "fieldtype": "Link", + "hidden": 1, + "label": "Amended From", + "no_copy": 1, + "options": "Sales Person Commission Bulk Pay Out", + "print_hide": 1, + "read_only": 1, + "search_index": 1 + }, + { + "fieldname": "posting_datetime", + "fieldtype": "Datetime", + "label": "Posting Date/Time" + }, + { + "fieldname": "column_break_3bewg", + "fieldtype": "Column Break" + }, + { + "fieldname": "section_break_15rbm", + "fieldtype": "Section Break" + }, + { + "fieldname": "items", + "fieldtype": "Table", + "label": "Items", + "options": "Sales Person Commission Bulk Pay Out Items" + }, + { + "fieldname": "total_commission", + "fieldtype": "Currency", + "label": "Total Commission" + }, + { + "fieldname": "mode_of_payment", + "fieldtype": "Link", + "label": "Mode Of Payment", + "options": "Mode of Payment" + } + ], + "index_web_pages_for_search": 1, + "is_submittable": 1, + "links": [], + "modified": "2025-08-07 13:32:24.346145", + "modified_by": "Administrator", + "module": "POSAwesome", + "name": "Sales Person Commission Bulk Pay Out", + "naming_rule": "Expression", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "sort_field": "modified", + "sort_order": "DESC", + "states": [], + "track_changes": 1 +} \ No newline at end of file diff --git a/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/sales_person_commission_bulk_pay_out.py b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/sales_person_commission_bulk_pay_out.py new file mode 100644 index 000000000..b4fc3e76c --- /dev/null +++ b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/sales_person_commission_bulk_pay_out.py @@ -0,0 +1,21 @@ +# Copyright (c) 2025, Youssef Restom and contributors +# For license information, please see license.txt + +import frappe +from frappe.model.document import Document +from frappe import _ + +class SalesPersonCommissionBulkPayOut(Document): + def before_submit(self): + if not self.mode_of_payment: + frappe.throw(_("Mode of Payment is required before submitting.")) + + def on_submit(self): + for row in self.items: + if row.reference_sales_invoice: + frappe.db.set_value( + "Sales Invoice", + row.reference_sales_invoice, + "custom_commission_paid", + 1 + ) diff --git a/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/test_sales_person_commission_bulk_pay_out.py b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/test_sales_person_commission_bulk_pay_out.py new file mode 100644 index 000000000..1136c7a32 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out/test_sales_person_commission_bulk_pay_out.py @@ -0,0 +1,9 @@ +# Copyright (c) 2025, Youssef Restom and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestSalesPersonCommissionBulkPayOut(FrappeTestCase): + pass diff --git a/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out_items/__init__.py b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out_items/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out_items/sales_person_commission_bulk_pay_out_items.json b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out_items/sales_person_commission_bulk_pay_out_items.json new file mode 100644 index 000000000..2d8d072ae --- /dev/null +++ b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out_items/sales_person_commission_bulk_pay_out_items.json @@ -0,0 +1,50 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2025-08-07 09:33:32.021078", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "reference_sales_invoice", + "commission", + "mode_of_payment" + ], + "fields": [ + { + "fieldname": "reference_sales_invoice", + "fieldtype": "Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Reference Sales Invoice", + "options": "Sales Invoice" + }, + { + "fieldname": "commission", + "fieldtype": "Currency", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Commission" + }, + { + "fieldname": "mode_of_payment", + "fieldtype": "Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Mode Of Payment", + "options": "Mode of Payment" + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2025-08-07 09:34:59.640054", + "modified_by": "Administrator", + "module": "POSAwesome", + "name": "Sales Person Commission Bulk Pay Out Items", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out_items/sales_person_commission_bulk_pay_out_items.py b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out_items/sales_person_commission_bulk_pay_out_items.py new file mode 100644 index 000000000..646c9ec0b --- /dev/null +++ b/posawesome/posawesome/doctype/sales_person_commission_bulk_pay_out_items/sales_person_commission_bulk_pay_out_items.py @@ -0,0 +1,8 @@ +# Copyright (c) 2025, Youssef Restom and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class SalesPersonCommissionBulkPayOutItems(Document): + pass diff --git a/posawesome/posawesome/doctype/sales_person_commission_detail/__init__.py b/posawesome/posawesome/doctype/sales_person_commission_detail/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/posawesome/posawesome/doctype/sales_person_commission_detail/sales_person_commission_detail.json b/posawesome/posawesome/doctype/sales_person_commission_detail/sales_person_commission_detail.json new file mode 100644 index 000000000..4bae33931 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_person_commission_detail/sales_person_commission_detail.json @@ -0,0 +1,58 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2025-09-10 13:15:56.601191", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "item_code", + "base_net_amount", + "applied_rate", + "commission_amount" + ], + "fields": [ + { + "fieldname": "item_code", + "fieldtype": "Link", + "in_list_view": 1, + "label": "Item Code", + "options": "Item", + "search_index": 1 + }, + { + "fieldname": "base_net_amount", + "fieldtype": "Currency", + "in_list_view": 1, + "label": "Base Net Amount", + "search_index": 1 + }, + { + "fieldname": "applied_rate", + "fieldtype": "Float", + "in_list_view": 1, + "label": "Applied Rate", + "search_index": 1 + }, + { + "fieldname": "commission_amount", + "fieldtype": "Currency", + "in_list_view": 1, + "label": "Commission Amount", + "search_index": 1 + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2025-09-10 13:15:56.601191", + "modified_by": "Administrator", + "module": "POSAwesome", + "name": "Sales Person Commission Detail", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/posawesome/posawesome/doctype/sales_person_commission_detail/sales_person_commission_detail.py b/posawesome/posawesome/doctype/sales_person_commission_detail/sales_person_commission_detail.py new file mode 100644 index 000000000..8ff883279 --- /dev/null +++ b/posawesome/posawesome/doctype/sales_person_commission_detail/sales_person_commission_detail.py @@ -0,0 +1,8 @@ +# Copyright (c) 2025, Youssef Restom and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class SalesPersonCommissionDetail(Document): + pass diff --git a/posawesome/posawesome/page/sales_partner_commis/__init__.py b/posawesome/posawesome/page/sales_partner_commis/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/posawesome/posawesome/page/sales_partner_commis/sales_partner_commis.js b/posawesome/posawesome/page/sales_partner_commis/sales_partner_commis.js new file mode 100644 index 000000000..ad2f08e8e --- /dev/null +++ b/posawesome/posawesome/page/sales_partner_commis/sales_partner_commis.js @@ -0,0 +1,308 @@ +frappe.pages['sales-partner-commis'].on_page_load = function (wrapper) { + const page = frappe.ui.make_app_page({ + parent: wrapper, + title: 'Sales Partner Commission', + single_column: true + }); + + $(page.body).addClass("page-layout-main-section"); + + // ✅ Check if user has Sales Commission Admin role + const is_admin = frappe.user_roles.includes("Sales Commission Admin"); + + // Add filters + const filters = [ + { + fieldname: "sales_partner", + label: __("Sales Partner"), + fieldtype: "Link", + options: "Sales Partner", + reqd: is_admin ? 0 : 1, // required only if NOT admin + }, + { + fieldname: "payment_status", + label: __("Payment Status"), + fieldtype: "Select", + options: ["Pending", "Paid"], + default: "Pending" + } + ]; + + const filter_group = $('
').appendTo(page.body); + filters.forEach((filter) => { + const field_wrapper = $('').appendTo(filter_group); + const field = frappe.ui.form.make_control({ + df: filter, + parent: field_wrapper, + render_input: true + }); + field.refresh(); + page[filter.fieldname] = field; + }); + + // Set default value for Payment Status manually + setTimeout(() => { + if (page.payment_status) { + page.payment_status.set_value("Pending"); + } + }, 100); + + // Buttons + const button_group = $(` +