From e1fe121f2e911051c0f7b32b58ebe421ed8a348b Mon Sep 17 00:00:00 2001 From: naomi Date: Tue, 10 May 2022 07:44:23 +0100 Subject: [PATCH] Config for new invoicing fields --- ...y_form_display.oc_case.project.default.yml | 32 ++++++++++++- ...y_view_display.oc_case.project.default.yml | 47 +++++++++++++++---- .../field.field.oc_case.project.field_fee.yml | 40 ---------------- ....oc_case.project.field_invoicing_notes.yml | 19 ++++++++ ...oc_case.project.field_invoicing_status.yml | 33 +++++++++++++ ....oc_case.project.field_link_to_invoice.yml | 23 +++++++++ ....storage.oc_case.field_invoicing_notes.yml | 19 ++++++++ ...torage.oc_case.field_invoicing_status.yml} | 17 ++++--- ....storage.oc_case.field_link_to_invoice.yml | 23 +++++++++ ...taxonomy.vocabulary.invoicing_statuses.yml | 8 ++++ 10 files changed, 201 insertions(+), 60 deletions(-) delete mode 100644 config/field.field.oc_case.project.field_fee.yml create mode 100644 config/field.field.oc_case.project.field_invoicing_notes.yml create mode 100644 config/field.field.oc_case.project.field_invoicing_status.yml create mode 100644 config/field.field.oc_case.project.field_link_to_invoice.yml create mode 100644 config/field.storage.oc_case.field_invoicing_notes.yml rename config/{field.storage.oc_case.field_fee.yml => field.storage.oc_case.field_invoicing_status.yml} (54%) create mode 100644 config/field.storage.oc_case.field_link_to_invoice.yml create mode 100644 config/taxonomy.vocabulary.invoicing_statuses.yml 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 d9ca8c9..44686d6 100644 --- a/config/core.entity_form_display.oc_case.project.default.yml +++ b/config/core.entity_form_display.oc_case.project.default.yml @@ -5,12 +5,15 @@ dependencies: config: - field.field.oc_case.project.feeds_item - field.field.oc_case.project.field_contract_signed_date - - field.field.oc_case.project.field_fee + - field.field.oc_case.project.field_invoicing_notes + - field.field.oc_case.project.field_invoicing_status + - field.field.oc_case.project.field_link_to_invoice - opencase_cases.oc_case_type.project module: - datetime - file - hide_revision_field + - link id: oc_case.project.default targetEntityType: oc_case bundle: project @@ -28,6 +31,32 @@ content: region: content settings: { } third_party_settings: { } + field_invoicing_notes: + type: string_textarea + weight: 81 + region: content + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + field_invoicing_status: + type: entity_reference_autocomplete + weight: 83 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } + field_link_to_invoice: + type: link_default + weight: 84 + region: content + settings: + placeholder_url: '' + placeholder_title: '' + third_party_settings: { } files: type: file_generic weight: 1 @@ -56,7 +85,6 @@ content: third_party_settings: { } hidden: feeds_item: true - field_fee: true name: true notes: true oc_target: 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 492278b..bc70572 100644 --- a/config/core.entity_view_display.oc_case.project.default.yml +++ b/config/core.entity_view_display.oc_case.project.default.yml @@ -5,11 +5,14 @@ dependencies: config: - field.field.oc_case.project.feeds_item - field.field.oc_case.project.field_contract_signed_date - - field.field.oc_case.project.field_fee + - field.field.oc_case.project.field_invoicing_notes + - field.field.oc_case.project.field_invoicing_status + - field.field.oc_case.project.field_link_to_invoice - opencase_cases.oc_case_type.project module: - datetime - file + - link - user id: oc_case.project.default targetEntityType: oc_case @@ -32,12 +35,12 @@ content: settings: link: true third_party_settings: { } - weight: 5 + weight: 8 region: content fees: settings: { } third_party_settings: { } - weight: 2 + weight: 5 region: content field_contract_signed_date: type: datetime_default @@ -46,7 +49,34 @@ content: timezone_override: '' format_type: short third_party_settings: { } - weight: 6 + weight: 9 + region: content + field_invoicing_notes: + type: basic_string + label: above + settings: { } + third_party_settings: { } + weight: 2 + region: content + field_invoicing_status: + type: entity_reference_label + label: above + settings: + link: true + third_party_settings: { } + weight: 3 + region: content + field_link_to_invoice: + type: link + label: above + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + weight: 4 region: content files: type: file_default @@ -54,7 +84,7 @@ content: settings: use_description_as_link_text: true third_party_settings: { } - weight: 8 + weight: 11 region: content total_fee: type: number_decimal @@ -65,25 +95,24 @@ content: scale: 2 prefix_suffix: true third_party_settings: { } - weight: 3 + weight: 6 region: content trainings: settings: { } third_party_settings: { } - weight: 4 + weight: 7 region: content user_id: type: author label: above settings: { } third_party_settings: { } - weight: 7 + weight: 10 region: content hidden: changed: true created: true feeds_item: true - field_fee: true name: true notes: true oc_target: true diff --git a/config/field.field.oc_case.project.field_fee.yml b/config/field.field.oc_case.project.field_fee.yml deleted file mode 100644 index b3629bf..0000000 --- a/config/field.field.oc_case.project.field_fee.yml +++ /dev/null @@ -1,40 +0,0 @@ -uuid: 0ec431ed-c572-41c3-9796-54a5f94b2cba -langcode: en -status: true -dependencies: - config: - - field.storage.oc_case.field_fee - - opencase_cases.oc_case_type.project - - paragraphs.paragraphs_type.fee - module: - - entity_reference_revisions -id: oc_case.project.field_fee -field_name: field_fee -entity_type: oc_case -bundle: project -label: Fees -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: - handler: 'default:paragraph' - handler_settings: - negate: 0 - target_bundles: - fee: fee - target_bundles_drag_drop: - availability: - weight: 5 - enabled: false - emergency_contact: - weight: 6 - enabled: false - fee: - enabled: true - weight: 7 - trainer: - weight: 8 - enabled: false -field_type: entity_reference_revisions diff --git a/config/field.field.oc_case.project.field_invoicing_notes.yml b/config/field.field.oc_case.project.field_invoicing_notes.yml new file mode 100644 index 0000000..cc4708f --- /dev/null +++ b/config/field.field.oc_case.project.field_invoicing_notes.yml @@ -0,0 +1,19 @@ +uuid: cec8eb04-c5a8-461f-be02-3d3f5d4ed161 +langcode: en +status: true +dependencies: + config: + - field.storage.oc_case.field_invoicing_notes + - opencase_cases.oc_case_type.project +id: oc_case.project.field_invoicing_notes +field_name: field_invoicing_notes +entity_type: oc_case +bundle: project +label: 'Invoicing notes' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string_long diff --git a/config/field.field.oc_case.project.field_invoicing_status.yml b/config/field.field.oc_case.project.field_invoicing_status.yml new file mode 100644 index 0000000..536c168 --- /dev/null +++ b/config/field.field.oc_case.project.field_invoicing_status.yml @@ -0,0 +1,33 @@ +uuid: 615e68c9-6593-4720-97db-b77bdad48eb2 +langcode: en +status: true +dependencies: + config: + - field.storage.oc_case.field_invoicing_status + - opencase_cases.oc_case_type.project + - taxonomy.vocabulary.invoicing_statuses + content: + - 'taxonomy_term:invoicing_statuses:18d498c4-a77c-4724-9512-58d72f245c16' +id: oc_case.project.field_invoicing_status +field_name: field_invoicing_status +entity_type: oc_case +bundle: project +label: 'Invoicing status' +description: '' +required: false +translatable: false +default_value: + - + target_uuid: 18d498c4-a77c-4724-9512-58d72f245c16 +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + invoicing_statuses: invoicing_statuses + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/field.field.oc_case.project.field_link_to_invoice.yml b/config/field.field.oc_case.project.field_link_to_invoice.yml new file mode 100644 index 0000000..7e0a446 --- /dev/null +++ b/config/field.field.oc_case.project.field_link_to_invoice.yml @@ -0,0 +1,23 @@ +uuid: 485b2e9f-88b1-4848-839f-473f7ee02478 +langcode: en +status: true +dependencies: + config: + - field.storage.oc_case.field_link_to_invoice + - opencase_cases.oc_case_type.project + module: + - link +id: oc_case.project.field_link_to_invoice +field_name: field_link_to_invoice +entity_type: oc_case +bundle: project +label: 'Link to invoice' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + title: 0 + link_type: 16 +field_type: link diff --git a/config/field.storage.oc_case.field_invoicing_notes.yml b/config/field.storage.oc_case.field_invoicing_notes.yml new file mode 100644 index 0000000..fb5cfbe --- /dev/null +++ b/config/field.storage.oc_case.field_invoicing_notes.yml @@ -0,0 +1,19 @@ +uuid: 04d70cb8-6464-4f57-97f5-e28c0476a69f +langcode: en +status: true +dependencies: + module: + - opencase_cases +id: oc_case.field_invoicing_notes +field_name: field_invoicing_notes +entity_type: oc_case +type: string_long +settings: + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/field.storage.oc_case.field_fee.yml b/config/field.storage.oc_case.field_invoicing_status.yml similarity index 54% rename from config/field.storage.oc_case.field_fee.yml rename to config/field.storage.oc_case.field_invoicing_status.yml index bd1c542..dc8d4ca 100644 --- a/config/field.storage.oc_case.field_fee.yml +++ b/config/field.storage.oc_case.field_invoicing_status.yml @@ -1,24 +1,23 @@ -uuid: 540a147e-eb93-474f-b77c-62380d0eadc9 +uuid: f94656f9-410c-4fac-9e78-72e719c7a91c langcode: en status: true dependencies: module: - - entity_reference_revisions - field_permissions - opencase_cases - - paragraphs + - taxonomy third_party_settings: field_permissions: permission_type: public -id: oc_case.field_fee -field_name: field_fee +id: oc_case.field_invoicing_status +field_name: field_invoicing_status entity_type: oc_case -type: entity_reference_revisions +type: entity_reference settings: - target_type: paragraph -module: entity_reference_revisions + target_type: taxonomy_term +module: core locked: false -cardinality: -1 +cardinality: 1 translatable: true indexes: { } persist_with_no_fields: false diff --git a/config/field.storage.oc_case.field_link_to_invoice.yml b/config/field.storage.oc_case.field_link_to_invoice.yml new file mode 100644 index 0000000..8d38b34 --- /dev/null +++ b/config/field.storage.oc_case.field_link_to_invoice.yml @@ -0,0 +1,23 @@ +uuid: a719c93e-3463-4071-a003-7fa42ef5b7ae +langcode: en +status: true +dependencies: + module: + - field_permissions + - link + - opencase_cases +third_party_settings: + field_permissions: + permission_type: public +id: oc_case.field_link_to_invoice +field_name: field_link_to_invoice +entity_type: oc_case +type: link +settings: { } +module: link +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/taxonomy.vocabulary.invoicing_statuses.yml b/config/taxonomy.vocabulary.invoicing_statuses.yml new file mode 100644 index 0000000..eefc381 --- /dev/null +++ b/config/taxonomy.vocabulary.invoicing_statuses.yml @@ -0,0 +1,8 @@ +uuid: c8f89b5c-1d2c-47db-89aa-d9c274b89a43 +langcode: en +status: true +dependencies: { } +name: 'Invoicing statuses' +vid: invoicing_statuses +description: '' +weight: 0