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