Commit 6ed0c627 authored by Victor Bourgade's avatar Victor Bourgade
Browse files

Issue #3219941: Issue with views.view.commerce_funds_transactions schema

parent 7e97370b
Loading
Loading
Loading
Loading
+626 −624

File changed.

Preview size limit exceeded, changes collapsed.

+567 −558

File changed.

Preview size limit exceeded, changes collapsed.

+219 −218
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ dependencies:
    - commerce_funds
    - user
_core:
  default_config_hash: l7Qb5scYVYMorlasRD9nynvrlD6d5FAZ45zmEBQnTPM
  default_config_hash: bjcNRoEoPabPAe8RSKLhm0IVy9Fhu5EbuJQk48ZoDZ0
id: commerce_funds_withdrawal_requests
label: 'Withdrawal requests'
module: views
@@ -17,119 +17,12 @@ base_table: commerce_funds_transactions
base_field: transaction_id
display:
  default:
    display_plugin: default
    id: default
    display_title: Master
    display_plugin: default
    position: 0
    display_options:
      access:
        type: perm
        options:
          perm: 'withdraw funds'
      cache:
        type: tag
        options: {  }
      query:
        type: views_query
        options:
          disable_sql_rewrite: false
          distinct: false
          replica: false
          query_comment: ''
          query_tags: {  }
      exposed_form:
        type: basic
        options:
          submit_button: Apply
          reset_button: false
          reset_button_label: Reset
          exposed_sorts_label: 'Sort by'
          expose_sort_order: true
          sort_asc_label: Asc
          sort_desc_label: Desc
      pager:
        type: mini
        options:
          items_per_page: 10
          offset: 0
          id: 0
          total_pages: null
          expose:
            items_per_page: false
            items_per_page_label: 'Items per page'
            items_per_page_options: '5, 10, 25, 50'
            items_per_page_options_all: false
            items_per_page_options_all_label: '- All -'
            offset: false
            offset_label: Offset
          tags:
            previous: ‹‹
            next: ››
      style:
        type: table
        options:
          grouping: {  }
          row_class: ''
          default_row_class: true
          override: true
          sticky: false
          caption: ''
          summary: ''
          description: ''
          columns:
            created: created
            brut_amount: brut_amount
            fee: fee
            net_amount: net_amount
            method: method
            status: status
          info:
            created:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            brut_amount:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            fee:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            net_amount:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            method:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            status:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
          default: '-1'
          empty_table: true
      row:
        type: fields
      title: 'Your withdrawal requests'
      fields:
        created:
          id: created
@@ -138,6 +31,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_funds_transaction
          entity_field: created
          plugin_id: field
          label: Date
          exclude: false
          alter:
@@ -195,9 +91,6 @@ display:
          multi_type: separator
          separator: ', '
          field_api_classes: false
          entity_type: commerce_funds_transaction
          entity_field: created
          plugin_id: field
        brut_amount:
          id: brut_amount
          table: commerce_funds_transactions
@@ -205,6 +98,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: null
          entity_field: brut_amount
          plugin_id: commerce_funds_amount
          label: Request
          exclude: false
          alter:
@@ -250,13 +146,10 @@ display:
          precision: 0
          decimal: .
          separator: ','
          format_plural: 0
          format_plural: false
          format_plural_string: !!binary MQNAY291bnQ=
          prefix: ''
          suffix: ''
          entity_type: null
          entity_field: brut_amount
          plugin_id: commerce_funds_amount
        fee:
          id: fee
          table: commerce_funds_transactions
@@ -264,6 +157,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_funds_transaction
          entity_field: fee
          plugin_id: commerce_funds_amount
          label: Commission
          exclude: false
          alter:
@@ -309,13 +205,10 @@ display:
          precision: 0
          decimal: .
          separator: ','
          format_plural: 0
          format_plural: false
          format_plural_string: !!binary MQNAY291bnQ=
          prefix: ''
          suffix: ''
          entity_type: commerce_funds_transaction
          entity_field: fee
          plugin_id: commerce_funds_amount
        net_amount:
          id: net_amount
          table: commerce_funds_transactions
@@ -323,6 +216,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_funds_transaction
          entity_field: net_amount
          plugin_id: commerce_funds_amount
          label: Due
          exclude: false
          alter:
@@ -368,13 +264,10 @@ display:
          precision: 0
          decimal: .
          separator: ','
          format_plural: 0
          format_plural: false
          format_plural_string: !!binary MQNAY291bnQ=
          prefix: ''
          suffix: ''
          entity_type: commerce_funds_transaction
          entity_field: net_amount
          plugin_id: commerce_funds_amount
        method:
          id: method
          table: commerce_funds_transactions
@@ -382,6 +275,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_funds_transaction
          entity_field: method
          plugin_id: field
          label: Method
          exclude: false
          alter:
@@ -437,9 +333,6 @@ display:
          multi_type: separator
          separator: ', '
          field_api_classes: false
          entity_type: commerce_funds_transaction
          entity_field: method
          plugin_id: field
        status:
          id: status
          table: commerce_funds_transactions
@@ -447,6 +340,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_funds_transaction
          entity_field: status
          plugin_id: field
          label: Status
          exclude: false
          alter:
@@ -502,19 +398,106 @@ display:
          multi_type: separator
          separator: ', '
          field_api_classes: false
      pager:
        type: mini
        options:
          offset: 0
          items_per_page: 10
          total_pages: null
          id: 0
          tags:
            next: ››
            previous: ‹‹
          expose:
            items_per_page: false
            items_per_page_label: 'Items per page'
            items_per_page_options: '5, 10, 25, 50'
            items_per_page_options_all: false
            items_per_page_options_all_label: '- All -'
            offset: false
            offset_label: Offset
      exposed_form:
        type: basic
        options:
          submit_button: Apply
          reset_button: false
          reset_button_label: Reset
          exposed_sorts_label: 'Sort by'
          expose_sort_order: true
          sort_asc_label: Asc
          sort_desc_label: Desc
      access:
        type: perm
        options:
          perm: 'withdraw funds'
      cache:
        type: tag
        options: {  }
      empty: {  }
      sorts:
        created:
          id: created
          table: commerce_funds_transactions
          field: created
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_funds_transaction
          entity_field: status
          plugin_id: field
          entity_field: created
          plugin_id: date
          order: DESC
          expose:
            label: ''
            field_identifier: created
          exposed: false
          granularity: second
      arguments:
        issuer:
          id: issuer
          table: commerce_funds_transactions
          field: issuer
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_funds_transaction
          entity_field: issuer
          plugin_id: numeric
          default_action: default
          exception:
            value: all
            title_enable: false
            title: All
          title_enable: false
          title: ''
          default_argument_type: current_user
          default_argument_options: {  }
          default_argument_skip_url: false
          summary_options:
            base_path: ''
            count: true
            override: false
            items_per_page: 25
          summary:
            sort_order: asc
            number_of_records: 0
            format: default_summary
          specify_validation: false
          validate:
            type: none
            fail: 'not found'
          validate_options: {  }
          break_phrase: false
          not: false
      filters:
        type:
          id: type
          table: commerce_funds_transactions
          field: type
          value:
            withdrawal_request: withdrawal_request
          entity_type: commerce_funds_transaction
          entity_field: type
          plugin_id: commerce_entity_bundle
          value:
            withdrawal_request: withdrawal_request
          expose:
            operator_limit_selection: false
            operator_list: {  }
@@ -525,6 +508,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_funds_transaction
          entity_field: status
          plugin_id: string
          operator: '!='
          value: Pending
          group: 1
@@ -535,6 +521,8 @@ display:
            description: ''
            use_operator: false
            operator: ''
            operator_limit_selection: false
            operator_list: {  }
            identifier: ''
            required: false
            remember: false
@@ -542,8 +530,6 @@ display:
            remember_roles:
              authenticated: authenticated
            placeholder: ''
            operator_limit_selection: false
            operator_list: {  }
          is_grouped: false
          group_info:
            label: ''
@@ -556,26 +542,80 @@ display:
            default_group: All
            default_group_multiple: {  }
            group_items: {  }
          entity_type: commerce_funds_transaction
          entity_field: status
          plugin_id: string
      sorts:
      style:
        type: table
        options:
          grouping: {  }
          row_class: ''
          default_row_class: true
          columns:
            created: created
            brut_amount: brut_amount
            fee: fee
            net_amount: net_amount
            method: method
            status: status
          default: '-1'
          info:
            created:
          id: created
          table: commerce_funds_transactions
          field: created
          relationship: none
          group_type: group
          admin_label: ''
          order: DESC
          exposed: false
          expose:
            label: ''
          granularity: second
          entity_type: commerce_funds_transaction
          entity_field: created
          plugin_id: date
      title: 'Your withdrawal requests'
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            brut_amount:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            fee:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            net_amount:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            method:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            status:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
          override: true
          sticky: false
          summary: ''
          empty_table: true
          caption: ''
          description: ''
      row:
        type: fields
      query:
        type: views_query
        options:
          query_comment: ''
          disable_sql_rewrite: false
          distinct: false
          replica: false
          query_tags: {  }
      relationships: {  }
      header:
        area:
          id: area
@@ -584,52 +624,13 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: text
          empty: true
          tokenize: false
          content:
            value: '<h2>Pending</h2>'
            format: basic_html
          plugin_id: text
          tokenize: false
      footer: {  }
      empty: {  }
      relationships: {  }
      arguments:
        issuer:
          id: issuer
          table: commerce_funds_transactions
          field: issuer
          relationship: none
          group_type: group
          admin_label: ''
          default_action: default
          exception:
            value: all
            title_enable: false
            title: All
          title_enable: false
          title: ''
          default_argument_type: current_user
          default_argument_options: {  }
          default_argument_skip_url: false
          summary_options:
            base_path: ''
            count: true
            items_per_page: 25
            override: false
          summary:
            sort_order: asc
            number_of_records: 0
            format: default_summary
          specify_validation: false
          validate:
            type: none
            fail: 'not found'
          validate_options: {  }
          break_phrase: false
          not: false
          entity_type: commerce_funds_transaction
          entity_field: issuer
          plugin_id: numeric
      display_extenders: {  }
    cache_metadata:
      max-age: -1
@@ -642,24 +643,21 @@ display:
        - user.permissions
      tags: {  }
  pending_requests:
    display_plugin: page
    id: pending_requests
    display_title: 'Pending withdrawal requests'
    display_plugin: page
    position: 1
    display_options:
      display_extenders: {  }
      path: user/funds/withdrawals
      display_description: 'Display user pending withdrawal requests.'
      filters:
        type:
          id: type
          table: commerce_funds_transactions
          field: type
          value:
            withdrawal_request: withdrawal_request
          entity_type: commerce_funds_transaction
          entity_field: type
          plugin_id: commerce_entity_bundle
          value:
            withdrawal_request: withdrawal_request
          expose:
            operator_limit_selection: false
            operator_list: {  }
@@ -670,6 +668,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_funds_transaction
          entity_field: status
          plugin_id: string
          operator: '='
          value: Pending
          group: 1
@@ -680,6 +681,8 @@ display:
            description: ''
            use_operator: false
            operator: ''
            operator_limit_selection: false
            operator_list: {  }
            identifier: ''
            required: false
            remember: false
@@ -687,8 +690,6 @@ display:
            remember_roles:
              authenticated: authenticated
            placeholder: ''
            operator_limit_selection: false
            operator_list: {  }
          is_grouped: false
          group_info:
            label: ''
@@ -701,16 +702,16 @@ display:
            default_group: All
            default_group_multiple: {  }
            group_items: {  }
          entity_type: commerce_funds_transaction
          entity_field: status
          plugin_id: string
      defaults:
        filters: false
        filter_groups: false
      filter_groups:
        operator: AND
        groups:
          1: AND
      defaults:
        filters: false
        filter_groups: false
      display_description: 'Display user pending withdrawal requests.'
      display_extenders: {  }
      path: user/funds/withdrawals
    cache_metadata:
      max-age: -1
      contexts:
@@ -722,16 +723,14 @@ display:
        - user.permissions
      tags: {  }
  previous_requests:
    display_plugin: attachment
    id: previous_requests
    display_title: 'Previous withdrawal requests (Attachment)'
    display_plugin: attachment
    position: 2
    display_options:
      display_extenders: {  }
      defaults:
        header: false
      display_description: 'Display previous user withdrawal requests.'
      displays:
        pending_requests: pending_requests
      attachment_position: after
      header:
        area:
          id: area
@@ -740,14 +739,16 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: text
          empty: true
          tokenize: false
          content:
            value: '<h2>Past requests</h2>'
            format: basic_html
          plugin_id: text
      defaults:
        header: false
          tokenize: false
      display_extenders: {  }
      displays:
        pending_requests: pending_requests
      attachment_position: after
    cache_metadata:
      max-age: -1
      contexts:
+21 −0
Original line number Diff line number Diff line
@@ -215,3 +215,24 @@ field.field_settings.commerce_funds_transaction:
    enable_notes:
      type: boolean
      label: 'Display notes for the transaction'
    available_currencies:
      type: sequence
      label: 'Available currencies'
      orderby: value
      sequence:
        type: string
    handler:
      type: string
      label: 'A string to identigy the handler instance in the admin UI.'
    handler_settings:
      type: sequence
      label: 'An array of the handler definition.'

field.storage_settings.commerce_funds_transaction:
  type: mapping
  label: 'Funds transaction storage'
  mapping:
    target_type:
      type: string
      label: 'The machine name of the targeted entity.'
      value: 'commerce_funds_transaction'
+15 −0
Original line number Diff line number Diff line
views.field.commerce_funds_escrow_operations:
  type: views.field.custom
  label: 'Escrow operations'

views.field.commerce_funds_balance:
  type: views.field.numeric
  label: 'Balance'

views.field.commerce_funds_amount:
  type: views.field.numeric
  label: 'Amount'

views.field.commerce_funds_withdrawal_operations:
  type: views.field.custom
  label: 'Withdrawal operations'
Loading