From 0e1d83c69805fbd226da911d6e23ba0d8e03cbf1 Mon Sep 17 00:00:00 2001 From: fhenry Date: Thu, 13 Dec 2012 19:58:36 +0100 Subject: [PATCH] Change sample data for createThirdParty --- .../demo_wsclient_thirdparty.php-NORUN | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/htdocs/webservices/demo_wsclient_thirdparty.php-NORUN b/htdocs/webservices/demo_wsclient_thirdparty.php-NORUN index 9e6e2c30a6d..50b1b6fcb0c 100755 --- a/htdocs/webservices/demo_wsclient_thirdparty.php-NORUN +++ b/htdocs/webservices/demo_wsclient_thirdparty.php-NORUN @@ -1,5 +1,6 @@ + * Copyright (C) 2012 Florian Henry * * 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);