Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
276 changes: 114 additions & 162 deletions sf_trading/fixtures/custom_field.json
Original file line number Diff line number Diff line change
@@ -1,164 +1,116 @@
[
{
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"default": null,
"depends_on": "eval:doc.is_internal_customer && doc.represents_company",
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Sales Invoice",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "inter_company_branch",
"fieldtype": "Link",
"hidden": 0,
"hide_border": 0,
"ignore_user_permissions": 0,
"in_list_view": 0,
"in_standard_filter": 0,
"insert_after": "represents_company",
"is_system_generated": 0,
"label": "Inter Company Branch",
"module": "Sf Trading",
"name": "Sales Invoice-inter_company_branch",
"no_copy": 0,
"options": "Inter Company Branch",
"permlevel": 0,
"read_only": 0,
"reqd": 0,
"translatable": 0,
"unique": 0
},
{
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"default": "Credit",
"depends_on": null,
"description": "Cash = paid on or before invoice date; Credit = paid later. Set automatically.",
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Sales Invoice",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "custom_sale_type",
"fieldtype": "Select",
"hidden": 1,
"hide_border": 0,
"ignore_user_permissions": 0,
"in_list_view": 0,
"in_standard_filter": 0,
"insert_after": "inter_company_branch",
"is_system_generated": 0,
"label": "Sale Type",
"module": "Sf Trading",
"name": "Sales Invoice-custom_sale_type",
"no_copy": 0,
"options": "Cash\nCredit",
"permlevel": 0,
"read_only": 1,
"reqd": 0,
"translatable": 0,
"unique": 0
},
{
"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": "Customer",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "custom_commercial_registration_number",
"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_vat_registration_number",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Commercial Registration Number",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2026-01-21 22:02:44.991168",
"module": null,
"name": "Customer-custom_commercial_registration_number",
"no_copy": 0,
"non_negative": 0,
"options": null,
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"print_width": null,
"read_only": 0,
"read_only_depends_on": null,
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"show_dashboard": 0,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
},
{
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 1,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"default": null,
"depends_on": null,
"description": "Shows Pending Approval when a linked Purchase Invoice is awaiting manager approval",
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Purchase Receipt",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "custom_billing_approval_status",
"fieldtype": "Data",
"hidden": 0,
"hide_border": 0,
"ignore_user_permissions": 0,
"in_list_view": 1,
"in_standard_filter": 0,
"insert_after": "status",
"is_system_generated": 0,
"label": "Billing Approval Status",
"module": "Sf Trading",
"name": "Purchase Receipt-custom_billing_approval_status",
"no_copy": 0,
"options": null,
"permlevel": 0,
"read_only": 1,
"reqd": 0,
"translatable": 0,
"unique": 0
}
{
"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": "Customer",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "custom_commercial_registration_number",
"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_vat_registration_number",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Commercial Registration Number",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2026-01-21 22:02:44.991168",
"module": null,
"name": "Customer-custom_commercial_registration_number",
"no_copy": 0,
"non_negative": 0,
"options": null,
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"print_width": null,
"read_only": 0,
"read_only_depends_on": null,
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"show_dashboard": 0,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
},
{
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"default": null,
"depends_on": "eval:doc.is_internal_customer && doc.represents_company",
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Sales Invoice",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "inter_company_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": "represents_company",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Inter Company Branch",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2026-05-04 17:38:13.257201",
"module": "Sf Trading",
"name": "Sales Invoice-inter_company_branch",
"no_copy": 0,
"non_negative": 0,
"options": "Inter Company Branch",
"permlevel": 0,
"placeholder": null,
"precision": null,
"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
}
]
29 changes: 17 additions & 12 deletions sf_trading/fixtures/property_setter.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
[
{
"doc_type": "Sales Invoice Item",
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "barcode",
"module": "Sf Trading",
"name": "Sales Invoice Item-barcode-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"value": "1"
}
]
{
"default_value": null,
"doc_type": "Sales Invoice Item",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "barcode",
"is_system_generated": 0,
"modified": "2026-05-04 17:38:15.245578",
"module": "Sf Trading",
"name": "Sales Invoice Item-barcode-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
}
]
Loading
Loading