diff --git a/kenya_compliance/fixtures/custom_field.json b/kenya_compliance/fixtures/custom_field.json index a35ad18..2e22973 100644 --- a/kenya_compliance/fixtures/custom_field.json +++ b/kenya_compliance/fixtures/custom_field.json @@ -1579,11 +1579,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, @@ -1594,19 +1594,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, @@ -1615,7 +1615,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, @@ -1635,11 +1635,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, @@ -1650,19 +1650,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, @@ -1671,7 +1671,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, @@ -4311,62 +4311,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": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "doctype": "Custom Field", - "dt": "Sales Invoice", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "exempt_from_sales_tax", - "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": "taxes_section", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Is customer exempted from sales tax?", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-03-07 15:48:57.324863", - "module": null, - "name": "Sales Invoice-exempt_from_sales_tax", - "no_copy": 0, - "non_negative": 0, - "options": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, { "allow_in_quick_entry": 0, "allow_on_submit": 0, @@ -4488,14 +4432,14 @@ "columns": 0, "default": null, "depends_on": null, - "description": null, + "description": "This is for eTims Insurance details.Only applicable if the Customer Group has the Insurance Applicable check.", "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice", + "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_payment_type", - "fieldtype": "Link", + "fieldname": "custom_insurance_details", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4506,19 +4450,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_etims_details", + "insert_after": "tax_withholding_category", "is_system_generated": 0, "is_virtual": 0, - "label": "Payment Type", + "label": "Insurance Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:56:25.310925", + "modified": "2024-04-08 09:57:48.587209", "module": null, - "name": "POS Invoice-custom_payment_type", + "name": "Customer-custom_insurance_details", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Payment Type", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -4527,7 +4471,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, @@ -4544,14 +4488,14 @@ "columns": 0, "default": null, "depends_on": null, - "description": "This is for eTims Insurance details.Only applicable if the Customer Group has the Insurance Applicable check.", + "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_insurance_details", - "fieldtype": "Section Break", + "fieldname": "exempt_from_sales_tax", + "fieldtype": "Check", "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": "tax_withholding_category", - "is_system_generated": 0, + "insert_after": "taxes_section", + "is_system_generated": 1, "is_virtual": 0, - "label": "Insurance Details", + "label": "Is customer exempted from sales tax?", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-08 09:57:48.587209", + "modified": "2024-03-07 15:48:57.324863", "module": null, - "name": "Customer-custom_insurance_details", + "name": "Sales Invoice-exempt_from_sales_tax", "no_copy": 0, "non_negative": 0, "options": null, @@ -4603,11 +4547,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice Item", - "fetch_from": "custom_taxation_type.cd", + "dt": "POS Invoice", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_taxation_type_code", - "fieldtype": "Data", + "fieldname": "custom_payment_type", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4618,19 +4562,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_unit_of_quantity_code", + "insert_after": "custom_etims_details", "is_system_generated": 0, "is_virtual": 0, - "label": "Taxation Type Code", + "label": "Payment Type", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-12 14:29:03.197598", + "modified": "2024-03-18 15:56:25.310925", "module": null, - "name": "Sales Invoice Item-custom_taxation_type_code", + "name": "POS Invoice-custom_payment_type", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari KRA eTims Payment Type", "permlevel": 0, "precision": "", "print_hide": 0, @@ -4659,11 +4603,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice", - "fetch_from": null, + "dt": "Sales Invoice Item", + "fetch_from": "custom_taxation_type.cd", "fetch_if_empty": 0, - "fieldname": "custom_transaction_progres", - "fieldtype": "Link", + "fieldname": "custom_taxation_type_code", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4674,19 +4618,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_payment_type", + "insert_after": "custom_unit_of_quantity_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Transaction Progress", + "label": "Taxation Type Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-19 15:52:19.794271", + "modified": "2024-03-12 14:29:03.197598", "module": null, - "name": "POS Invoice-custom_transaction_progres", + "name": "Sales Invoice Item-custom_taxation_type_code", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Transaction Progress", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -4774,8 +4718,8 @@ "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_c2zrv", - "fieldtype": "Column Break", + "fieldname": "custom_transaction_progres", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -4786,19 +4730,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_transaction_progres", + "insert_after": "custom_payment_type", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Transaction Progress", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:59:12.497045", + "modified": "2024-03-19 15:52:19.794271", "module": null, - "name": "POS Invoice-custom_column_break_c2zrv", + "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, @@ -4807,7 +4751,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, @@ -4884,10 +4828,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "POS Invoice", - "fetch_from": "custom_payment_type.code", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_payment_type_code", - "fieldtype": "Data", + "fieldname": "custom_column_break_c2zrv", + "fieldtype": "Column Break", "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_column_break_c2zrv", + "insert_after": "custom_transaction_progres", "is_system_generated": 0, "is_virtual": 0, - "label": "Payment Type Code", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-18 15:56:25.572733", + "modified": "2024-03-18 15:59:12.497045", "module": null, - "name": "POS Invoice-custom_payment_type_code", + "name": "POS Invoice-custom_column_break_c2zrv", "no_copy": 0, "non_negative": 0, "options": null, @@ -4916,14 +4860,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 }, @@ -4996,9 +4940,9 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "POS Invoice", - "fetch_from": "custom_transaction_progres.code", + "fetch_from": "custom_payment_type.code", "fetch_if_empty": 0, - "fieldname": "custom_transaction_progress_code", + "fieldname": "custom_payment_type_code", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -5010,16 +4954,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_payment_type_code", + "insert_after": "custom_column_break_c2zrv", "is_system_generated": 0, "is_virtual": 0, - "label": "Transaction Progress Code", + "label": "Payment Type Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-19 15:53:02.290794", + "modified": "2024-03-18 15:56:25.572733", "module": null, - "name": "POS Invoice-custom_transaction_progress_code", + "name": "POS Invoice-custom_payment_type_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -5028,7 +4972,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, @@ -5108,10 +5052,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "POS Invoice", - "fetch_from": null, + "fetch_from": "custom_transaction_progres.code", "fetch_if_empty": 0, - "fieldname": "custom_etims_responses", - "fieldtype": "Section Break", + "fieldname": "custom_transaction_progress_code", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5122,16 +5066,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_transaction_progress_code", + "insert_after": "custom_payment_type_code", "is_system_generated": 0, "is_virtual": 0, - "label": "eTims Responses", + "label": "Transaction Progress Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-03 14:59:20.523024", + "modified": "2024-03-19 15:53:02.290794", "module": null, - "name": "POS Invoice-custom_etims_responses", + "name": "POS Invoice-custom_transaction_progress_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -5147,7 +5091,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -5219,11 +5163,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice", + "dt": "Stock Entry", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_current_receipt_number", - "fieldtype": "Data", + "fieldname": "custom_column_break_apy88", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5234,16 +5178,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_etims_responses", + "insert_after": "project", "is_system_generated": 0, "is_virtual": 0, - "label": "Current Receipt Number", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-03 14:59:20.841528", + "modified": "2024-05-30 12:20:07.974789", "module": null, - "name": "POS Invoice-custom_current_receipt_number", + "name": "Stock Entry-custom_column_break_apy88", "no_copy": 0, "non_negative": 0, "options": null, @@ -5252,14 +5196,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 }, @@ -5275,11 +5219,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Stock Entry", + "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_apy88", - "fieldtype": "Column Break", + "fieldname": "custom_etims_responses", + "fieldtype": "Section 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": "project", + "insert_after": "custom_transaction_progress_code", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "eTims Responses", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-05-30 12:20:07.974789", + "modified": "2024-04-03 14:59:20.523024", "module": null, - "name": "Stock Entry-custom_column_break_apy88", + "name": "POS Invoice-custom_etims_responses", "no_copy": 0, "non_negative": 0, "options": null, @@ -5331,10 +5275,66 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "Stock Entry", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_tax_payers_name", + "fieldname": "custom_etims_branch", + "fieldtype": "Link", + "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_apy88", + "is_system_generated": 0, + "is_virtual": 0, + "label": "eTims Branch", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-05-30 12:20:08.217610", + "module": null, + "name": "Stock Entry-custom_etims_branch", + "no_copy": 0, + "non_negative": 0, + "options": "Branch", + "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": 1, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "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_current_receipt_number", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -5346,16 +5346,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_kra_registered_tax_payer_details", + "insert_after": "custom_etims_responses", "is_system_generated": 0, "is_virtual": 0, - "label": "Tax Payer's Name", + "label": "Current Receipt Number", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:53:38.854278", + "modified": "2024-04-03 14:59:20.841528", "module": null, - "name": "Customer-custom_tax_payers_name", + "name": "POS Invoice-custom_current_receipt_number", "no_copy": 0, "non_negative": 0, "options": null, @@ -5387,10 +5387,10 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice", + "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_total_receipt_number", + "fieldname": "custom_tax_payers_name", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -5402,16 +5402,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_current_receipt_number", + "insert_after": "custom_kra_registered_tax_payer_details", "is_system_generated": 0, "is_virtual": 0, - "label": "Total Receipt Number", + "label": "Tax Payer's Name", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-03 14:59:21.158148", + "modified": "2024-03-08 14:53:38.854278", "module": null, - "name": "POS Invoice-custom_total_receipt_number", + "name": "Customer-custom_tax_payers_name", "no_copy": 0, "non_negative": 0, "options": null, @@ -5443,11 +5443,11 @@ "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_total_receipt_number", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5458,32 +5458,32 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_apy88", + "insert_after": "custom_current_receipt_number", "is_system_generated": 0, "is_virtual": 0, - "label": "eTims Branch", + "label": "Total Receipt Number", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-05-30 12:20:08.217610", + "modified": "2024-04-03 14:59:21.158148", "module": null, - "name": "Stock Entry-custom_etims_branch", + "name": "POS Invoice-custom_total_receipt_number", "no_copy": 0, "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, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -5835,11 +5835,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice", + "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_control_unit_date_time", - "fieldtype": "Datetime", + "fieldname": "custom_column_break_62fii", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5850,16 +5850,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_receipt_signature", + "insert_after": "custom_is_validated", "is_system_generated": 0, "is_virtual": 0, - "label": "Control Unit Date Time", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-03 15:04:39.268682", + "modified": "2024-03-08 14:53:39.344020", "module": null, - "name": "POS Invoice-custom_control_unit_date_time", + "name": "Customer-custom_column_break_62fii", "no_copy": 0, "non_negative": 0, "options": null, @@ -5868,7 +5868,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, @@ -5894,7 +5894,7 @@ "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_62fii", + "fieldname": "custom_column_break_mhktd", "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, @@ -5913,9 +5913,9 @@ "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:53:39.344020", + "modified": "2024-04-09 14:45:20.115838", "module": null, - "name": "Customer-custom_column_break_62fii", + "name": "Customer-custom_column_break_mhktd", "no_copy": 0, "non_negative": 0, "options": null, @@ -5947,11 +5947,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_mhktd", - "fieldtype": "Column Break", + "fieldname": "custom_control_unit_date_time", + "fieldtype": "Datetime", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -5962,16 +5962,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_is_validated", + "insert_after": "custom_receipt_signature", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Control Unit Date Time", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-09 14:45:20.115838", + "modified": "2024-04-03 15:04:39.268682", "module": null, - "name": "Customer-custom_column_break_mhktd", + "name": "POS Invoice-custom_control_unit_date_time", "no_copy": 0, "non_negative": 0, "options": null, @@ -5980,7 +5980,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, @@ -6054,16 +6054,16 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "default": "0", + "default": null, "depends_on": null, "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "POS Invoice", + "dt": "Customer", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_successfully_submitted", - "fieldtype": "Check", + "fieldname": "custom_tax_locality_name", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6074,16 +6074,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_control_unit_date_time", + "insert_after": "custom_subcounty_name", "is_system_generated": 0, "is_virtual": 0, - "label": "Successfully Submitted", + "label": "Tax Locality Name", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-03 14:59:22.657225", + "modified": "2024-03-08 14:53:39.592835", "module": null, - "name": "POS Invoice-custom_successfully_submitted", + "name": "Customer-custom_tax_locality_name", "no_copy": 0, "non_negative": 0, "options": null, @@ -6099,7 +6099,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -6115,11 +6115,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Customer", + "dt": "POS Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_tax_locality_name", - "fieldtype": "Data", + "fieldname": "custom_submission_sequence_number", + "fieldtype": "Int", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6130,16 +6130,72 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_subcounty_name", + "insert_after": "custom_control_unit_date_time", "is_system_generated": 0, "is_virtual": 0, - "label": "Tax Locality Name", + "label": "Submission Sequence Number", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-08 14:53:39.592835", + "modified": "2024-05-30 15:55:19.409760", "module": null, - "name": "Customer-custom_tax_locality_name", + "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 + }, + { + "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": "POS 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_submission_sequence_number", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Successfully Submitted", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-04-03 14:59:22.657225", + "module": null, + "name": "POS Invoice-custom_successfully_submitted", "no_copy": 0, "non_negative": 0, "options": null, @@ -6155,7 +6211,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -6551,62 +6607,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": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "doctype": "Custom Field", - "dt": "Sales Invoice", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_payment_and_transaction_details", - "fieldtype": "Section Break", - "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_etims_details", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Payment and Transaction Details", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-03-13 10:23:30.141742", - "module": null, - "name": "Sales Invoice-custom_payment_and_transaction_details", - "no_copy": 0, - "non_negative": 0, - "options": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, { "allow_in_quick_entry": 0, "allow_on_submit": 0, @@ -6678,8 +6678,8 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_payment_type", - "fieldtype": "Link", + "fieldname": "custom_payment_and_transaction_details", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6690,19 +6690,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_payment_and_transaction_details", + "insert_after": "custom_etims_details", "is_system_generated": 0, "is_virtual": 0, - "label": "Payment Type", + "label": "Payment and Transaction Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-11 14:17:45.667132", + "modified": "2024-03-13 10:23:30.141742", "module": null, - "name": "Sales Invoice-custom_payment_type", + "name": "Sales Invoice-custom_payment_and_transaction_details", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Payment Type", + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -6711,7 +6711,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, @@ -6790,7 +6790,7 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_transaction_progres", + "fieldname": "custom_payment_type", "fieldtype": "Link", "hidden": 0, "hide_border": 0, @@ -6802,19 +6802,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_payment_type", + "insert_after": "custom_payment_and_transaction_details", "is_system_generated": 0, "is_virtual": 0, - "label": "Transaction Progress", + "label": "Payment Type", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-11 15:30:50.165883", + "modified": "2024-03-11 14:17:45.667132", "module": null, - "name": "Sales Invoice-custom_transaction_progres", + "name": "Sales Invoice-custom_payment_type", "no_copy": 0, "non_negative": 0, - "options": "Navari KRA eTims Transaction Progress", + "options": "Navari KRA eTims Payment Type", "permlevel": 0, "precision": "", "print_hide": 0, @@ -6899,11 +6899,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Item", + "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_country_of_origin_details", - "fieldtype": "Section Break", + "fieldname": "custom_transaction_progres", + "fieldtype": "Link", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6914,19 +6914,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "customs_tariff_number", + "insert_after": "custom_payment_type", "is_system_generated": 0, "is_virtual": 0, - "label": "eTims Imported Item Information", + "label": "Transaction Progress", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-04-02 09:58:00.982918", + "modified": "2024-03-11 15:30:50.165883", "module": null, - "name": "Item-custom_country_of_origin_details", + "name": "Sales Invoice-custom_transaction_progres", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Navari KRA eTims Transaction Progress", "permlevel": 0, "precision": "", "print_hide": 0, @@ -6935,7 +6935,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, @@ -6955,11 +6955,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Sales Invoice", + "dt": "Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_arjmp", - "fieldtype": "Column Break", + "fieldname": "custom_country_of_origin_details", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -6970,16 +6970,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_transaction_progres", + "insert_after": "customs_tariff_number", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "eTims Imported Item Information", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 10:23:30.515451", + "modified": "2024-04-02 09:58:00.982918", "module": null, - "name": "Sales Invoice-custom_column_break_arjmp", + "name": "Item-custom_country_of_origin_details", "no_copy": 0, "non_negative": 0, "options": null, @@ -7068,10 +7068,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "Sales Invoice", - "fetch_from": "custom_payment_type.code", + "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_payment_type_code", - "fieldtype": "Data", + "fieldname": "custom_column_break_arjmp", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -7082,16 +7082,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_arjmp", + "insert_after": "custom_transaction_progres", "is_system_generated": 0, "is_virtual": 0, - "label": "Payment Type Code", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 10:18:33.836130", + "modified": "2024-03-13 10:23:30.515451", "module": null, - "name": "Sales Invoice-custom_payment_type_code", + "name": "Sales Invoice-custom_column_break_arjmp", "no_copy": 0, "non_negative": 0, "options": null, @@ -7100,7 +7100,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, @@ -7236,9 +7236,9 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "Sales Invoice", - "fetch_from": "custom_transaction_progres.code", + "fetch_from": "custom_payment_type.code", "fetch_if_empty": 0, - "fieldname": "custom_transaction_progress_code", + "fieldname": "custom_payment_type_code", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -7250,16 +7250,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_payment_type_code", + "insert_after": "custom_column_break_arjmp", "is_system_generated": 0, "is_virtual": 0, - "label": "Transaction Progress Code", + "label": "Payment Type Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 10:18:34.119872", + "modified": "2024-03-13 10:18:33.836130", "module": null, - "name": "Sales Invoice-custom_transaction_progress_code", + "name": "Sales Invoice-custom_payment_type_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -7404,10 +7404,10 @@ "docstatus": 0, "doctype": "Custom Field", "dt": "Sales Invoice", - "fetch_from": null, + "fetch_from": "custom_transaction_progres.code", "fetch_if_empty": 0, - "fieldname": "custom_etims_response_details", - "fieldtype": "Section Break", + "fieldname": "custom_transaction_progress_code", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -7418,16 +7418,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_transaction_progress_code", + "insert_after": "custom_payment_type_code", "is_system_generated": 0, "is_virtual": 0, - "label": "eTims Response Details", + "label": "Transaction Progress Code", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 15:31:17.266817", + "modified": "2024-03-13 10:18:34.119872", "module": null, - "name": "Sales Invoice-custom_etims_response_details", + "name": "Sales Invoice-custom_transaction_progress_code", "no_copy": 0, "non_negative": 0, "options": null, @@ -7436,7 +7436,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, @@ -7574,8 +7574,8 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_current_receipt_number", - "fieldtype": "Data", + "fieldname": "custom_etims_response_details", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -7586,17 +7586,17 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_etims_response_details", + "insert_after": "custom_transaction_progress_code", "is_system_generated": 0, "is_virtual": 0, - "label": "Current Receipt Number", + "label": "eTims Response Details", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 15:31:17.558464", + "modified": "2024-03-13 15:31:17.266817", "module": null, - "name": "Sales Invoice-custom_current_receipt_number", - "no_copy": 1, + "name": "Sales Invoice-custom_etims_response_details", + "no_copy": 0, "non_negative": 0, "options": null, "permlevel": 0, @@ -7604,7 +7604,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, @@ -7742,7 +7742,7 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_total_receipt_number", + "fieldname": "custom_current_receipt_number", "fieldtype": "Data", "hidden": 0, "hide_border": 0, @@ -7754,16 +7754,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_current_receipt_number", + "insert_after": "custom_etims_response_details", "is_system_generated": 0, "is_virtual": 0, - "label": "Total Receipt Number", + "label": "Current Receipt Number", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 15:31:17.797756", + "modified": "2024-03-13 15:31:17.558464", "module": null, - "name": "Sales Invoice-custom_total_receipt_number", + "name": "Sales Invoice-custom_current_receipt_number", "no_copy": 1, "non_negative": 0, "options": null, @@ -7910,8 +7910,8 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_control_unit_date_time", - "fieldtype": "Datetime", + "fieldname": "custom_total_receipt_number", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -7922,16 +7922,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_total_receipt_number", + "insert_after": "custom_current_receipt_number", "is_system_generated": 0, "is_virtual": 0, - "label": "Control Unit Date Time", + "label": "Total Receipt Number", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 15:31:57.934530", + "modified": "2024-03-13 15:31:17.797756", "module": null, - "name": "Sales Invoice-custom_control_unit_date_time", + "name": "Sales Invoice-custom_total_receipt_number", "no_copy": 1, "non_negative": 0, "options": null, @@ -8078,8 +8078,8 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_urllr", - "fieldtype": "Column Break", + "fieldname": "custom_control_unit_date_time", + "fieldtype": "Datetime", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -8090,17 +8090,17 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_control_unit_date_time", + "insert_after": "custom_total_receipt_number", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Control Unit Date Time", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 15:31:18.041091", + "modified": "2024-03-13 15:31:57.934530", "module": null, - "name": "Sales Invoice-custom_column_break_urllr", - "no_copy": 0, + "name": "Sales Invoice-custom_control_unit_date_time", + "no_copy": 1, "non_negative": 0, "options": null, "permlevel": 0, @@ -8108,7 +8108,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, @@ -8190,8 +8190,8 @@ "dt": "Sales Invoice", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_receipt_signature", - "fieldtype": "Data", + "fieldname": "custom_column_break_urllr", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -8202,17 +8202,17 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_urllr", + "insert_after": "custom_control_unit_date_time", "is_system_generated": 0, "is_virtual": 0, - "label": "Receipt Signature", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-03-13 15:31:18.263546", + "modified": "2024-03-13 15:31:18.041091", "module": null, - "name": "Sales Invoice-custom_receipt_signature", - "no_copy": 1, + "name": "Sales Invoice-custom_column_break_urllr", + "no_copy": 0, "non_negative": 0, "options": null, "permlevel": 0, @@ -8220,7 +8220,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, @@ -8287,6 +8287,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": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_receipt_signature", + "fieldtype": "Data", + "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": "Receipt Signature", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-03-13 15:31:18.263546", + "module": null, + "name": "Sales Invoice-custom_receipt_signature", + "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, @@ -8343,6 +8399,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_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_internal_data", + "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:39:56.164808", + "module": null, + "name": "Sales Invoice-custom_submission_sequence_number", + "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": 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, @@ -8370,7 +8482,7 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_internal_data", + "insert_after": "custom_submission_sequence_number", "is_system_generated": 0, "is_virtual": 0, "label": "Successfully Submitted?", 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 124bc1a..5ba64ad 100644 --- a/kenya_compliance/kenya_compliance/apis/remote_response_status_handlers.py +++ b/kenya_compliance/kenya_compliance/apis/remote_response_status_handlers.py @@ -106,7 +106,8 @@ def inventory_submission_on_success(response: dict, document_name) -> None: def imported_item_submission_on_success(response: dict, document_name: str) -> None: frappe.db.set_value("Item", document_name, {"custom_imported_item_submitted": 1}) - + + def submit_inventory_on_success(response: dict) -> None: return None @@ -130,6 +131,7 @@ def sales_information_submission_on_success( "custom_receipt_signature": response_data["rcptSign"], "custom_control_unit_date_time": response_data["sdcDateTime"], "custom_successfully_submitted": 1, + "custom_submission_sequence_number": invoice_number, }, ) diff --git a/kenya_compliance/kenya_compliance/utils.py b/kenya_compliance/kenya_compliance/utils.py index 8c4e3b8..cc24d7c 100644 --- a/kenya_compliance/kenya_compliance/utils.py +++ b/kenya_compliance/kenya_compliance/utils.py @@ -267,7 +267,9 @@ def build_invoice_payload( "orgInvcNo": ( 0 if invoice_type_identifier == "S" - else extract_document_series_number(invoice) + else frappe.get_doc( + "Sales Invoice", invoice.return_against + ).custom_submission_sequence_number ), "trdInvcNo": invoice.name, "custTin": invoice.tax_id if invoice.tax_id else None,