Fix: New product status was not visible on all tabs.
This commit is contained in:
parent
106d0b08dc
commit
fb918aa001
@ -307,20 +307,26 @@ else if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
|
// Ref
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
// Reference
|
|
||||||
print '<td width="15%">'.$langs->trans("Ref").'</td><td>';
|
print '<td width="15%">'.$langs->trans("Ref").'</td><td>';
|
||||||
print $html->showrefnav($product,'ref','',1,'ref');
|
print $html->showrefnav($product,'ref','',1,'ref');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Libelle
|
// Label
|
||||||
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$product->libelle.'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$product->libelle.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|||||||
@ -110,10 +110,15 @@ print '</td>';
|
|||||||
|
|
||||||
print '</tr>'."\n";
|
print '</tr>'."\n";
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
print '</td></tr>'."\n";
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
// Barcode type
|
// Barcode type
|
||||||
print '<tr><td nowrap>';
|
print '<tr><td nowrap>';
|
||||||
|
|||||||
@ -145,19 +145,24 @@ if ($product->id)
|
|||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
// Reference
|
// Ref
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td width="30%">'.$langs->trans("Ref").'</td><td colspan="3">';
|
print '<td width="30%">'.$langs->trans("Ref").'</td><td colspan="3">';
|
||||||
print $html->showrefnav($product,'ref','',1,'ref');
|
print $html->showrefnav($product,'ref','',1,'ref');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Libelle
|
// Label
|
||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td></tr>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td></tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans("NbOfAttachedFiles").'</td><td colspan="3">'.sizeof($filearray).'</td></tr>';
|
print '<tr><td>'.$langs->trans("NbOfAttachedFiles").'</td><td colspan="3">'.sizeof($filearray).'</td></tr>';
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
/**
|
/**
|
||||||
* \file htdocs/product/fiche.php
|
* \file htdocs/product/fiche.php
|
||||||
* \ingroup product
|
* \ingroup product
|
||||||
* \brief Page de la fiche produit
|
* \brief Page to show product
|
||||||
* \version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -226,8 +226,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
// Libelle
|
// Libelle
|
||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td></tr>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td></tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to buy)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2,1);
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
@ -124,9 +124,14 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|||||||
@ -267,9 +267,9 @@ else
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td>';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|||||||
@ -98,9 +98,14 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="3">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
show_stats_for_company($product,$socid);
|
show_stats_for_company($product,$socid);
|
||||||
|
|||||||
@ -93,9 +93,14 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
// Libelle
|
// Libelle
|
||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td></tr>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td></tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="3">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
show_stats_for_company($product,$socid);
|
show_stats_for_company($product,$socid);
|
||||||
|
|||||||
@ -98,9 +98,14 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="3">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
show_stats_for_company($product,$socid);
|
show_stats_for_company($product,$socid);
|
||||||
|
|||||||
@ -100,9 +100,14 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="3">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
show_stats_for_company($product,$socid);
|
show_stats_for_company($product,$socid);
|
||||||
|
|||||||
@ -101,9 +101,14 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="3">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
show_stats_for_company($product,$socid);
|
show_stats_for_company($product,$socid);
|
||||||
|
|||||||
@ -80,12 +80,17 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Libelle
|
// Label
|
||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td></tr>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td></tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="3">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -95,9 +95,14 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="3">'.$product->libelle.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="3">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
show_stats_for_company($product,$socid);
|
show_stats_for_company($product,$socid);
|
||||||
|
|||||||
@ -170,9 +170,14 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$product->libelle.'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$product->libelle.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Statut
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td>';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2,0);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Status (to buy)
|
||||||
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||||
|
print $product->getLibStatut(2,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Stock physique
|
// Stock physique
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user