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