'fax', 'email', 'taxnumber', 'street', 'zipcode' , 'city',
'business', 'payment', 'invnumber', 'ordnumber', 'quonumber', 'salesman',
'country', 'gln', 'insertdate', 'pricegroup', 'contact_origin', 'invoice_mail',
- 'creditlimit', 'ustid', 'commercial_court'
+ 'creditlimit', 'ustid', 'commercial_court', 'delivery_order_mail'
);
my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
'insertdate' => { 'text' => $locale->text('Insert Date'), },
'pricegroup' => { 'text' => $locale->text('Pricegroup'), },
'invoice_mail' => { 'text' => $locale->text('Email of the invoice recipient'), },
+ 'delivery_order_mail' => { 'text' => $locale->text('Email of the delivery order recipient'), },
'contact_origin' => { 'text' => $locale->text('Origin of personal data'), },
'creditlimit' => { 'text' => $locale->text('Credit Limit'), },
'ustid' => { 'text' => $locale->text('VAT ID'), },
addr_city addr_country addr_gln business_id salesman_id insertdateto insertdatefrom all
), "$form->{db}number",
map({ "cvar_$_->{name}" } @searchable_custom_variables),
+ map({'cvar_'. $_->{name} .'_from'} grep({$_->{type} eq 'date'} @searchable_custom_variables)),
+ map({'cvar_'. $_->{name} .'_to'} grep({$_->{type} eq 'date'} @searchable_custom_variables)),
map({'cvar_'. $_->{name} .'_qtyop'} grep({$_->{type} eq 'number'} @searchable_custom_variables)),
map({ "l_$_" } @columns),
);