diff --git a/nl_piece_rate_pay/fixtures/custom_field.json b/nl_piece_rate_pay/fixtures/custom_field.json new file mode 100644 index 0000000..ca42620 --- /dev/null +++ b/nl_piece_rate_pay/fixtures/custom_field.json @@ -0,0 +1,58 @@ +[ + { + "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": "Salary Structure Assignment", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_casual_weekly_pay", + "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_references", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Casual Weekly Pay", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-05-20 22:38:32.182108", + "module": null, + "name": "Salary Structure Assignment-custom_casual_weekly_pay", + "no_copy": 0, + "non_negative": 0, + "options": "Casual Salary Structure Assignment Tool", + "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 + } +] \ No newline at end of file diff --git a/nl_piece_rate_pay/hooks.py b/nl_piece_rate_pay/hooks.py index e27b957..27a4f19 100644 --- a/nl_piece_rate_pay/hooks.py +++ b/nl_piece_rate_pay/hooks.py @@ -5,6 +5,21 @@ app_email = "mania@navari.co.ke" app_license = "AGPL" +fixtures = [ + { + "doctype": "Custom Field", + "filters": [ + [ + "name", + "in", + ( + "Salary Structure Assignment-custom_casual_weekly_pay", + ), + ] + ], + }, + +] # Includes in # ------------------