diff --git a/build.xml b/build.xml
deleted file mode 100644
index c6995ce95f3..00000000000
--- a/build.xml
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 492a4899376..4ed39694720 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -2652,14 +2652,14 @@ class Form
if (!empty($conf->stock->enabled) && isset($objp->stock) && ($objp->fk_product_type == Product::TYPE_PRODUCT || !empty($conf->global->STOCK_SUPPORTS_SERVICES)))
{
if (!empty($user->rights->stock->lire)) {
- $opt .= ' - '.$langs->trans("Stock").':'.$objp->stock;
+ $opt .= ' - '.$langs->trans("Stock").': '.price(price2num($objp->stock, 'MS'));
if ($objp->stock > 0) {
$outval .= ' - ';
} elseif ($objp->stock <= 0) {
$outval .= ' - ';
}
- $outval .= $langs->transnoentities("Stock").':'.$objp->stock;
+ $outval .= $langs->transnoentities("Stock").': '.price(price2num($objp->stock, 'MS'));
$outval .= '';
if (empty($novirtualstock) && !empty($conf->global->STOCK_SHOW_VIRTUAL_STOCK_IN_PRODUCTS_COMBO)) // Warning, this option may slow down combo list generation
{
@@ -2989,14 +2989,14 @@ class Form
$novirtualstock = ($showstockinlist == 2);
if (!empty($user->rights->stock->lire)) {
- $outvallabel .= ' - '.$langs->trans("Stock").':'.$objp->stock;
+ $outvallabel .= ' - '.$langs->trans("Stock").': '.price(price2num($objp->stock, 'MS'));
if ($objp->stock > 0) {
$optlabel .= ' - ';
} elseif ($objp->stock <= 0) {
$optlabel .= ' - ';
}
- $optlabel .= $langs->transnoentities("Stock").':'.$objp->stock;
+ $optlabel .= $langs->transnoentities("Stock").':'.price(price2num($objp->stock, 'MS'));
$optlabel .= '';
if (empty($novirtualstock) && !empty($conf->global->STOCK_SHOW_VIRTUAL_STOCK_IN_PRODUCTS_COMBO)) // Warning, this option may slow down combo list generation
{
diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php
index f028c00d704..1c526f225aa 100644
--- a/htdocs/core/tpl/objectline_create.tpl.php
+++ b/htdocs/core/tpl/objectline_create.tpl.php
@@ -386,10 +386,10 @@ if ($nolinesbefore) {
product->enabled) || !empty($conf->service->enabled)) { ?>
-
+
- ">
+ ">
|
global->DISPLAY_MARGIN_RATES))
diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php
index cf5e4fa5b53..2aadd4b3813 100644
--- a/htdocs/product/fournisseurs.php
+++ b/htdocs/product/fournisseurs.php
@@ -490,9 +490,9 @@ if ($id > 0 || $ref)
if ($rowid)
{
print '';
- print '';
+ print '';
} else {
- print '';
+ print '';
}
print '';
print '';
diff --git a/htdocs/webservices/server_order.php b/htdocs/webservices/server_order.php
index 7f2f2ebd43f..8c278768990 100644
--- a/htdocs/webservices/server_order.php
+++ b/htdocs/webservices/server_order.php
@@ -364,6 +364,7 @@ function getOrder($authentication, $id = '', $ref = '', $ref_ext = '')
$objectresp = array();
$errorcode = ''; $errorlabel = '';
$error = 0;
+ $socid = 0;
$fuser = check_authentication($authentication, $error, $errorcode, $errorlabel);
@@ -387,7 +388,7 @@ function getOrder($authentication, $id = '', $ref = '', $ref_ext = '')
if ($result > 0)
{
// Security for external user
- if ($socid && (empty($order->socid) || $socid != $order->socid))
+ if ($socid && $socid != $order->socid)
{
$error++;
$errorcode = 'PERMISSION_DENIED'; $errorlabel = 'User does not have permission for this request';
diff --git a/htdocs/webservices/server_thirdparty.php b/htdocs/webservices/server_thirdparty.php
index 12b2d3315c8..cd930f47ad3 100644
--- a/htdocs/webservices/server_thirdparty.php
+++ b/htdocs/webservices/server_thirdparty.php
@@ -468,12 +468,12 @@ function createThirdParty($authentication, $thirdparty)
$newobject->capital = $thirdparty['capital'];
- $newobject->barcode = $thirdparty['barcode'];
- $newobject->tva_assuj = $thirdparty['vat_used'];
- $newobject->tva_intra = $thirdparty['vat_number'];
+ $newobject->barcode = empty($thirdparty['barcode']) ? '' : $thirdparty['barcode'];
+ $newobject->tva_assuj = empty($thirdparty['vat_used']) ? 0 : $thirdparty['vat_used'];
+ $newobject->tva_intra = empty($thirdparty['vat_number']) ? '' : $thirdparty['vat_number'];
- $newobject->canvas = $thirdparty['canvas'];
- $newobject->particulier = $thirdparty['individual'];
+ $newobject->canvas = empty($thirdparty['canvas']) ? '' : $thirdparty['canvas'];
+ $newobject->particulier = empty($thirdparty['individual']) ? 0 : $thirdparty['individual'];
$elementtype = 'societe';