Change sample data for createThirdParty
This commit is contained in:
parent
d03d81a174
commit
0e1d83c698
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2012 Florian Henry <florian.henry@open-concept.pro>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -51,7 +52,7 @@ $authentication=array(
|
||||
'dolibarrkey'=>$conf->global->WEBSERVICES_KEY,
|
||||
'sourceapplication'=>'DEMO',
|
||||
'login'=>'admin',
|
||||
'password'=>'',
|
||||
'password'=>'changeme',
|
||||
'entity'=>'');
|
||||
|
||||
|
||||
@ -82,16 +83,16 @@ if ($action=='create')
|
||||
'status'=>'1',
|
||||
'client'=>'1',
|
||||
'supplier'=>'0',
|
||||
'address'=>'65 impasse des aulnes',
|
||||
'zip'=>'30129',
|
||||
'town'=>'Manduel',
|
||||
'address'=>'Adresse customer',
|
||||
'zip'=>'75000',
|
||||
'town'=>'Paris',
|
||||
'country_id'=>'1',//France
|
||||
'customer_code'=>'-1',//Generate code regarding module configuration
|
||||
'supplier_code'=>'0',
|
||||
'phone'=>'0141414141',
|
||||
'fax'=>'0121212121',
|
||||
'email'=>'webtest1@open-concapt.pro',
|
||||
'url'=>' www.test1.fr',
|
||||
'email'=>'webtest1@test.fr',
|
||||
'url'=>' www.test.fr',
|
||||
'profid1'=>'1111111',
|
||||
'profid2'=>'222222',
|
||||
'profid3'=>'333333',
|
||||
@ -100,9 +101,10 @@ if ($action=='create')
|
||||
'profid6'=>'66666',
|
||||
'capital'=>'3000',
|
||||
'vat_used'=>'0',
|
||||
'vat_number'=>'',
|
||||
'options_attr1'=>'Attr1 balbal',
|
||||
'options_attr2'=>'Attr2 balbal');
|
||||
'vat_number'=>''
|
||||
//,'options_attr1'=>'Attr1 balbal', //Extra field exemple where field code is attr1
|
||||
//'options_attr2'=>'Attr2 balbal' //Extra field exemple where field code is attr2
|
||||
);
|
||||
|
||||
|
||||
$parameters = array('authentication'=>$authentication,'thirdparty'=>$newthirdparty);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user