Config for new invoicing fields

This commit is contained in:
naomi 2022-05-10 07:44:23 +01:00
parent cd8ba6b36c
commit e1fe121f2e
10 changed files with 201 additions and 60 deletions

View File

@ -5,12 +5,15 @@ dependencies:
config: config:
- field.field.oc_case.project.feeds_item - field.field.oc_case.project.feeds_item
- field.field.oc_case.project.field_contract_signed_date - 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 - opencase_cases.oc_case_type.project
module: module:
- datetime - datetime
- file - file
- hide_revision_field - hide_revision_field
- link
id: oc_case.project.default id: oc_case.project.default
targetEntityType: oc_case targetEntityType: oc_case
bundle: project bundle: project
@ -28,6 +31,32 @@ content:
region: content region: content
settings: { } settings: { }
third_party_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: files:
type: file_generic type: file_generic
weight: 1 weight: 1
@ -56,7 +85,6 @@ content:
third_party_settings: { } third_party_settings: { }
hidden: hidden:
feeds_item: true feeds_item: true
field_fee: true
name: true name: true
notes: true notes: true
oc_target: true oc_target: true

View File

@ -5,11 +5,14 @@ dependencies:
config: config:
- field.field.oc_case.project.feeds_item - field.field.oc_case.project.feeds_item
- field.field.oc_case.project.field_contract_signed_date - 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 - opencase_cases.oc_case_type.project
module: module:
- datetime - datetime
- file - file
- link
- user - user
id: oc_case.project.default id: oc_case.project.default
targetEntityType: oc_case targetEntityType: oc_case
@ -32,12 +35,12 @@ content:
settings: settings:
link: true link: true
third_party_settings: { } third_party_settings: { }
weight: 5 weight: 8
region: content region: content
fees: fees:
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
weight: 2 weight: 5
region: content region: content
field_contract_signed_date: field_contract_signed_date:
type: datetime_default type: datetime_default
@ -46,7 +49,34 @@ content:
timezone_override: '' timezone_override: ''
format_type: short format_type: short
third_party_settings: { } 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 region: content
files: files:
type: file_default type: file_default
@ -54,7 +84,7 @@ content:
settings: settings:
use_description_as_link_text: true use_description_as_link_text: true
third_party_settings: { } third_party_settings: { }
weight: 8 weight: 11
region: content region: content
total_fee: total_fee:
type: number_decimal type: number_decimal
@ -65,25 +95,24 @@ content:
scale: 2 scale: 2
prefix_suffix: true prefix_suffix: true
third_party_settings: { } third_party_settings: { }
weight: 3 weight: 6
region: content region: content
trainings: trainings:
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
weight: 4 weight: 7
region: content region: content
user_id: user_id:
type: author type: author
label: above label: above
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
weight: 7 weight: 10
region: content region: content
hidden: hidden:
changed: true changed: true
created: true created: true
feeds_item: true feeds_item: true
field_fee: true
name: true name: true
notes: true notes: true
oc_target: true oc_target: true

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,24 +1,23 @@
uuid: 540a147e-eb93-474f-b77c-62380d0eadc9 uuid: f94656f9-410c-4fac-9e78-72e719c7a91c
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
module: module:
- entity_reference_revisions
- field_permissions - field_permissions
- opencase_cases - opencase_cases
- paragraphs - taxonomy
third_party_settings: third_party_settings:
field_permissions: field_permissions:
permission_type: public permission_type: public
id: oc_case.field_fee id: oc_case.field_invoicing_status
field_name: field_fee field_name: field_invoicing_status
entity_type: oc_case entity_type: oc_case
type: entity_reference_revisions type: entity_reference
settings: settings:
target_type: paragraph target_type: taxonomy_term
module: entity_reference_revisions module: core
locked: false locked: false
cardinality: -1 cardinality: 1
translatable: true translatable: true
indexes: { } indexes: { }
persist_with_no_fields: false persist_with_no_fields: false

View File

@ -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

View File

@ -0,0 +1,8 @@
uuid: c8f89b5c-1d2c-47db-89aa-d9c274b89a43
langcode: en
status: true
dependencies: { }
name: 'Invoicing statuses'
vid: invoicing_statuses
description: ''
weight: 0