{
 "actions": [],
 "autoname": "field:preset_name",
 "creation": "2026-05-08 00:00:00.000000",
 "doctype": "DocType",
 "engine": "InnoDB",
 "field_order": [
  "preset_name",
  "description",
  "format_section",
  "header_row",
  "amount_mode",
  "direction_debit_values",
  "direction_credit_values",
  "use_currency_from_file",
  "column_break_1",
  "use_custom_date_format",
  "date_format",
  "sample_section",
  "sample_file",
  "sample_section_help",
  "columns_section",
  "column_mappings"
 ],
 "fields": [
  {
   "fieldname": "preset_name",
   "fieldtype": "Data",
   "in_list_view": 1,
   "label": "Preset Name",
   "reqd": 1,
   "unique": 1
  },
  {
   "fieldname": "description",
   "fieldtype": "Small Text",
   "label": "Description"
  },
  {
   "fieldname": "format_section",
   "fieldtype": "Section Break",
   "label": "Format"
  },
  {
   "default": "1",
   "description": "1-indexed row number containing column headers",
   "fieldname": "header_row",
   "fieldtype": "Int",
   "in_list_view": 1,
   "label": "Header Row"
  },
  {
   "default": "Separate debit/credit columns",
   "fieldname": "amount_mode",
   "fieldtype": "Select",
   "in_list_view": 1,
   "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",
   "label": "Use Currency From File"
  },
  {
   "fieldname": "column_break_1",
   "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": "sample_section",
   "fieldtype": "Section Break",
   "label": "Sample File"
  },
  {
   "description": "Upload a sample bank statement here 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"
  },
  {
   "fieldname": "sample_section_help",
   "fieldtype": "HTML",
   "options": "<div class=\"text-muted small\">After uploading, headers from the file become the options for <b>Excel Column</b> in the table below. Use the <b>Clear Sample</b> button to remove the file and go back to free text.</div>"
  },
  {
   "fieldname": "columns_section",
   "fieldtype": "Section Break",
   "label": "Column Mappings"
  },
  {
   "fieldname": "column_mappings",
   "fieldtype": "Table",
   "label": "Column Mappings",
   "options": "Bank Integration Excel Column Mapping"
  }
 ],
 "index_web_pages_for_search": 1,
 "links": [],
 "modified": "2026-05-18 00:00:00.000000",
 "modified_by": "Administrator",
 "module": "Jey Erp",
 "name": "Bank Integration Excel Preset",
 "naming_rule": "By fieldname",
 "owner": "Administrator",
 "permissions": [
  {
   "delete": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "System Manager"
  }
 ],
 "sort_field": "modified",
 "sort_order": "DESC",
 "states": [],
 "track_changes": 1
}
