From e1a298c43dbdb7f4b03c15e65355083a4c68d56c Mon Sep 17 00:00:00 2001 From: naomi Date: Sun, 12 Sep 2021 08:52:03 +0100 Subject: [PATCH] Added total fees config & did composer update ready to deploy --- composer.lock | 4 +- ...y_form_display.oc_case.project.default.yml | 2 + ...y_view_display.oc_case.project.default.yml | 16 ++- ....field.oc_case.project.field_total_fee.yml | 23 +++ .../field.storage.oc_case.field_total_fee.yml | 24 ++++ config/views.view.projects.yml | 136 ++++++++++++++++++ 6 files changed, 201 insertions(+), 4 deletions(-) create mode 100644 config/field.field.oc_case.project.field_total_fee.yml create mode 100644 config/field.storage.oc_case.field_total_fee.yml diff --git a/composer.lock b/composer.lock index d4813c8..01a68d6 100644 --- a/composer.lock +++ b/composer.lock @@ -64,7 +64,7 @@ "source": { "type": "git", "url": "ssh://git@git.autonomic.zone:2222/autonomic-cooperative/goodnightout_opencase.git", - "reference": "a5e8e6d1de5f486b9b70ef6db85b16187c28d0f3" + "reference": "49b149fff10f1948b06df3e62ee9191980c707b8" }, "require": { "drupal/admin_toolbar": "*", @@ -81,7 +81,7 @@ "email": "helo@autonomic.zone" } ], - "time": "2021-09-11T19:10:22+00:00" + "time": "2021-09-11T20:18:35+00:00" }, { "name": "autonomic/opencase", diff --git a/config/core.entity_form_display.oc_case.project.default.yml b/config/core.entity_form_display.oc_case.project.default.yml index e0a22e1..d3d4e2f 100644 --- a/config/core.entity_form_display.oc_case.project.default.yml +++ b/config/core.entity_form_display.oc_case.project.default.yml @@ -5,6 +5,7 @@ dependencies: config: - field.field.oc_case.project.field_contract_signed_date - field.field.oc_case.project.field_fee + - field.field.oc_case.project.field_total_fee - opencase_cases.oc_case_type.project module: - datetime @@ -42,4 +43,5 @@ content: third_party_settings: { } hidden: client: true + field_total_fee: true user_id: true diff --git a/config/core.entity_view_display.oc_case.project.default.yml b/config/core.entity_view_display.oc_case.project.default.yml index 71277f0..fc91273 100644 --- a/config/core.entity_view_display.oc_case.project.default.yml +++ b/config/core.entity_view_display.oc_case.project.default.yml @@ -5,6 +5,7 @@ dependencies: config: - field.field.oc_case.project.field_contract_signed_date - field.field.oc_case.project.field_fee + - field.field.oc_case.project.field_total_fee - opencase_cases.oc_case_type.project module: - datetime @@ -42,12 +43,23 @@ content: link: '' third_party_settings: { } region: content + field_total_fee: + weight: 4 + label: above + settings: + thousand_separator: '' + decimal_separator: . + scale: 2 + prefix_suffix: true + third_party_settings: { } + type: number_decimal + region: content files: label: above settings: use_description_as_link_text: true region: content - weight: 5 + weight: 6 third_party_settings: { } type: file_default trainings: @@ -58,7 +70,7 @@ content: user_id: label: above type: author - weight: 4 + weight: 5 region: content settings: { } third_party_settings: { } diff --git a/config/field.field.oc_case.project.field_total_fee.yml b/config/field.field.oc_case.project.field_total_fee.yml new file mode 100644 index 0000000..f5c2781 --- /dev/null +++ b/config/field.field.oc_case.project.field_total_fee.yml @@ -0,0 +1,23 @@ +uuid: 244c5c44-44f0-40b8-8dc3-5a0b2119d536 +langcode: en +status: true +dependencies: + config: + - field.storage.oc_case.field_total_fee + - opencase_cases.oc_case_type.project +id: oc_case.project.field_total_fee +field_name: field_total_fee +entity_type: oc_case +bundle: project +label: 'Total fee' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + min: null + max: null + prefix: £ + suffix: '' +field_type: decimal diff --git a/config/field.storage.oc_case.field_total_fee.yml b/config/field.storage.oc_case.field_total_fee.yml new file mode 100644 index 0000000..e99e561 --- /dev/null +++ b/config/field.storage.oc_case.field_total_fee.yml @@ -0,0 +1,24 @@ +uuid: 4bb28508-5949-4bf5-9b70-97c68ab50473 +langcode: en +status: true +dependencies: + module: + - field_permissions + - opencase_cases +third_party_settings: + field_permissions: + permission_type: public +id: oc_case.field_total_fee +field_name: field_total_fee +entity_type: oc_case +type: decimal +settings: + precision: 10 + scale: 2 +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/views.view.projects.yml b/config/views.view.projects.yml index e08870c..014d97f 100644 --- a/config/views.view.projects.yml +++ b/config/views.view.projects.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.storage.oc_case.field_contract_signed_date + - field.storage.oc_case.field_total_fee - opencase_cases.oc_case_type.project - system.menu.opencase - user.role.authenticated @@ -268,6 +269,72 @@ display: separator: ', ' field_api_classes: false plugin_id: field + field_total_fee: + id: field_total_fee + table: oc_case__field_total_fee + field: field_total_fee + relationship: none + group_type: group + admin_label: '' + label: 'Total fee' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: number_decimal + settings: + thousand_separator: '' + prefix_suffix: true + decimal_separator: . + scale: 2 + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field filters: type: id: type @@ -298,6 +365,7 @@ display: - user.roles tags: - 'config:field.storage.oc_case.field_contract_signed_date' + - 'config:field.storage.oc_case.field_total_fee' block_1: display_plugin: block id: block_1 @@ -490,6 +558,72 @@ display: separator: ', ' field_api_classes: false plugin_id: field + field_total_fee: + id: field_total_fee + table: oc_case__field_total_fee + field: field_total_fee + relationship: none + group_type: group + admin_label: '' + label: 'Total fee' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: number_decimal + settings: + thousand_separator: '' + prefix_suffix: true + decimal_separator: . + scale: 2 + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field cache_metadata: max-age: -1 contexts: @@ -500,6 +634,7 @@ display: - user.roles tags: - 'config:field.storage.oc_case.field_contract_signed_date' + - 'config:field.storage.oc_case.field_total_fee' page_1: display_plugin: page id: page_1 @@ -529,3 +664,4 @@ display: - user.roles tags: - 'config:field.storage.oc_case.field_contract_signed_date' + - 'config:field.storage.oc_case.field_total_fee'