From 65ba6038a746f21663ed197e53772a9aae4696a6 Mon Sep 17 00:00:00 2001 From: Okeyo Gichana Mayaka Date: Tue, 4 Jun 2024 12:48:58 +0300 Subject: [PATCH] feat: implemented generation of qr codes for successful sales submissions. --- kenya_compliance/fixtures/custom_field.json | 1524 ++++++++--------- .../apis/remote_response_status_handlers.py | 20 +- .../overrides/server/shared_overrides.py | 2 + kenya_compliance/kenya_compliance/utils.py | 40 + 4 files changed, 793 insertions(+), 793 deletions(-) diff --git a/kenya_compliance/fixtures/custom_field.json b/kenya_compliance/fixtures/custom_field.json index 4c8ffca..df4a6b7 100644 --- a/kenya_compliance/fixtures/custom_field.json +++ b/kenya_compliance/fixtures/custom_field.json @@ -895,62 +895,6 @@ "unique": 0, "width": null }, - { - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": "0", - "depends_on": null, - "description": null, - "docstatus": 0, - "doctype": "Custom Field", - "dt": "Customer", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "posa_discount", - "fieldtype": "Float", - "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": "lead_name", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Discount %", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2021-06-04 21:02:31.784347", - "module": null, - "name": "Customer-posa_discount", - "no_copy": 0, - "non_negative": 1, - "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, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, { "allow_in_quick_entry": 0, "allow_on_submit": 0, @@ -2083,11 +2027,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Item", + "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_uazue", - "fieldtype": "Column Break", + "fieldname": "custom_etims_branch", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2098,19 +2042,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_item_registered", + "insert_after": "cost_center", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "eTims Branch", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-09 12:44:46.431369", + "modified": "2024-05-30 11:02:12.600414", "module": null, - "name": "Item-custom_column_break_uazue", + "name": "Sales Invoice-custom_etims_branch", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Branch", "permlevel": 0, "precision": "", "print_hide": 0, @@ -2119,7 +2063,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 0, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -2139,11 +2083,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice", + "dt": "Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_etims_branch", - "fieldtype": "Link", + "fieldname": "custom_column_break_uazue", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2154,19 +2098,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "cost_center", + "insert_after": "custom_item_registered", "is_system_generated": 0, "is_virtual": 0, - "label": "eTims Branch", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-05-30 11:02:12.600414", + "modified": "2024-04-09 12:44:46.431369", "module": null, - "name": "Sales Invoice-custom_etims_branch", + "name": "Item-custom_column_break_uazue", "no_copy": 0, "non_negative": 0, - "options": "Branch", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -2175,7 +2119,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -2699,11 +2643,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "posa_birthday", - "fieldtype": "Date", + "dt": "Item", + "fetch_from": "custom_item_classification.taxtycd", + "fetch_if_empty": 1, + "fieldname": "custom_taxation_type", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2714,19 +2658,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "contact_html", + "insert_after": "custom_column_break_etc01", "is_system_generated": 0, "is_virtual": 0, - "label": "Birthday", + "label": "Taxation Type", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2021-07-31 00:12:09.417519", + "modified": "2024-03-08 14:45:20.504518", "module": null, - "name": "Customer-posa_birthday", + "name": "Item-custom_taxation_type", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari KRA eTims Taxation Type", "permlevel": 0, "precision": "", "print_hide": 0, @@ -2756,10 +2700,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "Item", - "fetch_from": "custom_item_classification.taxtycd", - "fetch_if_empty": 1, - "fieldname": "custom_taxation_type", - "fieldtype": "Link", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_packaging_unit_details", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2770,19 +2714,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_etc01", + "insert_after": "custom_taxation_type", "is_system_generated": 0, "is_virtual": 0, - "label": "Taxation Type", + "label": "Packaging Unit Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:45:20.504518", + "modified": "2024-03-13 09:08:39.052760", "module": null, - "name": "Item-custom_taxation_type", + "name": "Item-custom_packaging_unit_details", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Taxation Type", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -2803,7 +2747,7 @@ "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, - "collapsible": 1, + "collapsible": 0, "collapsible_depends_on": null, "columns": 0, "default": null, @@ -2811,11 +2755,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_referral_section", - "fieldtype": "Section Break", + "fieldname": "custom_packaging_unit", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2826,19 +2770,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_birthday", + "insert_after": "custom_packaging_unit_details", "is_system_generated": 0, "is_virtual": 0, - "label": "Referral Code", + "label": "Packaging Unit", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2021-07-29 23:23:04.910503", + "modified": "2024-03-13 09:08:39.196534", "module": null, - "name": "Customer-posa_referral_section", + "name": "Item-custom_packaging_unit", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari eTims Packaging Unit", "permlevel": 0, "precision": "", "print_hide": 0, @@ -2847,7 +2791,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 0, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -2867,10 +2811,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Item", + "dt": "POS Invoice Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_packaging_unit_details", + "fieldname": "custom_section_break_si6bx", "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, @@ -2882,16 +2826,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_taxation_type", + "insert_after": "grant_commission", "is_system_generated": 0, "is_virtual": 0, - "label": "Packaging Unit Details", + "label": "eTims Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 09:08:39.052760", + "modified": "2024-03-18 15:32:19.554044", "module": null, - "name": "Item-custom_packaging_unit_details", + "name": "POS Invoice Item-custom_section_break_si6bx", "no_copy": 0, "non_negative": 0, "options": null, @@ -2912,7 +2856,7 @@ "width": null }, { - "allow_in_quick_entry": 1, + "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, "collapsible": 0, @@ -2923,11 +2867,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "posa_referral_code", - "fieldtype": "Data", + "fieldname": "custom_column_break_mn3af", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -2938,17 +2882,17 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_referral_section", + "insert_after": "custom_packaging_unit", "is_system_generated": 0, "is_virtual": 0, - "label": "Referral Code", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2021-07-29 22:42:57.772021", + "modified": "2024-03-13 09:08:39.398004", "module": null, - "name": "Customer-posa_referral_code", - "no_copy": 1, + "name": "Item-custom_column_break_mn3af", + "no_copy": 0, "non_negative": 0, "options": null, "permlevel": 0, @@ -2963,7 +2907,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -2979,8 +2923,8 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Item", - "fetch_from": null, + "dt": "POS Invoice Item", + "fetch_from": "item_code.custom_packaging_unit", "fetch_if_empty": 0, "fieldname": "custom_packaging_unit", "fieldtype": "Link", @@ -2994,16 +2938,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_packaging_unit_details", + "insert_after": "custom_section_break_si6bx", "is_system_generated": 0, "is_virtual": 0, "label": "Packaging Unit", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 09:08:39.196534", + "modified": "2024-03-18 15:32:19.705273", "module": null, - "name": "Item-custom_packaging_unit", + "name": "POS Invoice Item-custom_packaging_unit", "no_copy": 0, "non_negative": 0, "options": "Navari eTims Packaging Unit", @@ -3024,9 +2968,9 @@ "width": null }, { - "allow_in_quick_entry": 1, + "allow_in_quick_entry": 0, "allow_on_submit": 0, - "bold": 1, + "bold": 0, "collapsible": 0, "collapsible_depends_on": null, "columns": 0, @@ -3035,11 +2979,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", - "fetch_from": null, + "dt": "Item", + "fetch_from": "custom_packaging_unit.code", "fetch_if_empty": 0, - "fieldname": "posa_referral_company", - "fieldtype": "Link", + "fieldname": "custom_packaging_unit_code", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3050,25 +2994,25 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "posa_referral_code", + "insert_after": "custom_column_break_mn3af", "is_system_generated": 0, "is_virtual": 0, - "label": "Referral Company", + "label": "Packaging Unit Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2021-07-29 23:24:11.207034", + "modified": "2024-03-13 09:08:39.544472", "module": null, - "name": "Customer-posa_referral_company", - "no_copy": 1, + "name": "Item-custom_packaging_unit_code", + "no_copy": 0, "non_negative": 0, - "options": "Company", + "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, @@ -3091,10 +3035,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice Item", + "dt": "Sales Invoice Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_section_break_si6bx", + "fieldname": "custom_kra_etims_taxation_details", "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, @@ -3109,13 +3053,13 @@ "insert_after": "grant_commission", "is_system_generated": 0, "is_virtual": 0, - "label": "eTims Details", + "label": "KRA eTims Taxation Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:32:19.554044", + "modified": "2024-03-08 14:29:53.452154", "module": null, - "name": "POS Invoice Item-custom_section_break_si6bx", + "name": "Sales Invoice Item-custom_kra_etims_taxation_details", "no_copy": 0, "non_negative": 0, "options": null, @@ -3147,11 +3091,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Item", - "fetch_from": null, + "dt": "POS Invoice Item", + "fetch_from": "item_code.custom_unit_of_quantity", "fetch_if_empty": 0, - "fieldname": "custom_column_break_mn3af", - "fieldtype": "Column Break", + "fieldname": "custom_unit_of_quantity", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3165,16 +3109,16 @@ "insert_after": "custom_packaging_unit", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Unit of Quantity", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 09:08:39.398004", + "modified": "2024-03-18 15:32:19.822599", "module": null, - "name": "Item-custom_column_break_mn3af", + "name": "POS Invoice Item-custom_unit_of_quantity", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari eTims Unit of Quantity", "permlevel": 0, "precision": "", "print_hide": 0, @@ -3183,7 +3127,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 0, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -3203,11 +3147,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice Item", - "fetch_from": "item_code.custom_packaging_unit", + "dt": "Item", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_packaging_unit", - "fieldtype": "Link", + "fieldname": "custom_unit_of_quantity_details", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3218,19 +3162,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_section_break_si6bx", + "insert_after": "custom_packaging_unit_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Packaging Unit", + "label": "Unit of Quantity Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:32:19.705273", + "modified": "2024-03-13 09:15:09.867250", "module": null, - "name": "POS Invoice Item-custom_packaging_unit", + "name": "Item-custom_unit_of_quantity_details", "no_copy": 0, "non_negative": 0, - "options": "Navari eTims Packaging Unit", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -3239,7 +3183,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -3259,11 +3203,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Item", - "fetch_from": "custom_packaging_unit.code", + "dt": "Sales Invoice Item", + "fetch_from": "item_code.custom_packaging_unit", "fetch_if_empty": 0, - "fieldname": "custom_packaging_unit_code", - "fieldtype": "Data", + "fieldname": "custom_packaging_unit", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3274,28 +3218,28 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_mn3af", + "insert_after": "custom_kra_etims_taxation_details", "is_system_generated": 0, "is_virtual": 0, - "label": "Packaging Unit Code", + "label": "Packaging Unit", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 09:08:39.544472", + "modified": "2024-03-12 12:37:41.322070", "module": null, - "name": "Item-custom_packaging_unit_code", + "name": "Sales Invoice Item-custom_packaging_unit", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari eTims Packaging Unit", "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, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -3316,9 +3260,9 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "POS Invoice Item", - "fetch_from": "item_code.custom_unit_of_quantity", + "fetch_from": "item_code.custom_taxation_type", "fetch_if_empty": 0, - "fieldname": "custom_unit_of_quantity", + "fieldname": "custom_taxation_type", "fieldtype": "Link", "hidden": 0, "hide_border": 0, @@ -3330,19 +3274,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_packaging_unit", + "insert_after": "custom_unit_of_quantity", "is_system_generated": 0, "is_virtual": 0, - "label": "Unit of Quantity", + "label": "Taxation Type", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:32:19.822599", + "modified": "2024-03-18 15:32:19.951216", "module": null, - "name": "POS Invoice Item-custom_unit_of_quantity", + "name": "POS Invoice Item-custom_taxation_type", "no_copy": 0, "non_negative": 0, - "options": "Navari eTims Unit of Quantity", + "options": "Navari KRA eTims Taxation Type", "permlevel": 0, "precision": "", "print_hide": 0, @@ -3374,8 +3318,8 @@ "dt": "Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_unit_of_quantity_details", - "fieldtype": "Section Break", + "fieldname": "custom_unit_of_quantity", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3386,19 +3330,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_packaging_unit_code", + "insert_after": "custom_unit_of_quantity_details", "is_system_generated": 0, "is_virtual": 0, - "label": "Unit of Quantity Details", + "label": "Unit of Quantity", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 09:15:09.867250", + "modified": "2024-03-13 09:15:10.020299", "module": null, - "name": "Item-custom_unit_of_quantity_details", + "name": "Item-custom_unit_of_quantity", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari eTims Unit of Quantity", "permlevel": 0, "precision": "", "print_hide": 0, @@ -3407,7 +3351,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 0, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -3427,10 +3371,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice Item", - "fetch_from": "item_code.custom_taxation_type", + "dt": "Sales Invoice Item", + "fetch_from": "item_code.custom_unit_of_quantity", "fetch_if_empty": 0, - "fieldname": "custom_taxation_type", + "fieldname": "custom_unit_of_quantity", "fieldtype": "Link", "hidden": 0, "hide_border": 0, @@ -3442,19 +3386,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_unit_of_quantity", + "insert_after": "custom_packaging_unit", "is_system_generated": 0, "is_virtual": 0, - "label": "Taxation Type", + "label": "Unit of Quantity", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:32:19.951216", + "modified": "2024-03-12 14:17:30.865391", "module": null, - "name": "POS Invoice Item-custom_taxation_type", + "name": "Sales Invoice Item-custom_unit_of_quantity", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Taxation Type", + "options": "Navari eTims Unit of Quantity", "permlevel": 0, "precision": "", "print_hide": 0, @@ -3483,10 +3427,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Item", - "fetch_from": null, + "dt": "POS Invoice Item", + "fetch_from": "item_code.custom_item_classification", "fetch_if_empty": 0, - "fieldname": "custom_unit_of_quantity", + "fieldname": "custom_item_classification", "fieldtype": "Link", "hidden": 0, "hide_border": 0, @@ -3498,19 +3442,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_unit_of_quantity_details", + "insert_after": "custom_taxation_type", "is_system_generated": 0, "is_virtual": 0, - "label": "Unit of Quantity", + "label": "Item Classification", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 09:15:10.020299", + "modified": "2024-03-18 15:32:20.075139", "module": null, - "name": "Item-custom_unit_of_quantity", + "name": "POS Invoice Item-custom_item_classification", "no_copy": 0, "non_negative": 0, - "options": "Navari eTims Unit of Quantity", + "options": "Navari KRA eTims Item Classification", "permlevel": 0, "precision": "", "print_hide": 0, @@ -3539,11 +3483,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice Item", - "fetch_from": "item_code.custom_item_classification", + "dt": "Item", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_item_classification", - "fieldtype": "Link", + "fieldname": "custom_column_break_57atq", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3554,19 +3498,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_taxation_type", + "insert_after": "custom_unit_of_quantity", "is_system_generated": 0, "is_virtual": 0, - "label": "Item Classification", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:32:20.075139", + "modified": "2024-03-13 09:15:33.015233", "module": null, - "name": "POS Invoice Item-custom_item_classification", + "name": "Item-custom_column_break_57atq", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Item Classification", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -3575,7 +3519,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -3595,11 +3539,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Item", - "fetch_from": null, + "dt": "Sales Invoice Item", + "fetch_from": "custom_item_classification.taxtycd", "fetch_if_empty": 0, - "fieldname": "custom_column_break_57atq", - "fieldtype": "Column Break", + "fieldname": "custom_taxation_type", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3613,16 +3557,16 @@ "insert_after": "custom_unit_of_quantity", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Taxation Type", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 09:15:33.015233", + "modified": "2024-03-08 14:37:31.305109", "module": null, - "name": "Item-custom_column_break_57atq", + "name": "Sales Invoice Item-custom_taxation_type", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari KRA eTims Taxation Type", "permlevel": 0, "precision": "", "print_hide": 0, @@ -3763,11 +3707,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice Item", - "fetch_from": "custom_packaging_unit.code", + "dt": "Sales Invoice Item", + "fetch_from": "item_code.custom_item_classification", "fetch_if_empty": 0, - "fieldname": "custom_packaging_unit_code", - "fieldtype": "Data", + "fieldname": "custom_item_classification", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3778,19 +3722,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_fzpx5", + "insert_after": "custom_taxation_type", "is_system_generated": 0, "is_virtual": 0, - "label": "Packaging Unit Code", + "label": "Item Classification Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:32:20.310818", + "modified": "2024-03-08 14:29:53.610739", "module": null, - "name": "POS Invoice Item-custom_packaging_unit_code", + "name": "Sales Invoice Item-custom_item_classification", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari KRA eTims Item Classification", "permlevel": 0, "precision": "", "print_hide": 0, @@ -3803,7 +3747,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -3819,11 +3763,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Item", - "fetch_from": null, + "dt": "POS Invoice Item", + "fetch_from": "custom_packaging_unit.code", "fetch_if_empty": 0, - "fieldname": "custom_item_details", - "fieldtype": "Section Break", + "fieldname": "custom_packaging_unit_code", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3834,16 +3778,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_unit_of_quantity_code", + "insert_after": "custom_column_break_fzpx5", "is_system_generated": 0, "is_virtual": 0, - "label": "Product Type Details", + "label": "Packaging Unit Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-28 11:48:02.195043", + "modified": "2024-03-18 15:32:20.310818", "module": null, - "name": "Item-custom_item_details", + "name": "POS Invoice Item-custom_packaging_unit_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -3855,11 +3799,11 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 0, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -3875,11 +3819,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice Item", - "fetch_from": "custom_unit_of_quantity.code", + "dt": "Item", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_unit_of_quantity_code", - "fieldtype": "Data", + "fieldname": "custom_item_details", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3890,16 +3834,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_packaging_unit_code", + "insert_after": "custom_unit_of_quantity_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Unit of Quantity Code", + "label": "Product Type Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:32:20.425660", + "modified": "2024-03-28 11:48:02.195043", "module": null, - "name": "POS Invoice Item-custom_unit_of_quantity_code", + "name": "Item-custom_item_details", "no_copy": 0, "non_negative": 0, "options": null, @@ -3911,11 +3855,11 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -3931,11 +3875,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Item", + "dt": "Sales Invoice Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_product_type", - "fieldtype": "Link", + "fieldname": "custom_column_break_xv1zb", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -3946,19 +3890,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_item_details", + "insert_after": "custom_item_classification", "is_system_generated": 0, "is_virtual": 0, - "label": "Product Type Code", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-28 11:48:02.362167", + "modified": "2024-03-08 14:31:06.861472", "module": null, - "name": "Item-custom_product_type", + "name": "Sales Invoice Item-custom_column_break_xv1zb", "no_copy": 0, "non_negative": 0, - "options": "Navari eTims Product Type", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -3967,7 +3911,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -3988,9 +3932,9 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "POS Invoice Item", - "fetch_from": "custom_taxation_type.cd", + "fetch_from": "custom_unit_of_quantity.code", "fetch_if_empty": 0, - "fieldname": "custom_taxation_type_code", + "fieldname": "custom_unit_of_quantity_code", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -4002,16 +3946,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_unit_of_quantity_code", + "insert_after": "custom_packaging_unit_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Taxation Type Code", + "label": "Unit of Quantity Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:32:20.540412", + "modified": "2024-03-18 15:32:20.425660", "module": null, - "name": "POS Invoice Item-custom_taxation_type_code", + "name": "POS Invoice Item-custom_unit_of_quantity_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -4046,8 +3990,8 @@ "dt": "Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_5wrxn", - "fieldtype": "Column Break", + "fieldname": "custom_product_type", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4058,19 +4002,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_product_type", + "insert_after": "custom_item_details", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Product Type Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-02 09:56:43.267196", + "modified": "2024-03-28 11:48:02.362167", "module": null, - "name": "Item-custom_column_break_5wrxn", + "name": "Item-custom_product_type", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari eTims Product Type", "permlevel": 0, "precision": "", "print_hide": 0, @@ -4079,7 +4023,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 0, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -4100,10 +4044,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "Sales Invoice Item", - "fetch_from": null, + "fetch_from": "custom_packaging_unit.code", "fetch_if_empty": 0, - "fieldname": "custom_kra_etims_taxation_details", - "fieldtype": "Section Break", + "fieldname": "custom_packaging_unit_code", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4114,16 +4058,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "grant_commission", + "insert_after": "custom_column_break_xv1zb", "is_system_generated": 0, "is_virtual": 0, - "label": "KRA eTims Taxation Details", + "label": "Packaging Unit Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:29:53.452154", + "modified": "2024-03-12 12:40:12.828149", "module": null, - "name": "Sales Invoice Item-custom_kra_etims_taxation_details", + "name": "Sales Invoice Item-custom_packaging_unit_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -4135,7 +4079,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 0, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -4155,10 +4099,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Item", - "fetch_from": "custom_product_type.code_name", + "dt": "POS Invoice Item", + "fetch_from": "custom_taxation_type.cd", "fetch_if_empty": 0, - "fieldname": "custom_product_type_name", + "fieldname": "custom_taxation_type_code", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -4170,16 +4114,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_5wrxn", + "insert_after": "custom_unit_of_quantity_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Product Type Name", + "label": "Taxation Type Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-02 09:56:43.442269", + "modified": "2024-03-18 15:32:20.540412", "module": null, - "name": "Item-custom_product_type_name", + "name": "POS Invoice Item-custom_taxation_type_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -4188,10 +4132,10 @@ "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, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -4211,11 +4155,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", - "fetch_from": "item_code.custom_packaging_unit", + "dt": "Item", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_packaging_unit", - "fieldtype": "Link", + "fieldname": "custom_column_break_5wrxn", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4226,19 +4170,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_kra_etims_taxation_details", + "insert_after": "custom_product_type", "is_system_generated": 0, "is_virtual": 0, - "label": "Packaging Unit", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-12 12:37:41.322070", + "modified": "2024-04-02 09:56:43.267196", "module": null, - "name": "Sales Invoice Item-custom_packaging_unit", + "name": "Item-custom_column_break_5wrxn", "no_copy": 0, "non_negative": 0, - "options": "Navari eTims Packaging Unit", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -4247,7 +4191,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -4268,10 +4212,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "Sales Invoice Item", - "fetch_from": "item_code.custom_unit_of_quantity", + "fetch_from": "custom_unit_of_quantity.code", "fetch_if_empty": 0, - "fieldname": "custom_unit_of_quantity", - "fieldtype": "Link", + "fieldname": "custom_unit_of_quantity_code", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4282,19 +4226,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_packaging_unit", + "insert_after": "custom_packaging_unit_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Unit of Quantity", + "label": "Unit of Quantity Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-12 14:17:30.865391", + "modified": "2024-03-12 14:17:31.184451", "module": null, - "name": "Sales Invoice Item-custom_unit_of_quantity", + "name": "Sales Invoice Item-custom_unit_of_quantity_code", "no_copy": 0, "non_negative": 0, - "options": "Navari eTims Unit of Quantity", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -4323,11 +4267,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", - "fetch_from": "custom_item_classification.taxtycd", + "dt": "Item", + "fetch_from": "custom_product_type.code_name", "fetch_if_empty": 0, - "fieldname": "custom_taxation_type", - "fieldtype": "Link", + "fieldname": "custom_product_type_name", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4338,32 +4282,32 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_unit_of_quantity", + "insert_after": "custom_column_break_5wrxn", "is_system_generated": 0, "is_virtual": 0, - "label": "Taxation Type", + "label": "Product Type Name", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:37:31.305109", + "modified": "2024-04-02 09:56:43.442269", "module": null, - "name": "Sales Invoice Item-custom_taxation_type", + "name": "Item-custom_product_type_name", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Taxation Type", + "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, "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -4380,10 +4324,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "Sales Invoice Item", - "fetch_from": "item_code.custom_item_classification", + "fetch_from": "custom_taxation_type.cd", "fetch_if_empty": 0, - "fieldname": "custom_item_classification", - "fieldtype": "Link", + "fieldname": "custom_taxation_type_code", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4394,19 +4338,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_taxation_type", + "insert_after": "custom_unit_of_quantity_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Item Classification Code", + "label": "Taxation Type Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:29:53.610739", + "modified": "2024-03-12 14:29:03.197598", "module": null, - "name": "Sales Invoice Item-custom_item_classification", + "name": "Sales Invoice Item-custom_taxation_type_code", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Item Classification", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -4436,10 +4380,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "Sales Invoice Item", - "fetch_from": null, + "fetch_from": "item_code.custom_item_code_etims", "fetch_if_empty": 0, - "fieldname": "custom_column_break_xv1zb", - "fieldtype": "Column Break", + "fieldname": "custom_item_code_etims", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4450,16 +4394,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_item_classification", + "insert_after": "custom_taxation_type_code", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Item Code (eTims)", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:31:06.861472", + "modified": "2024-06-03 11:44:18.345787", "module": null, - "name": "Sales Invoice Item-custom_column_break_xv1zb", + "name": "Sales Invoice Item-custom_item_code_etims", "no_copy": 0, "non_negative": 0, "options": null, @@ -4471,11 +4415,11 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 0, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -4491,11 +4435,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice", + "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_etims_details", - "fieldtype": "Section Break", + "fieldname": "exempt_from_sales_tax", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4506,16 +4450,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "items", - "is_system_generated": 0, + "insert_after": "taxes_section", + "is_system_generated": 1, "is_virtual": 0, - "label": "eTims Details", + "label": "Is customer exempted from sales tax?", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:56:24.718043", + "modified": "2024-03-07 15:48:57.324863", "module": null, - "name": "POS Invoice-custom_etims_details", + "name": "Sales Invoice-exempt_from_sales_tax", "no_copy": 0, "non_negative": 0, "options": null, @@ -4547,11 +4491,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", - "fetch_from": "custom_packaging_unit.code", + "dt": "POS Invoice", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_packaging_unit_code", - "fieldtype": "Data", + "fieldname": "custom_etims_details", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4562,16 +4506,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_xv1zb", + "insert_after": "items", "is_system_generated": 0, "is_virtual": 0, - "label": "Packaging Unit Code", + "label": "eTims Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-12 12:40:12.828149", + "modified": "2024-03-18 15:56:24.718043", "module": null, - "name": "Sales Invoice Item-custom_packaging_unit_code", + "name": "POS Invoice-custom_etims_details", "no_copy": 0, "non_negative": 0, "options": null, @@ -4583,7 +4527,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -4771,10 +4715,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", - "fetch_from": "custom_unit_of_quantity.code", + "dt": "Customer", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_unit_of_quantity_code", + "fieldname": "custom_insurance_code", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -4786,16 +4730,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_packaging_unit_code", + "insert_after": "custom_insurance_details", "is_system_generated": 0, "is_virtual": 0, - "label": "Unit of Quantity Code", + "label": "Insurance Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-12 14:17:31.184451", + "modified": "2024-04-08 09:57:48.716201", "module": null, - "name": "Sales Invoice Item-custom_unit_of_quantity_code", + "name": "Customer-custom_insurance_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -4807,7 +4751,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -4827,11 +4771,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice", + "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "exempt_from_sales_tax", - "fieldtype": "Check", + "fieldname": "custom_transaction_progres", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4842,19 +4786,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "taxes_section", - "is_system_generated": 1, + "insert_after": "custom_payment_type", + "is_system_generated": 0, "is_virtual": 0, - "label": "Is customer exempted from sales tax?", + "label": "Transaction Progress", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-07 15:48:57.324863", + "modified": "2024-03-19 15:52:19.794271", "module": null, - "name": "Sales Invoice-exempt_from_sales_tax", + "name": "POS Invoice-custom_transaction_progres", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari KRA eTims Transaction Progress", "permlevel": 0, "precision": "", "print_hide": 0, @@ -4863,7 +4807,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 0, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -4878,7 +4822,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, @@ -4886,8 +4830,8 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_insurance_code", - "fieldtype": "Data", + "fieldname": "custom_insurance_applicable", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4898,16 +4842,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_insurance_details", + "insert_after": "custom_insurance_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Insurance Code", + "label": "Insurance Applicable?", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-08 09:57:48.716201", + "modified": "2024-04-08 10:36:09.548704", "module": null, - "name": "Customer-custom_insurance_code", + "name": "Customer-custom_insurance_applicable", "no_copy": 0, "non_negative": 0, "options": null, @@ -4916,7 +4860,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, @@ -4942,7 +4886,7 @@ "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_transaction_progres", + "fieldname": "custom_etims_branch", "fieldtype": "Link", "hidden": 0, "hide_border": 0, @@ -4954,19 +4898,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_payment_type", + "insert_after": "custom_transaction_progres", "is_system_generated": 0, "is_virtual": 0, - "label": "Transaction Progress", + "label": "eTims Branch", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-19 15:52:19.794271", + "modified": "2024-05-30 16:35:19.498247", "module": null, - "name": "POS Invoice-custom_transaction_progres", + "name": "POS Invoice-custom_etims_branch", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Transaction Progress", + "options": "Branch", "permlevel": 0, "precision": "", "print_hide": 0, @@ -4995,11 +4939,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", - "fetch_from": "custom_taxation_type.cd", + "dt": "Customer", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_taxation_type_code", - "fieldtype": "Data", + "fieldname": "custom_column_break_wohtb", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5010,16 +4954,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_unit_of_quantity_code", + "insert_after": "custom_insurance_applicable", "is_system_generated": 0, "is_virtual": 0, - "label": "Taxation Type Code", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-12 14:29:03.197598", + "modified": "2024-04-08 09:57:48.840141", "module": null, - "name": "Sales Invoice Item-custom_taxation_type_code", + "name": "Customer-custom_column_break_wohtb", "no_copy": 0, "non_negative": 0, "options": null, @@ -5031,7 +4975,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -5046,16 +4990,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_insurance_applicable", - "fieldtype": "Check", + "fieldname": "custom_column_break_c2zrv", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5066,16 +5010,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_insurance_code", + "insert_after": "custom_etims_branch", "is_system_generated": 0, "is_virtual": 0, - "label": "Insurance Applicable?", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-08 10:36:09.548704", + "modified": "2024-03-18 15:59:12.497045", "module": null, - "name": "Customer-custom_insurance_applicable", + "name": "POS Invoice-custom_column_break_c2zrv", "no_copy": 0, "non_negative": 0, "options": null, @@ -5084,7 +5028,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, @@ -5107,11 +5051,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice", + "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_etims_branch", - "fieldtype": "Link", + "fieldname": "custom_insurance_name", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5122,19 +5066,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_transaction_progres", + "insert_after": "custom_column_break_wohtb", "is_system_generated": 0, "is_virtual": 0, - "label": "eTims Branch", + "label": "Insurance Name", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-05-30 16:35:19.498247", + "modified": "2024-04-08 09:57:48.961856", "module": null, - "name": "POS Invoice-custom_etims_branch", + "name": "Customer-custom_insurance_name", "no_copy": 0, "non_negative": 0, - "options": "Branch", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -5143,7 +5087,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -5164,10 +5108,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "POS Invoice", - "fetch_from": null, + "fetch_from": "custom_payment_type.code", "fetch_if_empty": 0, - "fieldname": "custom_column_break_c2zrv", - "fieldtype": "Column Break", + "fieldname": "custom_payment_type_code", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5178,16 +5122,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_etims_branch", + "insert_after": "custom_column_break_c2zrv", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Payment Type Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:59:12.497045", + "modified": "2024-03-18 15:56:25.572733", "module": null, - "name": "POS Invoice-custom_column_break_c2zrv", + "name": "POS Invoice-custom_payment_type_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -5196,14 +5140,14 @@ "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, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -5222,8 +5166,8 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_wohtb", - "fieldtype": "Column Break", + "fieldname": "custom_premium_rate", + "fieldtype": "Float", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5234,18 +5178,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_insurance_applicable", + "insert_after": "custom_insurance_name", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Premium Rate", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-08 09:57:48.840141", + "modified": "2024-04-08 09:57:49.092230", "module": null, - "name": "Customer-custom_column_break_wohtb", + "name": "Customer-custom_premium_rate", "no_copy": 0, - "non_negative": 0, + "non_negative": 1, "options": null, "permlevel": 0, "precision": "", @@ -5275,11 +5219,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", - "fetch_from": "item_code.custom_item_code_etims", + "dt": "Stock Entry", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_item_code_etims", - "fieldtype": "Data", + "fieldname": "custom_column_break_apy88", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5290,16 +5234,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_taxation_type_code", + "insert_after": "project", "is_system_generated": 0, "is_virtual": 0, - "label": "Item Code (eTims)", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-06-03 11:44:18.345787", + "modified": "2024-05-30 12:20:07.974789", "module": null, - "name": "Sales Invoice Item-custom_item_code_etims", + "name": "Stock Entry-custom_column_break_apy88", "no_copy": 0, "non_negative": 0, "options": null, @@ -5311,11 +5255,11 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -5331,10 +5275,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", - "fetch_from": null, + "dt": "POS Invoice", + "fetch_from": "custom_transaction_progres.code", "fetch_if_empty": 0, - "fieldname": "custom_insurance_name", + "fieldname": "custom_transaction_progress_code", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -5346,16 +5290,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_wohtb", + "insert_after": "custom_payment_type_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Insurance Name", + "label": "Transaction Progress Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-08 09:57:48.961856", + "modified": "2024-03-19 15:53:02.290794", "module": null, - "name": "Customer-custom_insurance_name", + "name": "POS Invoice-custom_transaction_progress_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -5371,7 +5315,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -5387,11 +5331,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice", - "fetch_from": "custom_payment_type.code", + "dt": "Stock Entry", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_payment_type_code", - "fieldtype": "Data", + "fieldname": "custom_etims_branch", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5402,32 +5346,32 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_c2zrv", + "insert_after": "custom_column_break_apy88", "is_system_generated": 0, "is_virtual": 0, - "label": "Payment Type Code", + "label": "eTims Branch", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:56:25.572733", + "modified": "2024-05-30 12:20:08.217610", "module": null, - "name": "POS Invoice-custom_payment_type_code", + "name": "Stock Entry-custom_etims_branch", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Branch", "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, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -5443,11 +5387,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_premium_rate", - "fieldtype": "Float", + "fieldname": "custom_etims_responses", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5458,18 +5402,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_insurance_name", + "insert_after": "custom_transaction_progress_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Premium Rate", + "label": "eTims Responses", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-08 09:57:49.092230", + "modified": "2024-04-03 14:59:20.523024", "module": null, - "name": "Customer-custom_premium_rate", + "name": "POS Invoice-custom_etims_responses", "no_copy": 0, - "non_negative": 1, + "non_negative": 0, "options": null, "permlevel": 0, "precision": "", @@ -5499,11 +5443,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Stock Entry", + "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_apy88", - "fieldtype": "Column Break", + "fieldname": "custom_tax_payers_name", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5514,16 +5458,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "project", + "insert_after": "custom_kra_registered_tax_payer_details", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Tax Payer's Name", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-05-30 12:20:07.974789", + "modified": "2024-03-08 14:53:38.854278", "module": null, - "name": "Stock Entry-custom_column_break_apy88", + "name": "Customer-custom_tax_payers_name", "no_copy": 0, "non_negative": 0, "options": null, @@ -5532,14 +5476,14 @@ "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, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -5555,10 +5499,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice", - "fetch_from": "custom_transaction_progres.code", + "dt": "Customer", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_transaction_progress_code", + "fieldname": "custom_tax_payers_status", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -5570,16 +5514,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_payment_type_code", + "insert_after": "custom_tax_payers_name", "is_system_generated": 0, "is_virtual": 0, - "label": "Transaction Progress Code", + "label": "Tax Payer's Status", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-19 15:53:02.290794", + "modified": "2024-03-08 14:53:38.976429", "module": null, - "name": "POS Invoice-custom_transaction_progress_code", + "name": "Customer-custom_tax_payers_status", "no_copy": 0, "non_negative": 0, "options": null, @@ -5588,7 +5532,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, @@ -5606,16 +5550,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Stock Entry", + "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_etims_branch", - "fieldtype": "Link", + "fieldname": "custom_successfully_submitted", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5626,28 +5570,28 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_apy88", + "insert_after": "custom_etims_responses", "is_system_generated": 0, "is_virtual": 0, - "label": "eTims Branch", + "label": "Successfully Submitted", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-05-30 12:20:08.217610", + "modified": "2024-04-03 14:59:22.657225", "module": null, - "name": "Stock Entry-custom_etims_branch", - "no_copy": 0, + "name": "POS Invoice-custom_successfully_submitted", + "no_copy": 1, "non_negative": 0, - "options": "Branch", + "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": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -5670,8 +5614,8 @@ "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_etims_responses", - "fieldtype": "Section Break", + "fieldname": "custom_current_receipt_number", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5682,17 +5626,17 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_transaction_progress_code", + "insert_after": "custom_successfully_submitted", "is_system_generated": 0, "is_virtual": 0, - "label": "eTims Responses", + "label": "Current Receipt Number", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-03 14:59:20.523024", + "modified": "2024-04-03 14:59:20.841528", "module": null, - "name": "POS Invoice-custom_etims_responses", - "no_copy": 0, + "name": "POS Invoice-custom_current_receipt_number", + "no_copy": 1, "non_negative": 0, "options": null, "permlevel": 0, @@ -5700,14 +5644,14 @@ "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, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -5726,7 +5670,7 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_tax_payers_name", + "fieldname": "custom_county_name", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -5738,16 +5682,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_kra_registered_tax_payer_details", + "insert_after": "custom_tax_payers_status", "is_system_generated": 0, "is_virtual": 0, - "label": "Tax Payer's Name", + "label": "County Name", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:53:38.854278", + "modified": "2024-03-08 14:53:39.098664", "module": null, - "name": "Customer-custom_tax_payers_name", + "name": "Customer-custom_county_name", "no_copy": 0, "non_negative": 0, "options": null, @@ -5782,7 +5726,7 @@ "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_current_receipt_number", + "fieldname": "custom_total_receipt_number", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -5794,17 +5738,17 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_etims_responses", + "insert_after": "custom_current_receipt_number", "is_system_generated": 0, "is_virtual": 0, - "label": "Current Receipt Number", + "label": "Total Receipt Number", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-03 14:59:20.841528", + "modified": "2024-04-03 14:59:21.158148", "module": null, - "name": "POS Invoice-custom_current_receipt_number", - "no_copy": 0, + "name": "POS Invoice-custom_total_receipt_number", + "no_copy": 1, "non_negative": 0, "options": null, "permlevel": 0, @@ -5830,7 +5774,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, @@ -5838,8 +5782,8 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_tax_payers_status", - "fieldtype": "Data", + "fieldname": "custom_is_validated", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5850,16 +5794,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_tax_payers_name", + "insert_after": "custom_county_name", "is_system_generated": 0, "is_virtual": 0, - "label": "Tax Payer's Status", + "label": "Is Validated", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:53:38.976429", + "modified": "2024-03-08 14:53:39.219293", "module": null, - "name": "Customer-custom_tax_payers_status", + "name": "Customer-custom_is_validated", "no_copy": 0, "non_negative": 0, "options": null, @@ -5875,7 +5819,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -5894,7 +5838,7 @@ "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_total_receipt_number", + "fieldname": "custom_internal_data", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -5906,17 +5850,17 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_current_receipt_number", + "insert_after": "custom_total_receipt_number", "is_system_generated": 0, "is_virtual": 0, - "label": "Total Receipt Number", + "label": "Internal Data", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-03 14:59:21.158148", + "modified": "2024-04-03 14:59:21.457070", "module": null, - "name": "POS Invoice-custom_total_receipt_number", - "no_copy": 0, + "name": "POS Invoice-custom_internal_data", + "no_copy": 1, "non_negative": 0, "options": null, "permlevel": 0, @@ -5950,8 +5894,8 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_county_name", - "fieldtype": "Data", + "fieldname": "custom_column_break_62fii", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5962,16 +5906,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_tax_payers_status", + "insert_after": "custom_is_validated", "is_system_generated": 0, "is_virtual": 0, - "label": "County Name", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:53:39.098664", + "modified": "2024-03-08 14:53:39.344020", "module": null, - "name": "Customer-custom_county_name", + "name": "Customer-custom_column_break_62fii", "no_copy": 0, "non_negative": 0, "options": null, @@ -5980,14 +5924,14 @@ "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, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -6003,11 +5947,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice", + "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_internal_data", - "fieldtype": "Data", + "fieldname": "custom_column_break_mhktd", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6018,16 +5962,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_total_receipt_number", + "insert_after": "custom_is_validated", "is_system_generated": 0, "is_virtual": 0, - "label": "Internal Data", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-03 14:59:21.457070", + "modified": "2024-04-09 14:45:20.115838", "module": null, - "name": "POS Invoice-custom_internal_data", + "name": "Customer-custom_column_break_mhktd", "no_copy": 0, "non_negative": 0, "options": null, @@ -6036,14 +5980,14 @@ "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, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -6054,7 +5998,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, @@ -6062,8 +6006,8 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_is_validated", - "fieldtype": "Check", + "fieldname": "custom_subcounty_name", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6074,16 +6018,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_county_name", + "insert_after": "custom_column_break_62fii", "is_system_generated": 0, "is_virtual": 0, - "label": "Is Validated", + "label": "Sub-County Name", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:53:39.219293", + "modified": "2024-03-08 14:53:39.474333", "module": null, - "name": "Customer-custom_is_validated", + "name": "Customer-custom_subcounty_name", "no_copy": 0, "non_negative": 0, "options": null, @@ -6099,7 +6043,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -6118,9 +6062,9 @@ "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_yzdxf", - "fieldtype": "Column Break", - "hidden": 0, + "fieldname": "custom_qr_code", + "fieldtype": "Small Text", + "hidden": 1, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, @@ -6133,14 +6077,14 @@ "insert_after": "custom_internal_data", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "QR Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-03 14:59:21.765030", + "modified": "2024-06-04 12:09:55.333454", "module": null, - "name": "POS Invoice-custom_column_break_yzdxf", - "no_copy": 0, + "name": "POS Invoice-custom_qr_code", + "no_copy": 1, "non_negative": 0, "options": null, "permlevel": 0, @@ -6148,7 +6092,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, @@ -6171,10 +6115,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_62fii", + "fieldname": "custom_column_break_yzdxf", "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, @@ -6186,16 +6130,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_is_validated", + "insert_after": "custom_qr_code", "is_system_generated": 0, "is_virtual": 0, "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:53:39.344020", + "modified": "2024-04-03 14:59:21.765030", "module": null, - "name": "Customer-custom_column_break_62fii", + "name": "POS Invoice-custom_column_break_yzdxf", "no_copy": 0, "non_negative": 0, "options": null, @@ -6230,8 +6174,8 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_mhktd", - "fieldtype": "Column Break", + "fieldname": "custom_tax_locality_name", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6242,16 +6186,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_is_validated", + "insert_after": "custom_subcounty_name", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Tax Locality Name", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-09 14:45:20.115838", + "modified": "2024-03-08 14:53:39.592835", "module": null, - "name": "Customer-custom_column_break_mhktd", + "name": "Customer-custom_tax_locality_name", "no_copy": 0, "non_negative": 0, "options": null, @@ -6260,14 +6204,14 @@ "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, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -6308,7 +6252,7 @@ "modified": "2024-04-03 14:59:22.004776", "module": null, "name": "POS Invoice-custom_receipt_signature", - "no_copy": 0, + "no_copy": 1, "non_negative": 0, "options": null, "permlevel": 0, @@ -6342,7 +6286,7 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_subcounty_name", + "fieldname": "custom_location_name", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -6354,16 +6298,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_62fii", + "insert_after": "custom_tax_locality_name", "is_system_generated": 0, "is_virtual": 0, - "label": "Sub-County Name", + "label": "Location Name", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:53:39.474333", + "modified": "2024-03-08 14:53:39.707263", "module": null, - "name": "Customer-custom_subcounty_name", + "name": "Customer-custom_location_name", "no_copy": 0, "non_negative": 0, "options": null, @@ -6446,7 +6390,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, @@ -6454,8 +6398,8 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_tax_locality_name", - "fieldtype": "Data", + "fieldname": "custom_details_submitted_successfully", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6466,16 +6410,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_subcounty_name", + "insert_after": "custom_location_name", "is_system_generated": 0, "is_virtual": 0, - "label": "Tax Locality Name", + "label": "Details Submitted Successfully?", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:53:39.592835", + "modified": "2024-04-08 11:04:18.370567", "module": null, - "name": "Customer-custom_tax_locality_name", + "name": "Customer-custom_details_submitted_successfully", "no_copy": 0, "non_negative": 0, "options": null, @@ -6491,62 +6435,6 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, - "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 Invoice", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_submission_sequence_number", - "fieldtype": "Int", - "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": "custom_control_unit_date_time", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Submission Sequence Number", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-05-30 15:55:19.409760", - "module": null, - "name": "POS Invoice-custom_submission_sequence_number", - "no_copy": 1, - "non_negative": 1, - "options": null, - "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, - "show_dashboard": 0, - "sort_options": 0, "translatable": 0, "unique": 0, "width": null @@ -6566,8 +6454,8 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_location_name", - "fieldtype": "Data", + "fieldname": "custom_section_break_lsyni", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6578,16 +6466,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_tax_locality_name", + "insert_after": "custom_location_name", "is_system_generated": 0, "is_virtual": 0, - "label": "Location Name", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:53:39.707263", + "modified": "2024-04-09 14:42:18.580320", "module": null, - "name": "Customer-custom_location_name", + "name": "Customer-custom_section_break_lsyni", "no_copy": 0, "non_negative": 0, "options": null, @@ -6596,14 +6484,14 @@ "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, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -6614,7 +6502,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, @@ -6622,8 +6510,8 @@ "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_successfully_submitted", - "fieldtype": "Check", + "fieldname": "custom_submission_sequence_number", + "fieldtype": "Int", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6634,18 +6522,18 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_submission_sequence_number", + "insert_after": "custom_control_unit_date_time", "is_system_generated": 0, "is_virtual": 0, - "label": "Successfully Submitted", + "label": "Submission Sequence Number", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-03 14:59:22.657225", + "modified": "2024-05-30 15:55:19.409760", "module": null, - "name": "POS Invoice-custom_successfully_submitted", - "no_copy": 0, - "non_negative": 0, + "name": "POS Invoice-custom_submission_sequence_number", + "no_copy": 1, + "non_negative": 1, "options": null, "permlevel": 0, "precision": "", @@ -6670,7 +6558,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, @@ -6678,8 +6566,8 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_details_submitted_successfully", - "fieldtype": "Check", + "fieldname": "custom_column_break_oms4m", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6690,16 +6578,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_location_name", + "insert_after": "custom_details_submitted_successfully", "is_system_generated": 0, "is_virtual": 0, - "label": "Details Submitted Successfully?", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-08 11:04:18.370567", + "modified": "2024-04-09 14:45:20.297136", "module": null, - "name": "Customer-custom_details_submitted_successfully", + "name": "Customer-custom_column_break_oms4m", "no_copy": 0, "non_negative": 0, "options": null, @@ -6708,7 +6596,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, @@ -6731,11 +6619,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_section_break_lsyni", - "fieldtype": "Section Break", + "fieldname": "custom_qr_image", + "fieldtype": "Image", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6746,19 +6634,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_location_name", + "insert_after": "custom_submission_sequence_number", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "QR Image", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-09 14:42:18.580320", + "modified": "2024-06-04 12:09:55.771603", "module": null, - "name": "Customer-custom_section_break_lsyni", - "no_copy": 0, + "name": "POS Invoice-custom_qr_image", + "no_copy": 1, "non_negative": 0, - "options": null, + "options": "custom_qr_code", "permlevel": 0, "precision": "", "print_hide": 0, @@ -6782,7 +6670,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": null, + "default": "0", "depends_on": null, "description": null, "docstatus": 0, @@ -6790,8 +6678,8 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_oms4m", - "fieldtype": "Column Break", + "fieldname": "custom_insurance_details_submitted_successfully", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6802,16 +6690,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_details_submitted_successfully", + "insert_after": "custom_column_break_oms4m", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Insurance Details Submitted Successfully?", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-09 14:45:20.297136", + "modified": "2024-04-09 14:42:18.817054", "module": null, - "name": "Customer-custom_column_break_oms4m", + "name": "Customer-custom_insurance_details_submitted_successfully", "no_copy": 0, "non_negative": 0, "options": null, @@ -6820,7 +6708,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, @@ -6838,7 +6726,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, @@ -6846,7 +6734,7 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_insurance_details_submitted_successfully", + "fieldname": "exempt_from_sales_tax", "fieldtype": "Check", "hidden": 0, "hide_border": 0, @@ -6858,16 +6746,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_oms4m", - "is_system_generated": 0, + "insert_after": "dn_required", + "is_system_generated": 1, "is_virtual": 0, - "label": "Insurance Details Submitted Successfully?", + "label": "Is customer exempted from sales tax?", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-09 14:42:18.817054", + "modified": "2024-03-07 15:48:57.570964", "module": null, - "name": "Customer-custom_insurance_details_submitted_successfully", + "name": "Customer-exempt_from_sales_tax", "no_copy": 0, "non_negative": 0, "options": null, @@ -6876,7 +6764,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, @@ -6899,11 +6787,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "exempt_from_sales_tax", - "fieldtype": "Check", + "fieldname": "custom_etims_details", + "fieldtype": "Tab Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6914,16 +6802,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "dn_required", - "is_system_generated": 1, + "insert_after": "total_billing_amount", + "is_system_generated": 0, "is_virtual": 0, - "label": "Is customer exempted from sales tax?", + "label": "eTims Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-07 15:48:57.570964", + "modified": "2024-03-13 09:26:22.445016", "module": null, - "name": "Customer-exempt_from_sales_tax", + "name": "Sales Invoice-custom_etims_details", "no_copy": 0, "non_negative": 0, "options": null, @@ -6958,8 +6846,8 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_etims_details", - "fieldtype": "Tab Break", + "fieldname": "custom_payment_and_transaction_details", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6970,16 +6858,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "total_billing_amount", + "insert_after": "custom_etims_details", "is_system_generated": 0, "is_virtual": 0, - "label": "eTims Details", + "label": "Payment and Transaction Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 09:26:22.445016", + "modified": "2024-03-13 10:23:30.141742", "module": null, - "name": "Sales Invoice-custom_etims_details", + "name": "Sales Invoice-custom_payment_and_transaction_details", "no_copy": 0, "non_negative": 0, "options": null, @@ -7070,8 +6958,8 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_payment_and_transaction_details", - "fieldtype": "Section Break", + "fieldname": "custom_payment_type", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -7082,19 +6970,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_etims_details", + "insert_after": "custom_payment_and_transaction_details", "is_system_generated": 0, "is_virtual": 0, - "label": "Payment and Transaction Details", + "label": "Payment Type", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 10:23:30.141742", + "modified": "2024-03-11 14:17:45.667132", "module": null, - "name": "Sales Invoice-custom_payment_and_transaction_details", + "name": "Sales Invoice-custom_payment_type", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari KRA eTims Payment Type", "permlevel": 0, "precision": "", "print_hide": 0, @@ -7103,7 +6991,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 0, + "reqd": 1, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -7182,7 +7070,7 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_payment_type", + "fieldname": "custom_transaction_progres", "fieldtype": "Link", "hidden": 0, "hide_border": 0, @@ -7194,19 +7082,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_payment_and_transaction_details", + "insert_after": "custom_payment_type", "is_system_generated": 0, "is_virtual": 0, - "label": "Payment Type", + "label": "Transaction Progress", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-11 14:17:45.667132", + "modified": "2024-03-11 15:30:50.165883", "module": null, - "name": "Sales Invoice-custom_payment_type", + "name": "Sales Invoice-custom_transaction_progres", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Payment Type", + "options": "Navari KRA eTims Transaction Progress", "permlevel": 0, "precision": "", "print_hide": 0, @@ -7294,8 +7182,8 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_transaction_progres", - "fieldtype": "Link", + "fieldname": "custom_column_break_arjmp", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -7306,19 +7194,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_payment_type", + "insert_after": "custom_transaction_progres", "is_system_generated": 0, "is_virtual": 0, - "label": "Transaction Progress", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-11 15:30:50.165883", + "modified": "2024-03-13 10:23:30.515451", "module": null, - "name": "Sales Invoice-custom_transaction_progres", + "name": "Sales Invoice-custom_column_break_arjmp", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Transaction Progress", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -7327,7 +7215,7 @@ "read_only": 0, "read_only_depends_on": null, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "show_dashboard": 0, "sort_options": 0, @@ -7460,10 +7348,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "Sales Invoice", - "fetch_from": null, + "fetch_from": "custom_payment_type.code", "fetch_if_empty": 0, - "fieldname": "custom_column_break_arjmp", - "fieldtype": "Column Break", + "fieldname": "custom_payment_type_code", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -7474,16 +7362,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_transaction_progres", + "insert_after": "custom_column_break_arjmp", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Payment Type Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 10:23:30.515451", + "modified": "2024-03-13 10:18:33.836130", "module": null, - "name": "Sales Invoice-custom_column_break_arjmp", + "name": "Sales Invoice-custom_payment_type_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -7492,7 +7380,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, @@ -7628,9 +7516,9 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "Sales Invoice", - "fetch_from": "custom_payment_type.code", + "fetch_from": "custom_transaction_progres.code", "fetch_if_empty": 0, - "fieldname": "custom_payment_type_code", + "fieldname": "custom_transaction_progress_code", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -7642,16 +7530,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_arjmp", + "insert_after": "custom_payment_type_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Payment Type Code", + "label": "Transaction Progress Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 10:18:33.836130", + "modified": "2024-03-13 10:18:34.119872", "module": null, - "name": "Sales Invoice-custom_payment_type_code", + "name": "Sales Invoice-custom_transaction_progress_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -7796,10 +7684,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "Sales Invoice", - "fetch_from": "custom_transaction_progres.code", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_transaction_progress_code", - "fieldtype": "Data", + "fieldname": "custom_etims_response_details", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -7810,16 +7698,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_payment_type_code", + "insert_after": "custom_transaction_progress_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Transaction Progress Code", + "label": "eTims Response Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 10:18:34.119872", + "modified": "2024-03-13 15:31:17.266817", "module": null, - "name": "Sales Invoice-custom_transaction_progress_code", + "name": "Sales Invoice-custom_etims_response_details", "no_copy": 0, "non_negative": 0, "options": null, @@ -7828,7 +7716,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, @@ -7966,8 +7854,8 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_etims_response_details", - "fieldtype": "Section Break", + "fieldname": "custom_current_receipt_number", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -7978,17 +7866,17 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_transaction_progress_code", + "insert_after": "custom_etims_response_details", "is_system_generated": 0, "is_virtual": 0, - "label": "eTims Response Details", + "label": "Current Receipt Number", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 15:31:17.266817", + "modified": "2024-03-13 15:31:17.558464", "module": null, - "name": "Sales Invoice-custom_etims_response_details", - "no_copy": 0, + "name": "Sales Invoice-custom_current_receipt_number", + "no_copy": 1, "non_negative": 0, "options": null, "permlevel": 0, @@ -7996,7 +7884,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, @@ -8134,7 +8022,7 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_current_receipt_number", + "fieldname": "custom_total_receipt_number", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -8146,16 +8034,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_etims_response_details", + "insert_after": "custom_current_receipt_number", "is_system_generated": 0, "is_virtual": 0, - "label": "Current Receipt Number", + "label": "Total Receipt Number", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 15:31:17.558464", + "modified": "2024-03-13 15:31:17.797756", "module": null, - "name": "Sales Invoice-custom_current_receipt_number", + "name": "Sales Invoice-custom_total_receipt_number", "no_copy": 1, "non_negative": 0, "options": null, @@ -8302,8 +8190,8 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_total_receipt_number", - "fieldtype": "Data", + "fieldname": "custom_control_unit_date_time", + "fieldtype": "Datetime", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -8314,16 +8202,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_current_receipt_number", + "insert_after": "custom_total_receipt_number", "is_system_generated": 0, "is_virtual": 0, - "label": "Total Receipt Number", + "label": "Control Unit Date Time", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 15:31:17.797756", + "modified": "2024-03-13 15:31:57.934530", "module": null, - "name": "Sales Invoice-custom_total_receipt_number", + "name": "Sales Invoice-custom_control_unit_date_time", "no_copy": 1, "non_negative": 0, "options": null, @@ -8470,9 +8358,9 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_control_unit_date_time", - "fieldtype": "Datetime", - "hidden": 0, + "fieldname": "custom_qr_code", + "fieldtype": "Small Text", + "hidden": 1, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, @@ -8482,16 +8370,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_total_receipt_number", + "insert_after": "custom_control_unit_date_time", "is_system_generated": 0, "is_virtual": 0, - "label": "Control Unit Date Time", + "label": "QR Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 15:31:57.934530", + "modified": "2024-06-04 11:42:28.896341", "module": null, - "name": "Sales Invoice-custom_control_unit_date_time", + "name": "Sales Invoice-custom_qr_code", "no_copy": 1, "non_negative": 0, "options": null, @@ -8507,7 +8395,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -8594,7 +8482,7 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_control_unit_date_time", + "insert_after": "custom_qr_code", "is_system_generated": 0, "is_virtual": 0, "label": "", @@ -8679,6 +8567,62 @@ "unique": 0, "width": null }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_successfully_submitted", + "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": "custom_column_break_urllr", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Successfully Submitted?", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-03-18 11:35:48.162237", + "module": null, + "name": "Sales Invoice-custom_successfully_submitted", + "no_copy": 1, + "non_negative": 0, + "options": null, + "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, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, { "allow_in_quick_entry": 0, "allow_on_submit": 0, @@ -8706,7 +8650,7 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_urllr", + "insert_after": "custom_successfully_submitted", "is_system_generated": 0, "is_virtual": 0, "label": "Receipt Signature", @@ -8854,7 +8798,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, @@ -8862,8 +8806,8 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_successfully_submitted", - "fieldtype": "Check", + "fieldname": "custom_qr_image", + "fieldtype": "Image", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -8877,22 +8821,22 @@ "insert_after": "custom_submission_sequence_number", "is_system_generated": 0, "is_virtual": 0, - "label": "Successfully Submitted?", + "label": "QR Image", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 11:35:48.162237", + "modified": "2024-06-04 11:43:59.504663", "module": null, - "name": "Sales Invoice-custom_successfully_submitted", + "name": "Sales Invoice-custom_qr_image", "no_copy": 1, "non_negative": 0, - "options": null, + "options": "custom_qr_code", "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, diff --git a/kenya_compliance/kenya_compliance/apis/remote_response_status_handlers.py b/kenya_compliance/kenya_compliance/apis/remote_response_status_handlers.py index 110f677..859cf7d 100644 --- a/kenya_compliance/kenya_compliance/apis/remote_response_status_handlers.py +++ b/kenya_compliance/kenya_compliance/apis/remote_response_status_handlers.py @@ -1,9 +1,9 @@ import deprecation import frappe +from requests.utils import requote_uri from ... import __version__ from ..doctype.doctype_names_mapping import ( - BRANCH_ID_DOCTYPE_NAME, ITEM_CLASSIFICATIONS_DOCTYPE_NAME, NOTICES_DOCTYPE_NAME, REGISTERED_IMPORTED_ITEM_DOCTYPE_NAME, @@ -14,7 +14,7 @@ USER_DOCTYPE_NAME, ) from ..handlers import handle_errors -from ..utils import get_curr_env_etims_settings +from ..utils import get_curr_env_etims_settings, get_qr_code def on_error( @@ -118,8 +118,21 @@ def sales_information_submission_on_success( document_name: str, company_name: str, invoice_number: int | str, + pin: str, + branch_id: str = "00", ) -> None: response_data = response["data"] + receipt_signature = response_data["rcptSign"] + encoded_uri = requote_uri( + "https://etims.kra.go.ke/common/link/etims/receipt/indexEtimsReceptData?{" + + pin + + "+" + + branch_id + + "+" + + receipt_signature + ) # Specified in etims TIS docs, page 7 of 28 + + qr_code = get_qr_code(encoded_uri) frappe.db.set_value( invoice_type, @@ -128,10 +141,11 @@ def sales_information_submission_on_success( "custom_current_receipt_number": response_data["curRcptNo"], "custom_total_receipt_number": response_data["totRcptNo"], "custom_internal_data": response_data["intrlData"], - "custom_receipt_signature": response_data["rcptSign"], + "custom_receipt_signature": receipt_signature, "custom_control_unit_date_time": response_data["sdcDateTime"], "custom_successfully_submitted": 1, "custom_submission_sequence_number": invoice_number, + "custom_qr_code": qr_code, }, ) diff --git a/kenya_compliance/kenya_compliance/overrides/server/shared_overrides.py b/kenya_compliance/kenya_compliance/overrides/server/shared_overrides.py index 2285b32..a3bdc63 100644 --- a/kenya_compliance/kenya_compliance/overrides/server/shared_overrides.py +++ b/kenya_compliance/kenya_compliance/overrides/server/shared_overrides.py @@ -51,6 +51,8 @@ def generic_invoices_on_submit_override( invoice_type=invoice_type, company_name=company_name, invoice_number=payload["invcNo"], + pin=headers.get("tin"), + branch_id=headers.get("bhfId"), ) endpoints_builder.error_callback = on_error diff --git a/kenya_compliance/kenya_compliance/utils.py b/kenya_compliance/kenya_compliance/utils.py index 1b84343..50a079d 100644 --- a/kenya_compliance/kenya_compliance/utils.py +++ b/kenya_compliance/kenya_compliance/utils.py @@ -1,11 +1,14 @@ """Utility functions""" import re +from base64 import b64encode from datetime import datetime, timedelta +from io import BytesIO from typing import Literal import aiohttp import frappe +import qrcode from erpnext.controllers.taxes_and_totals import get_itemised_tax_breakup_data from frappe.model.document import Document @@ -411,3 +414,40 @@ def get_most_recent_sales_number(company_name: str) -> int | None: return settings.most_recent_sales_number return + + +def get_qr_code(data: str) -> str: + """Generate QR Code data + + Args: + data (str): The information used to generate the QR Code + + Returns: + str: The QR Code. + """ + qr_code_bytes = get_qr_code_bytes(data, format="PNG") + base_64_string = bytes_to_base64_string(qr_code_bytes) + + return add_file_info(base_64_string) + + +def add_file_info(data: str) -> str: + """Add info about the file type and encoding. + + This is required so the browser can make sense of the data.""" + return f"data:image/png;base64, {data}" + + +def get_qr_code_bytes(data, format: str = "PNG") -> bytes: + """Create a QR code and return the bytes.""" + img = qrcode.make(data) + + buffered = BytesIO() + img.save(buffered, format=format) + + return buffered.getvalue() + + +def bytes_to_base64_string(data: bytes) -> str: + """Convert bytes to a base64 encoded string.""" + return b64encode(data).decode("utf-8")