{
 "actions": [],
 "autoname": "field:bank_name",
 "creation": "2026-05-08 00:00:00.000000",
 "doctype": "DocType",
 "engine": "InnoDB",
 "field_order": [
  "settings_tab",
  "bank_name",
  "default_bank",
  "general_section",
  "similarity_threshold_customers",
  "similarity_threshold_suppliers",
  "similarity_threshold_purpose",
  "consider_azeri_chars",
  "case_insensitive_party_match",
  "default_party_settings_section",
  "default_supplier_group",
  "default_customer_group",
  "default_payment_terms",
  "col_break_party",
  "default_territory",
  "file_format_tab",
  "sample_file",
  "ff_sample_actions_section",
  "preview_sample_btn",
  "ff_format_section",
  "header_row",
  "amount_mode",
  "direction_debit_values",
  "direction_credit_values",
  "use_currency_from_file",
  "ff_column_break",
  "use_custom_date_format",
  "date_format",
  "ff_columns_section",
  "column_mappings",
  "data_tab",
  "data_tab_html",
  "customers_tab",
  "customers_list_html",
  "suppliers_tab",
  "suppliers_list_html",
  "purposes_tab",
  "purposes_list_html",
  "mappings_tab",
  "mappings_tab_html",
  "customer_mappings_tab",
  "customer_mappings_section",
  "customer_mappings",
  "supplier_mappings_tab",
  "supplier_mappings_section",
  "supplier_mappings",
  "transaction_mappings_tab",
  "transaction_mappings_section",
  "transaction_mappings"
 ],
 "fields": [
  {
   "fieldname": "settings_tab",
   "fieldtype": "Tab Break",
   "label": "Settings"
  },
  {
   "fieldname": "bank_name",
   "fieldtype": "Data",
   "in_list_view": 1,
   "label": "Bank Name",
   "reqd": 1,
   "unique": 1
  },
  {
   "fieldname": "default_bank",
   "fieldtype": "Link",
   "label": "Default Bank",
   "options": "Bank"
  },
  {
   "fieldname": "general_section",
   "fieldtype": "Section Break",
   "label": "Similarity Thresholds"
  },
  {
   "default": "90",
   "description": "Minimum similarity percentage for automatic customer name matching",
   "fieldname": "similarity_threshold_customers",
   "fieldtype": "Percent",
   "label": "Customer Matching Threshold (%)"
  },
  {
   "default": "80",
   "description": "Minimum similarity percentage for automatic supplier name matching",
   "fieldname": "similarity_threshold_suppliers",
   "fieldtype": "Percent",
   "label": "Supplier Matching Threshold (%)"
  },
  {
   "default": "70",
   "description": "Minimum similarity percentage for fuzzy purpose keyword matching during reconciliation",
   "fieldname": "similarity_threshold_purpose",
   "fieldtype": "Percent",
   "label": "Purpose Matching Threshold (%)"
  },
  {
   "default": "1",
   "description": "Consider replacement of Azərbaycan letters with Latin equivalents when matching",
   "fieldname": "consider_azeri_chars",
   "fieldtype": "Check",
   "label": "Consider Azərbaycan Characters"
  },
  {
   "default": "1",
   "description": "When resolving a Bank Transaction's counterparty against the mappings, ignore case differences (e.g. 'Acme MMC' matches 'acme mmc'). Each row in Customer/Supplier Mappings can override this via 'Case Mode'.",
   "fieldname": "case_insensitive_party_match",
   "fieldtype": "Check",
   "label": "Ignore Case in Party Matching"
  },
  {
   "fieldname": "default_party_settings_section",
   "fieldtype": "Section Break",
   "label": "Default Business Partner Settings"
  },
  {
   "fieldname": "default_supplier_group",
   "fieldtype": "Link",
   "label": "Default Supplier Group",
   "options": "Supplier Group"
  },
  {
   "fieldname": "default_customer_group",
   "fieldtype": "Link",
   "label": "Default Customer Group",
   "options": "Customer Group"
  },
  {
   "fieldname": "default_payment_terms",
   "fieldtype": "Link",
   "label": "Default Payment Terms",
   "options": "Payment Terms Template"
  },
  {
   "fieldname": "col_break_party",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "default_territory",
   "fieldtype": "Link",
   "label": "Default Territory",
   "options": "Territory"
  },
  {
   "fieldname": "file_format_tab",
   "fieldtype": "Tab Break",
   "label": "File Format"
  },
  {
   "description": "Upload a sample bank statement so the column names below can be picked from a dropdown. Only used at design time.",
   "fieldname": "sample_file",
   "fieldtype": "Attach",
   "label": "Sample Excel File"
  },
  {
   "depends_on": "eval:doc.sample_file",
   "fieldname": "ff_sample_actions_section",
   "fieldtype": "Section Break"
  },
  {
   "depends_on": "eval:doc.sample_file",
   "description": "Show the first 20 data rows from the sample file with mapping status per column. Column mappings are auto-detected when you attach a file — re-attach to re-run detection.",
   "fieldname": "preview_sample_btn",
   "fieldtype": "Button",
   "label": "Preview Sample"
  },
  {
   "fieldname": "ff_format_section",
   "fieldtype": "Section Break",
   "label": "Format"
  },
  {
   "default": "1",
   "description": "1-indexed row number containing column headers",
   "fieldname": "header_row",
   "fieldtype": "Int",
   "label": "Header Row"
  },
  {
   "default": "Separate debit/credit columns",
   "fieldname": "amount_mode",
   "fieldtype": "Select",
   "label": "Amount Mode",
   "options": "Single column with sign\nSeparate debit/credit columns\nSingle column + direction column"
  },
  {
   "depends_on": "eval:doc.amount_mode == 'Single column + direction column'",
   "description": "Comma-separated values from the Direction column that mean DEBIT (outflow). Case-insensitive. Example: DR, Debit, Məxaric, -",
   "fieldname": "direction_debit_values",
   "fieldtype": "Small Text",
   "label": "Debit Values"
  },
  {
   "depends_on": "eval:doc.amount_mode == 'Single column + direction column'",
   "description": "Comma-separated values from the Direction column that mean CREDIT (inflow). Case-insensitive. Example: CR, Credit, Mədaxil, +",
   "fieldname": "direction_credit_values",
   "fieldtype": "Small Text",
   "label": "Credit Values"
  },
  {
   "default": "0",
   "description": "Off: every imported Bank Transaction gets its Bank Account's currency.\nOn: the parsed Currency column on each row is used, falling back to the Bank Account's currency when empty. Enable only for multi-currency Bank Accounts where the statement actually carries per-row currency.",
   "fieldname": "use_currency_from_file",
   "fieldtype": "Check",
   "hidden": 1,
   "label": "Use Currency From File"
  },
  {
   "fieldname": "ff_column_break",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "description": "Off: the parser auto-detects common date formats (2026-01-31, 31.01.2026, 01/31/2026, etc.).\nOn: only the format below is used — set this if your bank uses an unusual format the auto-detection misses.",
   "fieldname": "use_custom_date_format",
   "fieldtype": "Check",
   "label": "Use Custom Date Format"
  },
  {
   "depends_on": "eval:doc.use_custom_date_format",
   "mandatory_depends_on": "eval:doc.use_custom_date_format",
   "description": "Python strftime format. Examples: %Y-%m-%d, %d.%m.%Y, %d/%m/%Y %H:%M:%S",
   "fieldname": "date_format",
   "fieldtype": "Data",
   "label": "Custom Date Format"
  },
  {
   "fieldname": "ff_columns_section",
   "fieldtype": "Section Break",
   "label": "Column Mappings"
  },
  {
   "fieldname": "column_mappings",
   "fieldtype": "Table",
   "label": "Column Mappings",
   "options": "Bank Integration Excel Column Mapping"
  },
  {
   "fieldname": "data_tab",
   "fieldtype": "Tab Break",
   "label": "Data"
  },
  {
   "fieldname": "data_tab_html",
   "fieldtype": "HTML"
  },
  {
   "fieldname": "customers_tab",
   "fieldtype": "Tab Break",
   "js_parent_subtab": "Data",
   "label": "Customers"
  },
  {
   "fieldname": "customers_list_html",
   "fieldtype": "HTML",
   "label": "Customers List",
   "options": "<div id=\"bi-customers-container\"><div class=\"text-center text-muted\" style=\"padding:20px;\">Loading...</div></div>"
  },
  {
   "fieldname": "suppliers_tab",
   "fieldtype": "Tab Break",
   "js_parent_subtab": "Data",
   "label": "Suppliers"
  },
  {
   "fieldname": "suppliers_list_html",
   "fieldtype": "HTML",
   "label": "Suppliers List",
   "options": "<div id=\"bi-suppliers-container\"><div class=\"text-center text-muted\" style=\"padding:20px;\">Loading...</div></div>"
  },
  {
   "fieldname": "purposes_tab",
   "fieldtype": "Tab Break",
   "js_parent_subtab": "Data",
   "label": "Purposes"
  },
  {
   "fieldname": "purposes_list_html",
   "fieldtype": "HTML",
   "label": "Purposes List",
   "options": "<div id=\"bi-purposes-container\"><div class=\"text-center text-muted\" style=\"padding:20px;\">Loading...</div></div>"
  },
  {
   "fieldname": "mappings_tab",
   "fieldtype": "Tab Break",
   "label": "Mappings"
  },
  {
   "fieldname": "mappings_tab_html",
   "fieldtype": "HTML"
  },
  {
   "fieldname": "customer_mappings_tab",
   "fieldtype": "Tab Break",
   "js_parent_subtab": "Mappings",
   "label": "Customer Mappings"
  },
  {
   "fieldname": "customer_mappings_section",
   "fieldtype": "Section Break",
   "label": "Customer Mappings"
  },
  {
   "allow_bulk_edit": 1,
   "fieldname": "customer_mappings",
   "fieldtype": "Table",
   "label": "Customer Mappings",
   "options": "Bank Integration Customer Mapping"
  },
  {
   "fieldname": "supplier_mappings_tab",
   "fieldtype": "Tab Break",
   "js_parent_subtab": "Mappings",
   "label": "Supplier Mappings"
  },
  {
   "fieldname": "supplier_mappings_section",
   "fieldtype": "Section Break",
   "label": "Supplier Mappings"
  },
  {
   "allow_bulk_edit": 1,
   "fieldname": "supplier_mappings",
   "fieldtype": "Table",
   "label": "Supplier Mappings",
   "options": "Bank Integration Supplier Mapping"
  },
  {
   "fieldname": "transaction_mappings_tab",
   "fieldtype": "Tab Break",
   "js_parent_subtab": "Mappings",
   "label": "Transaction Mappings"
  },
  {
   "fieldname": "transaction_mappings_section",
   "fieldtype": "Section Break",
   "label": "Transaction Mappings"
  },
  {
   "fieldname": "transaction_mappings",
   "fieldtype": "Table",
   "label": "Transaction Mappings",
   "options": "Bank Integration Transaction Mapping"
  }
 ],
 "index_web_pages_for_search": 1,
 "links": [],
 "modified": "2026-05-18 00:00:00.000000",
 "modified_by": "Administrator",
 "module": "Jey Erp",
 "name": "Bank Statement Importer",
 "naming_rule": "By fieldname",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "print": 1,
   "read": 1,
   "role": "System Manager",
   "share": 1,
   "write": 1
  }
 ],
 "row_format": "Dynamic",
 "sort_field": "modified",
 "sort_order": "DESC",
 "states": [],
 "track_changes": 1
}
