| '.$langs->trans("LastCustomerOrders",($num<=$MAXLIST?"":$MAXLIST)).' | '.$langs->trans("AllOrders").' '.$num.' | ';
+ print '| '.$langs->trans("LastCustomerOrders",($num<=$MAXLIST?"":$MAXLIST)).' | '.$langs->trans("AllOrders").' '.$num.' | ';
print ''.img_picto($langs->trans("Statistics"),'stats').' | ';
//if($num2 > 0) print ''.img_picto($langs->trans("CreateInvoiceForThisCustomer"),'object_bill').' | ';
//else print ''.img_picto($langs->trans("NoOrdersToInvoice"),'object_bill').' | ';
@@ -711,7 +711,7 @@ if ($id > 0)
print '';
print '';
- print ' | ';
print ' ';
}
$i = 0;
@@ -831,7 +831,7 @@ if ($id > 0)
print '';
print '';
- print ' | ';
+ print ' | ';
print ' ';
$var=!$var;
}
@@ -896,7 +896,7 @@ if ($id > 0)
print '';
print '';
- print '| '.$langs->trans("LastCustomersBills",($num<=$MAXLIST?"":$MAXLIST)).' | '.$langs->trans("AllBills").' '.$num.' | ';
+ print ' | ';
print ' ';
diff --git a/htdocs/fourn/card.php b/htdocs/fourn/card.php
index 45d96d909a5..39f0009fbf4 100644
--- a/htdocs/fourn/card.php
+++ b/htdocs/fourn/card.php
@@ -284,7 +284,7 @@ if ($object->id > 0)
print '';
print '';
print ' ';
print ' ';
@@ -299,7 +299,7 @@ if ($object->id > 0)
print '';
print '';
print '| '.$langs->trans("ProductsAndServices").' | ';
- print ''.$langs->trans("All").' '.$object->nbOfProductRefs().'';
+ print ''.$langs->trans("All").' '.$object->nbOfProductRefs().'';
print ' | ';
//Query from product/liste.php
@@ -389,7 +389,7 @@ if ($object->id > 0)
print '';
print '| ';
print '';
print ' | ';
@@ -494,7 +494,7 @@ if ($object->id > 0)
print '';
print '| ';
print '';
print ' | ';
@@ -568,7 +568,7 @@ if ($object->id > 0)
print '';
print '';
- print '| '.$langs->trans('LastSuppliersBills',($num<=$MAXLIST?"":$MAXLIST)).' | '.$langs->trans('AllBills').' '.$num.' | ';
+ print '';
print ' ';
diff --git a/htdocs/langs/en_US/stocks.lang b/htdocs/langs/en_US/stocks.lang
index baf8fcde0db..681c1da3898 100644
--- a/htdocs/langs/en_US/stocks.lang
+++ b/htdocs/langs/en_US/stocks.lang
@@ -135,3 +135,4 @@ OpenInternal=Open for internal actions
OpenShipping=Open for shippings
OpenDispatch=Open for dispatch
UseDispatchStatus=Use dispatch status (aprouve/refuse)
+OptionMULTIPRICESIsOn=Option "several prices per segment" is on. It means a product has several selling price so value for sell can't be calculated
diff --git a/htdocs/product/composition/card.php b/htdocs/product/composition/card.php
index ef9c34f32ee..e1644c241e5 100644
--- a/htdocs/product/composition/card.php
+++ b/htdocs/product/composition/card.php
@@ -207,7 +207,7 @@ if ($id > 0 || ! empty($ref))
dol_banner_tab($object, 'ref', $linkback, ($user->societe_id?0:1), 'ref');
- print '';
+ print '';
// Nature
if($object->type!=Product::TYPE_SERVICE)
@@ -248,7 +248,8 @@ if ($id > 0 || ! empty($ref))
dol_fiche_end();
-
+ print ' ';
+
$prodsfather = $object->getFather(); // Parent Products
$object->get_sousproduits_arbo(); // Load $object->sousprods
$prods_arbo=$object->get_arbo_each_prod();
diff --git a/htdocs/product/note.php b/htdocs/product/note.php
index f771a9831c1..b3f2fa1c01c 100644
--- a/htdocs/product/note.php
+++ b/htdocs/product/note.php
@@ -104,7 +104,9 @@ if ($id > 0 || ! empty($ref))
print '';
print ' ';
- $cssclass='titlefield';
+ $cssclass='titlefield';
+ if ($action == 'editnote') $cssclass='titlefieldcreate';
+ if ($action == 'editnote_private') $cssclass='titlefieldcreate';
include DOL_DOCUMENT_ROOT.'/core/tpl/notes.tpl.php';
diff --git a/htdocs/product/price.php b/htdocs/product/price.php
index 881fa0b95f8..4e04a4c626a 100644
--- a/htdocs/product/price.php
+++ b/htdocs/product/price.php
@@ -719,7 +719,9 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES))
if (! empty($conf->global->PRODUIT_MULTIPRICES_USE_VAT_PER_LEVEL)) // using this option is a bug. kept for backward compatibility
{
// We show only vat for level 1
- print ' | ' . $langs->trans("VATRate") . ' | ' . vatrate($object->multiprices_tva_tx[1], true) . ' | ';
+ print ' | ' . $langs->trans("VATRate") . ' | ';
+ print '' . vatrate($object->multiprices_tva_tx[1], true) . ' | ';
+ print ' ';
}
else
{
@@ -732,15 +734,26 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES))
else print vatrate($object->tva_tx . ($object->tva_npr ? '*' : ''), true);
print '';
}
-
- print ' | ';
+ print ' | ';
+
+ print ' ';
+
+ print '';
+ print '| ';
print $langs->trans("PriceLevel");
if ($user->admin) print ' id.'">'.img_edit($langs->trans('EditSellingPriceLabel'),0).'';
- print ' | '.$langs->trans("SellingPrice").' | '.$langs->trans("MinPrice").' | ';
+ print '';
+ print ''.$langs->trans("SellingPrice").' | ';
+ print ''.$langs->trans("MinPrice").' | ';
+ print '';
+ $var=True;
+
for($i = 1; $i <= $conf->global->PRODUIT_MULTIPRICES_LIMIT; $i++)
{
- print '';
+ $var = ! $var;
+
+ print ' ';
// Label of price
print '| ';
@@ -789,7 +802,7 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES))
print ' | ';
// Price by quantity
- if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY))
+ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY)) // TODO Fix the form included into a tr instead of a td
{
print '| ' . $langs->trans("PriceByQuantity") . ' ' . $i;
print ' | ';
@@ -804,7 +817,8 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES))
print ' | ' . $langs->trans("Discount") . ' | ';
print ' | ';
print ' ';
- foreach ($object->prices_by_qty_list[$i] as $ii => $prices) {
+ foreach ($object->prices_by_qty_list[$i] as $ii => $prices)
+ {
if ($action == 'edit_price_by_qty' && $rowid == $prices['rowid'] && ($user->rights->produit->creer || $user->rights->service->creer)) {
print '
| |
|