diff --git a/ChangeLog b/ChangeLog
index 079219e6c7f..d422594ef83 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,7 @@ For users:
- Fix: cents for indian ruppes are calle paisa and paise.
- Fix: Invoices payments may be older than invoices.
- Fix: [ bug #1593 ] Spanish Localtax IRPF not being calculated since 3.6.0 in supplier invoices when adding a line
+- Fix: Web service categorie WDSL declaration is correct
***** ChangeLog for 3.6 compared to 3.5.* *****
For users:
diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php
index 127dcfdcc8c..2719f9e0a9b 100644
--- a/htdocs/fourn/fiche.php
+++ b/htdocs/fourn/fiche.php
@@ -48,6 +48,12 @@ $result = restrictedArea($user, 'societe&fournisseur', $id, '&societe');
$object = new Fournisseur($db);
+// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
+$hookmanager->initHooks(array('suppliercard'));
+
+$parameters = array('id' => $id);
+$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
+
/*
* Action
*/
@@ -435,34 +441,41 @@ if ($object->fetch($id))
* Barre d'actions
*/
+
print '
';
-
- if ($user->rights->fournisseur->commande->creer)
- {
- $langs->load("orders");
- print '
'.$langs->trans("AddOrder").'';
+
+ $parameters = array();
+ $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been
+ // modified by hook
+ if (empty($reshook)) {
+
+ if ($user->rights->fournisseur->commande->creer)
+ {
+ $langs->load("orders");
+ print '
'.$langs->trans("AddOrder").'';
+ }
+
+ if ($user->rights->fournisseur->facture->creer)
+ {
+ $langs->load("bills");
+ print '
'.$langs->trans("AddBill").'';
+ }
+
+ // Add action
+ if (! empty($conf->agenda->enabled) && ! empty($conf->global->MAIN_REPEATTASKONEACHTAB))
+ {
+ if ($user->rights->agenda->myactions->create)
+ {
+ print '
'.$langs->trans("AddAction").'';
+ }
+ else
+ {
+ print '
'.$langs->trans("AddAction").'';
+ }
+ }
+
+ print '
';
}
-
- if ($user->rights->fournisseur->facture->creer)
- {
- $langs->load("bills");
- print ''.$langs->trans("AddBill").'';
- }
-
- // Add action
- if (! empty($conf->agenda->enabled) && ! empty($conf->global->MAIN_REPEATTASKONEACHTAB))
- {
- if ($user->rights->agenda->myactions->create)
- {
- print ''.$langs->trans("AddAction").'';
- }
- else
- {
- print ''.$langs->trans("AddAction").'';
- }
- }
-
- print '';
print '
';
if (! empty($conf->global->MAIN_REPEATCONTACTONEACHTAB))
diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php
index e0bd0c23c48..1faa192bd0d 100644
--- a/htdocs/product/class/product.class.php
+++ b/htdocs/product/class/product.class.php
@@ -1413,6 +1413,7 @@ class Product extends CommonObject
$sql.= " weight, weight_units, length, length_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished,";
$sql.= " accountancy_code_buy, accountancy_code_sell, stock, pmp,";
$sql.= " datec, tms, import_key, entity, desiredstock, tobatch";
+ $sql.= " ,ref_ext";
$sql.= " FROM ".MAIN_DB_PREFIX."product";
if ($id) $sql.= " WHERE rowid = ".$this->db->escape($id);
else
@@ -1487,6 +1488,8 @@ class Product extends CommonObject
$this->date_modification = $obj->tms;
$this->import_key = $obj->import_key;
$this->entity = $obj->entity;
+
+ $this->ref_ext = $obj->ref_ext;
$this->db->free($resql);
diff --git a/htdocs/webservices/server_category.php b/htdocs/webservices/server_category.php
index 1b85c677175..45a8fb76a78 100644
--- a/htdocs/webservices/server_category.php
+++ b/htdocs/webservices/server_category.php
@@ -106,56 +106,41 @@ $server->wsdl->addComplexType(
'tns:categorie'
);
-/*
- * Tableau des catégories
-
-$server->wsdl->addComplexType(
- 'categories',
- 'complexType',
- 'array',
- '',
- 'SOAP-ENC:Array',
- array(),
- array(
- array('id'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:categorie[]')
- ),
- 'tns:categories'
-);
+ /*
+ * Image of product
*/
-
-/*
- * Les photos de la catégorie (un tableau indéxé qui contient les images avec leur vignette)
+ $server->wsdl->addComplexType(
+ 'PhotosArray',
+ 'complexType',
+ 'array',
+ 'sequence',
+ '',
+ array(
+ 'image' => array(
+ 'name' => 'image',
+ 'type' => 'tns:image',
+ 'minOccurs' => '0',
+ 'maxOccurs' => 'unbounded'
+ )
+ )
+ );
+
+ /*
+ * An image
*/
-$server->wsdl->addComplexType(
- 'PhotosArray',
- 'complexType',
- 'array',
- '',
- 'SOAP-ENC:Array',
- array(),
- array(
- array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:image[]')
- ),
- ''
-);
-
-/*
- * Une photo ( nom image / nom_vignette )
- */
-$server->wsdl->addComplexType(
- 'image',
- 'complexType',
- 'array',
- '',
- 'SOAP-ENC:Array',
- array(),
- array(
- 'photo' => array('name'=>'photo','type'=>'xsd:string'),
- 'photo_vignette' => array('name'=>'photo_vignette','type'=>'xsd:string'),
- 'imgWidth' => array('name'=>'imgWidth','type'=>'xsd:string'),
- 'imgHeight' => array('name'=>'imgHeight','type'=>'xsd:string')
- )
-);
+ $server->wsdl->addComplexType(
+ 'image',
+ 'complexType',
+ 'struct',
+ 'all',
+ '',
+ array(
+ 'photo' => array('name'=>'photo','type'=>'xsd:string'),
+ 'photo_vignette' => array('name'=>'photo_vignette','type'=>'xsd:string'),
+ 'imgWidth' => array('name'=>'imgWidth','type'=>'xsd:string'),
+ 'imgHeight' => array('name'=>'imgHeight','type'=>'xsd:string')
+ )
+ );
/*
* Retour