# adminus_crm_customer_pick

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

# Prologue

Panels offers searching for customers in Adminus CRM and store their ids to variable. You can choose whether you want a basic list view mode or table view for bigger amounts of customers.

# Preview

# Configuration

adminus_crm_customer_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
		# Stores selected customers ids
		variable: customers

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

		# Optional | Default - ""
		# Defines the default value of the search query
		default_query: "mesto:Jicin"

		# Optional | Default - false
		# Whether query can be changed. If set to true 'default_query' param must be specified.
		# If set to true, user cannot change the query and only default query will be executed.
		lock_query: false

		# View settings
		view:
			# Optional | Default -["Name %s (%s)", assembled_name , card]
			# Customer label that will be displayed in customers 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
			label: ["Name %s (%s)", assembled_name , card]

			# Optional | Default - true
			# Show help button and modal
			help: true

		ui:
			# Optional | Default - null
			# Panel title
			title: Select customer from Adminus CRM
		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
45
46
47
48
49
50
51