Hi,
@julian
you are right, I mean the ImportWizard - my fault.
Here is a pic from the ImportWizard Step 3:

And this is the content of the dropdownboxes in the ImportWizard Step 3:
<option value="-1">-- Do not map this field --</option>
<option value="aim">Aim:</option>
<option value="amount">Amount:</option>
<option value="assigned_user_id">Assigned To:</option>
<option value="country">Country:</option>
<option value="created_by">Created By:</option>
<option value="date_entered">Date Entered:</option>
<option value="date_modified">Date Modified:</option>
<option value="date_start">Date from:</option>
<option value="date_end">Date to:</option>
<option value="deleted">Deleted:</option>
<option value="description">Description:</option>
<option value="destination">Destination:</option>
<option value="id">Id: *</option>
<option value="assigned_user_name">LBL_ASSIGNED_USER_NAME</option>
<option value="modified_user_id">Modified User Id:</option>
<option value="name">Name:</option>
<option value="number">No:</option>
<option value="project_id">Project Id:</option>
<option value="project_name">Project:</option>
<option value="team_id">Team:</option>
<option value="time_start">Time from:</option>
<option value="time_end">Time to:</option>
Only fields from the expenses table are listed.
Here is no field from the receipt table available and this is what I want to have.
The last 5 fields of the import file are fields from the receipt table receipts_* and these I want to import too.
As I mentioned in a previous post, in my vardef.php there are two $dictionary arrays:
Code:
$dictionary['Expense'] = array (
'table' => 'expenses',
'audited' => true,
'fields' => array (
'id' => array (
'name' => 'id',
'vname' => 'LBL_ID',
'required' => true,
'type' => 'id',
'reportable' => false,
),
'date_entered' => array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'required' => true,
),
...
...
and
$dictionary['Receipt'] = array (
'table' => 'receipts',
'audited' => true,
'fields' => array (
'id' => array (
'name' => 'id',
'vname' => 'LBL_ID',
'required' => true,
'type' => 'id',
'reportable' => false,
),
'date_entered' => array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'required' => true,
...
...
but only the fields from $dictionary['Expense'] are available in the dropdownboxes of the ImportWizard.
This fields I can control with importable = false, but as you said if importable is not explicit set to false, importable is true. But it affects only $dictionary['Expense'].
For better understanding:
One Expense can have more than one Receipt, but I think this can be handled somehow in the ImportExpenses.php - if I do get the receipt data to this point 
Hope the problem is more clear now.
Thanks for help
Andi
Bookmarks