Topic: Saving dimension id with Customer registeration

Hi.

I have an issue in saving dimension id while i am creating the customer via API
Even if I pass my dimension id following the Test code below :-

const CUSTOMER_POST_DATA = array(
    'name' => 'custname',
    'debtor_ref' => 'debtor_ref',
    'address' => 'address',
    'tax_id' => 'tax_id',
    'curr_code' => 'USD',
    'credit_status' => '1',
    'payment_terms' => '1',
    'discount' => '0',
    'pymt_discount' => '0',
    'credit_limit' => '1000',
    'sales_type' => '1',
    'notes' => 'notes',
    'dimension_id' => '0',
    'dimension2_id' => '0',
    'inactive' => '0',
);

- It doesn't save the dimension id which i passed.
- So i did little bit study. And i found in Customers.php insert method line 114
        add_customer($info['name'], $info['debtor_ref'], $info['address'], $info['tax_id'], $info['curr_code'], 0, 0, $info['credit_status'], $info['payment_terms'], $info['discount'], $info['pymt_discount'], $info['credit_limit'], $info['sales_type'], $info['notes']);

The source code is putting both dimension ids as 0,0 Hardcoded.  I tried them changing with dynamic values. And it worked.
But i need to know why they are hardcoded there while they are in the given test example ?

Is there any other way to do it ?

Waiting for an answer / Regards

Re: Saving dimension id with Customer registeration

My guess is that you found a bug in the API and fixed it.

Re: Saving dimension id with Customer registeration

At the time the API was framed, dimensions may not have been available for customers.

I expect you are referring to line 111.

Re: Saving dimension id with Customer registeration

Did you replace "0, 0" with "$dimension_id, $dimension2_id" ?
Or did you put in some $info[] element?