[
  {
    "label": "Bill to Pay", 
    "type_id": 4, 
    "required": true, 
    "field_name": "bill_id", 
    "data_column": "bill_id", 
    "order_index": 1,
    "options": {
      "source": "/api/ap-transactions?status=pending",
      "value_field": "id",
      "label_field": "bill_display",
      "searchable": true
    }
  },
  {
    "label": "Payment Date", 
    "type_id": 3, 
    "required": true, 
    "field_name": "payment_date", 
    "data_column": "payment_date", 
    "order_index": 2,
    "default_value": "today"
  },
  {
    "label": "Payment Amount", 
    "type_id": 10, 
    "required": true, 
    "field_name": "payment_amount", 
    "data_column": "payment_amount", 
    "order_index": 3,
    "validation": {
      "min": 0.01
    }
  },
  {
    "label": "Payment Method", 
    "type_id": 4, 
    "required": true, 
    "field_name": "payment_method", 
    "data_column": "payment_method", 
    "order_index": 4,
    "options": [
      {"value": "check", "label": "Check"},
      {"value": "cash", "label": "Cash"},
      {"value": "bank_transfer", "label": "Bank Transfer"},
      {"value": "credit_card", "label": "Credit Card"}
    ]
  },
  {
    "label": "Check Number", 
    "type_id": 1, 
    "required": false, 
    "field_name": "check_number", 
    "data_column": "check_number", 
    "order_index": 5,
    "conditions": {
      "show_if": {"payment_method": "check"}
    }
  },
  {
    "label": "Payment Account", 
    "type_id": 4, 
    "required": true, 
    "field_name": "payment_account_id", 
    "data_column": "payment_account_id", 
    "order_index": 6,
    "options": {
      "source": "/api/finance/accounts?type=asset&subtype=cash",
      "value_field": "id",
      "label_field": "name_with_code"
    }
  },
  {
    "label": "Notes", 
    "type_id": 7, 
    "required": false, 
    "field_name": "notes", 
    "data_column": "notes", 
    "order_index": 7
  }
]