# adminus_crm_contract_pick

Name adminus_crm_contract_pick
Type panel
Version 1.0
Since 2020-01-01

# Prologue

CRM Contract pick panel allows user to pick one or more contracts of customers listed in customers variable.

# Preview

# Configuration

adminus_crm_contract_pick:
	render: {width: 6}
	config:

		# Required
		# LPL support
		# Variable containing API connection with user credentials as DSN string
		# For example: https://user:pass@crm.ispalliance.cz/api/
		connection: "'https://username:password@host'"

		# Required
		# Variable containing the single id or list of customers ids (previously used as variable in adminus_crm_customer_pick panel)
		customers: customers

		# Required
		# Stores selected contracts ids
		variable: contracts

		# Optional | Default - false
		# Whether you can pick more then 1 contract
		multiple: false

		# View settings
		view:

			# Required
			# Contract label values that will be displayed in contracts pick table
			# Usage is same as usage of php sprintf function
			# First param is the message string (use %s as placeholder for param)
			# Following string params are customer properties that shall be filled into message string
			# You can use `phones.number` etc. for repetitive keys
			# You can use `customer` key for accessing customer data eg. `customer.assembled_name`
			label: ["%s (%s) no. %s", attribute_set_name, customer.assembled_name, id]

		ui:
			# Optional | Default - null
			# Panel title
			title: Select customer contracts
		filter:
			# Optional | Default - false
			# config variable which allow to set filter active
			# values: true - only active data are showed
			#         false - all data
			onlyActive: true
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44