Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
07a8d00d40
@ -893,13 +893,13 @@ class ProductFournisseur extends Product
|
||||
$langs->load("suppliers");
|
||||
if (count($productFournList) > 0) {
|
||||
$out .= '<table class="nobordernopadding" width="100%">';
|
||||
$out .= '<tr><td class="liste_titre" align="right">'.($showunitprice?$langs->trans("Price").' '.$langs->trans("HT"):'').'</td>';
|
||||
$out .= '<td class="liste_titre" align="right">'.($showunitprice?$langs->trans("QtyMin"):'').'</td>';
|
||||
$out .= '<tr><td class="liste_titre right">'.($showunitprice?$langs->trans("Price").' '.$langs->trans("HT"):'').'</td>';
|
||||
$out .= '<td class="liste_titre right">'.($showunitprice?$langs->trans("QtyMin"):'').'</td>';
|
||||
$out .= '<td class="liste_titre">'.$langs->trans("Supplier").'</td>';
|
||||
$out .= '<td class="liste_titre">'.$langs->trans("SupplierRef").'</td></tr>';
|
||||
foreach ($productFournList as $productFourn) {
|
||||
$out.= '<tr><td align="right">'.($showunitprice?price($productFourn->fourn_unitprice * (1 -$productFourn->fourn_remise_percent/100) - $productFourn->fourn_remise):'').'</td>';
|
||||
$out.= '<td align="right">'.($showunitprice?$productFourn->fourn_qty:'').'</td>';
|
||||
$out.= '<tr><td class="right">'.($showunitprice?price($productFourn->fourn_unitprice * (1 -$productFourn->fourn_remise_percent/100) - $productFourn->fourn_remise):'').'</td>';
|
||||
$out.= '<td class="right">'.($showunitprice?$productFourn->fourn_qty:'').'</td>';
|
||||
$out.= '<td>'.$productFourn->getSocNomUrl(1, 'supplier', $maxlen, $notooltip).'</td>';
|
||||
$out.= '<td>'.$productFourn->fourn_ref.'<td></tr>';
|
||||
}
|
||||
@ -992,13 +992,13 @@ class ProductFournisseur extends Product
|
||||
if (count($productFournLogList) > 0) {
|
||||
$out .= '<table class="nobordernopadding" width="100%">';
|
||||
$out .= '<tr><td class="liste_titre">'.$langs->trans("Date").'</td>';
|
||||
$out .= '<td class="liste_titre" align="right">'.$langs->trans("Price").'</td>';
|
||||
//$out .= '<td class="liste_titre" align="right">'.$langs->trans("QtyMin").'</td>';
|
||||
$out .= '<td class="liste_titre right">'.$langs->trans("Price").'</td>';
|
||||
//$out .= '<td class="liste_titre right">'.$langs->trans("QtyMin").'</td>';
|
||||
$out .= '<td class="liste_titre">'.$langs->trans("User").'</td></tr>';
|
||||
foreach ($productFournLogList as $productFournLog) {
|
||||
$out.= '<tr><td align="right">'.dol_print_date($productFournLog['datec'], 'dayhour', 'tzuser').'</td>';
|
||||
$out.= '<td align="right">'.price($productFournLog['price']).'</td>';
|
||||
//$out.= '<td align="right">'.$productFournLog['quantity'].'</td>';
|
||||
$out.= '<tr><td align="class">'.dol_print_date($productFournLog['datec'], 'dayhour', 'tzuser').'</td>';
|
||||
$out.= '<td align="class">'.price($productFournLog['price']).'</td>';
|
||||
//$out.= '<td align="class">'.$productFournLog['quantity'].'</td>';
|
||||
$out.= '<td>'.$productFournLog['lastname'].'</td></tr>';
|
||||
}
|
||||
$out .= '</table>';
|
||||
|
||||
@ -111,7 +111,7 @@ print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td colspan="2">'.$langs->trans("AvailableFormats").'</td>';
|
||||
print '<td>'.$langs->trans("LibraryShort").'</td>';
|
||||
print '<td align="right">'.$langs->trans("LibraryVersion").'</td>';
|
||||
print '<td class="right">'.$langs->trans("LibraryVersion").'</td>';
|
||||
print '</tr>';
|
||||
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/modules/import/modules_import.php';
|
||||
@ -125,7 +125,7 @@ foreach($liste as $key)
|
||||
$text=$model->getDriverDescForKey($key);
|
||||
print '<td>'.$form->textwithpicto($model->getDriverLabelForKey($key), $text).'</td>';
|
||||
print '<td>'.$model->getLibLabelForKey($key).'</td>';
|
||||
print '<td class="nowrap" align="right">'.$model->getLibVersionForKey($key).'</td>';
|
||||
print '<td class="nowrap right">'.$model->getLibVersionForKey($key).'</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
|
||||
|
||||
@ -113,13 +113,13 @@ $db=getDoliDBInstance($conf->db->type, $conf->db->host, $conf->db->user, $conf->
|
||||
if ($db->connected)
|
||||
{
|
||||
print '<tr><td class="nowrap">';
|
||||
print $langs->trans("ServerConnection")." : $dolibarr_main_db_host</td><td align=\"right\">".$langs->trans("OK")."</td></tr>";
|
||||
print $langs->trans("ServerConnection")." : $dolibarr_main_db_host</td><td class=\"right\">".$langs->trans("OK")."</td></tr>";
|
||||
dolibarr_install_syslog("repair: " . $langs->transnoentities("ServerConnection") . ": " . $dolibarr_main_db_host . $langs->transnoentities("OK"));
|
||||
$ok = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<tr><td>".$langs->trans("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name)."</td><td align=\"right\">".$langs->transnoentities("Error")."</td></tr>";
|
||||
print "<tr><td>".$langs->trans("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name)."</td><td class=\"right\">".$langs->transnoentities("Error")."</td></tr>";
|
||||
dolibarr_install_syslog("repair: " . $langs->transnoentities("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name));
|
||||
$ok = 0;
|
||||
}
|
||||
@ -129,13 +129,13 @@ if ($ok)
|
||||
if($db->database_selected)
|
||||
{
|
||||
print '<tr><td class="nowrap">';
|
||||
print $langs->trans("DatabaseConnection")." : ".$dolibarr_main_db_name."</td><td align=\"right\">".$langs->trans("OK")."</td></tr>";
|
||||
print $langs->trans("DatabaseConnection")." : ".$dolibarr_main_db_name."</td><td class=\"right\">".$langs->trans("OK")."</td></tr>";
|
||||
dolibarr_install_syslog("repair: database connection successful: " . $dolibarr_main_db_name);
|
||||
$ok=1;
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<tr><td>".$langs->trans("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name)."</td><td align=\"right\">".$langs->trans("Error")."</td></tr>";
|
||||
print "<tr><td>".$langs->trans("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name)."</td><td class=\"right\">".$langs->trans("Error")."</td></tr>";
|
||||
dolibarr_install_syslog("repair: " . $langs->transnoentities("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name));
|
||||
$ok=0;
|
||||
}
|
||||
@ -147,9 +147,9 @@ if ($ok)
|
||||
$version=$db->getVersion();
|
||||
$versionarray=$db->getVersionArray();
|
||||
print '<tr><td>'.$langs->trans("ServerVersion").'</td>';
|
||||
print '<td align="right">'.$version.'</td></tr>';
|
||||
print '<td class="right">'.$version.'</td></tr>';
|
||||
dolibarr_install_syslog("repair: " . $langs->transnoentities("ServerVersion") . ": " . $version);
|
||||
//print '<td align="right">'.join('.',$versionarray).'</td></tr>';
|
||||
//print '<td class="right">'.join('.',$versionarray).'</td></tr>';
|
||||
}
|
||||
|
||||
$conf->setValues($db);
|
||||
@ -206,7 +206,7 @@ if ($ok && GETPOST('standard', 'alpha'))
|
||||
foreach($filelist as $file)
|
||||
{
|
||||
print '<tr><td class="nowrap">*** ';
|
||||
print $langs->trans("Script").'</td><td align="right">'.$file.'</td></tr>';
|
||||
print $langs->trans("Script").'</td><td class="right">'.$file.'</td></tr>';
|
||||
|
||||
$name = substr($file, 0, dol_strlen($file) - 4);
|
||||
|
||||
|
||||
@ -125,11 +125,11 @@ if ($action == "set")
|
||||
$versionarray=$db->getVersionArray();
|
||||
print '<tr><td>'.$langs->trans("DatabaseVersion").'</td>';
|
||||
print '<td>'.$version.'</td></tr>';
|
||||
//print '<td align="right">'.join('.',$versionarray).'</td></tr>';
|
||||
//print '<td class="right">'.join('.',$versionarray).'</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("DatabaseName").'</td>';
|
||||
print '<td>'.$db->database_name.'</td></tr>';
|
||||
//print '<td align="right">'.join('.',$versionarray).'</td></tr>';
|
||||
//print '<td class="right">'.join('.',$versionarray).'</td></tr>';
|
||||
}
|
||||
|
||||
$requestnb=0;
|
||||
|
||||
@ -181,16 +181,16 @@ if (! GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'a
|
||||
$version=$db->getVersion();
|
||||
$versionarray=$db->getVersionArray();
|
||||
print '<tr><td>'.$langs->trans("ServerVersion").'</td>';
|
||||
print '<td align="right">'.$version.'</td></tr>';
|
||||
print '<td class="right">'.$version.'</td></tr>';
|
||||
dolibarr_install_syslog("upgrade: " . $langs->transnoentities("ServerVersion") . ": " .$version);
|
||||
if ($db->type == 'mysqli' && function_exists('mysqli_get_charset'))
|
||||
{
|
||||
$tmparray = $db->db->get_charset();
|
||||
print '<tr><td>'.$langs->trans("ClientCharset").'</td>';
|
||||
print '<td align="right">'.$tmparray->charset.'</td></tr>';
|
||||
print '<td class="right">'.$tmparray->charset.'</td></tr>';
|
||||
dolibarr_install_syslog("upgrade: " . $langs->transnoentities("ClientCharset") . ": " .$tmparray->charset);
|
||||
print '<tr><td>'.$langs->trans("ClientSortingCharset").'</td>';
|
||||
print '<td align="right">'.$tmparray->collation.'</td></tr>';
|
||||
print '<td class="right">'.$tmparray->collation.'</td></tr>';
|
||||
dolibarr_install_syslog("upgrade: " . $langs->transnoentities("ClientCollation") . ": " .$tmparray->collation);
|
||||
}
|
||||
|
||||
@ -201,7 +201,7 @@ if (! GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'a
|
||||
&& versioncompare($versionarray, $versionmindb) < 0)
|
||||
{
|
||||
// Warning: database version too low.
|
||||
print "<tr><td>".$langs->trans("ErrorDatabaseVersionTooLow", join('.', $versionarray), join('.', $versionmindb))."</td><td align=\"right\">".$langs->trans("Error")."</td></tr>\n";
|
||||
print "<tr><td>".$langs->trans("ErrorDatabaseVersionTooLow", join('.', $versionarray), join('.', $versionmindb))."</td><td class=\"right\">".$langs->trans("Error")."</td></tr>\n";
|
||||
dolibarr_install_syslog("upgrade: " . $langs->transnoentities("ErrorDatabaseVersionTooLow", join('.', $versionarray), join('.', $versionmindb)));
|
||||
$ok=0;
|
||||
}
|
||||
@ -228,7 +228,7 @@ if (! GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'a
|
||||
)
|
||||
{
|
||||
// Warning: database version too low.
|
||||
print '<tr><td><div class="warning">'.$langs->trans("ErrorDatabaseVersionForbiddenForMigration", join('.', $versionarray), $listofforbiddenversion)."</div></td><td align=\"right\">".$langs->trans("Error")."</td></tr>\n";
|
||||
print '<tr><td><div class="warning">'.$langs->trans("ErrorDatabaseVersionForbiddenForMigration", join('.', $versionarray), $listofforbiddenversion)."</div></td><td class=\"right\">".$langs->trans("Error")."</td></tr>\n";
|
||||
dolibarr_install_syslog("upgrade: " . $langs->transnoentities("ErrorDatabaseVersionForbiddenForMigration", join('.', $versionarray), $listofforbiddenversion));
|
||||
$ok=0;
|
||||
break;
|
||||
@ -367,7 +367,7 @@ if (! GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'a
|
||||
if (in_array($dir.$file, $listoffileprocessed)) continue;
|
||||
|
||||
print '<tr><td colspan="2"><hr></td></tr>';
|
||||
print '<tr><td class="nowrap">'.$langs->trans("ChoosedMigrateScript").'</td><td align="right">'.$file.'</td></tr>'."\n";
|
||||
print '<tr><td class="nowrap">'.$langs->trans("ChoosedMigrateScript").'</td><td class="right">'.$file.'</td></tr>'."\n";
|
||||
|
||||
// Run sql script
|
||||
$ok=run_sql($dir.$file, 0, '', 1);
|
||||
@ -401,7 +401,7 @@ if (! GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'a
|
||||
if (in_array($modulefilelong, $listoffileprocessed)) continue;
|
||||
|
||||
print '<tr><td colspan="2"><hr></td></tr>';
|
||||
print '<tr><td class="nowrap">'.$langs->trans("ChoosedMigrateScript").' (external modules)</td><td align="right">'.$modulefileshort.'</td></tr>'."\n";
|
||||
print '<tr><td class="nowrap">'.$langs->trans("ChoosedMigrateScript").' (external modules)</td><td class="right">'.$modulefileshort.'</td></tr>'."\n";
|
||||
|
||||
// Run sql script
|
||||
$okmodule=run_sql($modulefilelong, 0, '', 1); // Note: Result of migration of external module should not decide if we continue migration of Dolibarr or not.
|
||||
|
||||
@ -143,7 +143,7 @@ if (! GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'a
|
||||
|
||||
if (!$db->connected)
|
||||
{
|
||||
print '<tr><td colspan="4">'.$langs->trans("ErrorFailedToConnectToDatabase", $conf->db->name).'</td><td align="right">'.$langs->trans('Error').'</td></tr>';
|
||||
print '<tr><td colspan="4">'.$langs->trans("ErrorFailedToConnectToDatabase", $conf->db->name).'</td><td class="right">'.$langs->trans('Error').'</td></tr>';
|
||||
dolibarr_install_syslog('upgrade2: failed to connect to database :' . $conf->db->name . ' on ' . $conf->db->host . ' for user ' . $conf->db->user, LOG_ERR);
|
||||
$error++;
|
||||
}
|
||||
@ -3666,13 +3666,13 @@ function migrate_clean_association($db, $langs, $conf, $versionto)
|
||||
if (! $error)
|
||||
{
|
||||
print '<tr><td>'.$langs->trans("MigrationCategorieAssociation").'</td>';
|
||||
print '<td align="right">'.$langs->trans("RemoveDuplicates").' '.$langs->trans("Success").' ('.$num.'=>'.count($couples).')</td></tr>';
|
||||
print '<td class="right">'.$langs->trans("RemoveDuplicates").' '.$langs->trans("Success").' ('.$num.'=>'.count($couples).')</td></tr>';
|
||||
$db->commit();
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<tr><td>'.$langs->trans("MigrationCategorieAssociation").'</td>';
|
||||
print '<td align="right">'.$langs->trans("RemoveDuplicates").' '.$langs->trans("Failed").'</td></tr>';
|
||||
print '<td class="right">'.$langs->trans("RemoveDuplicates").' '.$langs->trans("Failed").'</td></tr>';
|
||||
$db->rollback();
|
||||
}
|
||||
}
|
||||
@ -3680,7 +3680,7 @@ function migrate_clean_association($db, $langs, $conf, $versionto)
|
||||
else
|
||||
{
|
||||
print '<tr><td>'.$langs->trans("Error").'</td>';
|
||||
print '<td align="right"><div class="error">'.$db->lasterror().'</div></td></tr>';
|
||||
print '<td class="right"><div class="error">'.$db->lasterror().'</div></td></tr>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,9 +68,9 @@ else dol_print_error($db, '');
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("OpenSurveyArea").'</td></tr>';
|
||||
print "<tr ".$bc[0].">";
|
||||
print '<td>'.$langs->trans("NbOfSurveys").'</td><td align="right"><a href="list.php">'.$nbsondages.'</a></td>';
|
||||
print '<td>'.$langs->trans("NbOfSurveys").'</td><td class="right"><a href="list.php">'.$nbsondages.'</a></td>';
|
||||
print "</tr>";
|
||||
//print '<tr class="liste_total"><td>'.$langs->trans("Total").'</td><td align="right">';
|
||||
//print '<tr class="liste_total"><td>'.$langs->trans("Total").'</td><td class="right">';
|
||||
//print $total;
|
||||
//print '</td></tr>';
|
||||
print '</table>';
|
||||
|
||||
@ -315,7 +315,7 @@ $parameters=array('arrayfields'=>$arrayfields);
|
||||
$reshook=$hookmanager->executeHooks('printFieldListOption', $parameters, $object); // Note that $action and $object may have been modified by hook
|
||||
print $hookmanager->resPrint;
|
||||
// Action column
|
||||
print '<td class="liste_titre" align="right">';
|
||||
print '<td class="liste_titre" class="right">';
|
||||
$searchpicto=$form->showFilterButtons();
|
||||
print $searchpicto;
|
||||
print '</td>';
|
||||
@ -401,13 +401,13 @@ while ($i < min($num, $limit))
|
||||
print '</td>';
|
||||
|
||||
// Nb of voters
|
||||
print'<td align="right">'.$nbuser.'</td>'."\n";
|
||||
print'<td class="right">'.$nbuser.'</td>'."\n";
|
||||
|
||||
print '<td align="center">'.dol_print_date($db->jdate($obj->date_fin), 'day');
|
||||
print '<td class="center">'.dol_print_date($db->jdate($obj->date_fin), 'day');
|
||||
if ($db->jdate($obj->date_fin) < $now && $obj->status == Opensurveysondage::STATUS_VALIDATED) { print img_warning($langs->trans("Expired")); }
|
||||
print '</td>';
|
||||
|
||||
print'<td align="center">'.$opensurvey_static->getLibStatut(5).'</td>'."\n";
|
||||
print'<td class="center">'.$opensurvey_static->getLibStatut(5).'</td>'."\n";
|
||||
|
||||
// Extra fields
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';
|
||||
@ -416,7 +416,7 @@ while ($i < min($num, $limit))
|
||||
$reshook=$hookmanager->executeHooks('printFieldListValue', $parameters, $object); // Note that $action and $object may have been modified by hook
|
||||
print $hookmanager->resPrint;
|
||||
// Action column
|
||||
print '<td class="nowrap" align="center">';
|
||||
print '<td class="nowrap center">';
|
||||
if ($massactionbutton || $massaction) // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
|
||||
{
|
||||
$selected=0;
|
||||
@ -437,7 +437,7 @@ if (isset($totalarray['pos']))
|
||||
while ($i < $totalarray['nbfield'])
|
||||
{
|
||||
$i++;
|
||||
if (! empty($totalarray['pos'][$i])) print '<td align="right">'.price($totalarray['val'][$totalarray['pos'][$i]]).'</td>';
|
||||
if (! empty($totalarray['pos'][$i])) print '<td class="right">'.price($totalarray['val'][$totalarray['pos'][$i]]).'</td>';
|
||||
else
|
||||
{
|
||||
if ($i == 1)
|
||||
|
||||
@ -176,7 +176,7 @@ if ($action != 'create_updater' && $action != 'edit_updater') {
|
||||
print '<td>'.$entry->code.'</td>';
|
||||
print '<td>'.$entry->description.'</td>';
|
||||
print '<td>'.price($entry->value).'</td>';
|
||||
print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=edit_variable&selection='.$entry->id.'">'.img_edit().'</a> ';
|
||||
print '<td class="right"><a href="'.$_SERVER["PHP_SELF"].'?action=edit_variable&selection='.$entry->id.'">'.img_edit().'</a> ';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=delete_variable&selection='.$entry->id.'">'.img_delete().'</a></td>';
|
||||
print '</tr>';
|
||||
}
|
||||
@ -228,7 +228,7 @@ if ($action == 'create_variable' || $action == 'edit_variable') {
|
||||
print '</table>';
|
||||
|
||||
//Form Buttons
|
||||
print '<br><div align="center">';
|
||||
print '<br><div class="center">';
|
||||
print '<input type="submit" class="button" name="save" value="'.$langs->trans("Save").'"> ';
|
||||
print '<input type="submit" class="button" name="cancel" id="cancel" value="'.$langs->trans("Cancel").'">';
|
||||
print '</div>';
|
||||
@ -267,7 +267,7 @@ if ($action != 'create_variable' && $action != 'edit_variable') {
|
||||
print '<td style="max-width: 250px; word-wrap: break-word; white-space: pre-wrap;">'.$entry->parameters.'</td>';
|
||||
print '<td>'.$entry->update_interval.'</td>';
|
||||
print '<td>'.$entry->getLastUpdated().'</td>';
|
||||
print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=edit_updater&selection='.$entry->id.'">'.img_edit().'</a> ';
|
||||
print '<td class="right"><a href="'.$_SERVER["PHP_SELF"].'?action=edit_updater&selection='.$entry->id.'">'.img_edit().'</a> ';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=delete_updater&selection='.$entry->id.'">'.img_delete().'</a></td>';
|
||||
print '</tr>';
|
||||
}
|
||||
@ -350,7 +350,7 @@ if ($action == 'create_updater' || $action == 'edit_updater') {
|
||||
print '</table>';
|
||||
|
||||
//Form Buttons
|
||||
print '<br><div align="center">';
|
||||
print '<br><div class="center">';
|
||||
print '<input type="submit" class="button" name="save" value="'.$langs->trans("Save").'"> ';
|
||||
print '<input type="submit" class="button" name="cancel" id="cancel" value="'.$langs->trans("Cancel").'">';
|
||||
print '</div>';
|
||||
|
||||
@ -304,8 +304,8 @@ print '<tr class="liste_titre">'."\n";
|
||||
print ' <td>'.$langs->trans("Name").'</td>';
|
||||
print ' <td>'.$langs->trans("Description").'</td>';
|
||||
print ' <td>'.$langs->trans("Example").'</td>';
|
||||
print ' <td align="center" width="80">'.$langs->trans("Status").'</td>';
|
||||
print ' <td align="center" width="60">'.$langs->trans("ShortInfo").'</td>';
|
||||
print ' <td class="center" width="80">'.$langs->trans("Status").'</td>';
|
||||
print ' <td class="center" width="60">'.$langs->trans("ShortInfo").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$var = true;
|
||||
@ -345,7 +345,7 @@ foreach ($dirproduct as $dirroot)
|
||||
|
||||
if (! empty($conf->global->PRODUCT_CODEPRODUCT_ADDON) && $conf->global->PRODUCT_CODEPRODUCT_ADDON == $file)
|
||||
{
|
||||
print '<td align="center">'."\n";
|
||||
print '<td class="center">'."\n";
|
||||
print img_picto($langs->trans("Activated"), 'switch_on');
|
||||
print "</td>\n";
|
||||
}
|
||||
@ -353,14 +353,14 @@ foreach ($dirproduct as $dirroot)
|
||||
{
|
||||
$disabled = false;
|
||||
if (! empty($conf->multicompany->enabled) && (is_object($mc) && ! empty($mc->sharings['referent']) && $mc->sharings['referent'] == $conf->entity) ? false : true);
|
||||
print '<td align="center">';
|
||||
print '<td class="center">';
|
||||
if (! $disabled) print '<a href="'.$_SERVER['PHP_SELF'].'?action=setcodeproduct&value='.$file.'">';
|
||||
print img_picto($langs->trans("Disabled"), 'switch_off');
|
||||
if (! $disabled) print '</a>';
|
||||
print '</td>';
|
||||
}
|
||||
|
||||
print '<td align="center">';
|
||||
print '<td class="center">';
|
||||
$s=$modCodeProduct->getToolTip($langs, null, -1);
|
||||
print $form->textwithpicto('', $s, 1);
|
||||
print '</td>';
|
||||
@ -404,10 +404,10 @@ print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Name").'</td>';
|
||||
print '<td>'.$langs->trans("Description").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Status")."</td>\n";
|
||||
print '<td align="center" width="60">'.$langs->trans("Default")."</td>\n";
|
||||
print '<td align="center" width="80">'.$langs->trans("ShortInfo").'</td>';
|
||||
print '<td align="center" width="80">'.$langs->trans("Preview").'</td>';
|
||||
print '<td class="center" width="60">'.$langs->trans("Status")."</td>\n";
|
||||
print '<td class="center" width="60">'.$langs->trans("Default")."</td>\n";
|
||||
print '<td class="center" width="80">'.$langs->trans("ShortInfo").'</td>';
|
||||
print '<td class="center" width="80">'.$langs->trans("Preview").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
clearstatcache();
|
||||
@ -458,7 +458,7 @@ foreach ($dirmodels as $reldir)
|
||||
// Active
|
||||
if (in_array($name, $def))
|
||||
{
|
||||
print '<td align="center">'."\n";
|
||||
print '<td class="center">'."\n";
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||
print img_picto($langs->trans("Enabled"), 'switch_on');
|
||||
print '</a>';
|
||||
@ -466,13 +466,13 @@ foreach ($dirmodels as $reldir)
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td align="center">'."\n";
|
||||
print '<td class="center">'."\n";
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'&scan_dir='.$module->scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'</a>';
|
||||
print "</td>";
|
||||
}
|
||||
|
||||
// Defaut
|
||||
print '<td align="center">';
|
||||
print '<td class="center">';
|
||||
if ($conf->global->PRODUCT_ADDON_PDF == $name)
|
||||
{
|
||||
print img_picto($langs->trans("Default"), 'on');
|
||||
@ -495,12 +495,12 @@ foreach ($dirmodels as $reldir)
|
||||
$htmltooltip.='<br>'.$langs->trans("MultiLanguage").': '.yn($module->option_multilang, 1, 1);
|
||||
|
||||
|
||||
print '<td align="center">';
|
||||
print '<td class="center">';
|
||||
print $form->textwithpicto('', $htmltooltip, 1, 0);
|
||||
print '</td>';
|
||||
|
||||
// Preview
|
||||
print '<td align="center">';
|
||||
print '<td class="center">';
|
||||
if ($module->type == 'pdf')
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.$name.'">'.img_object($langs->trans("Preview"), 'contract').'</a>';
|
||||
@ -540,7 +540,7 @@ print '<input type="hidden" name="action" value="other">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Parameters").'</td>'."\n";
|
||||
print '<td align="right" width="60">'.$langs->trans("Value").'</td>'."\n";
|
||||
print '<td class="right" width="60">'.$langs->trans("Value").'</td>'."\n";
|
||||
print '<td width="80"> </td></tr>'."\n";
|
||||
|
||||
|
||||
@ -557,7 +557,7 @@ if (! empty($conf->fournisseur->enabled)) $rowspan++;
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("PricingRule").'</td>';
|
||||
print '<td width="60" align="right">';
|
||||
print '<td width="60" class="right">';
|
||||
$current_rule = 'PRODUCT_PRICE_UNIQ';
|
||||
if (!empty($conf->global->PRODUIT_MULTIPRICES)) $current_rule='PRODUIT_MULTIPRICES';
|
||||
if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY)) $current_rule='PRODUIT_CUSTOMER_PRICES_BY_QTY';
|
||||
@ -568,7 +568,7 @@ if ( empty($conf->multicompany->enabled))
|
||||
{
|
||||
print $langs->trans("SamePriceAlsoForSharedCompanies");
|
||||
}
|
||||
print '</td><td align="right" rowspan="'.$rowspan.'" class="nohover">';
|
||||
print '</td><td rowspan="'.$rowspan.'" class="nohover right">';
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
@ -579,7 +579,7 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES) || ! empty($conf->global->PRODUI
|
||||
{
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("MultiPricesNumPrices").'</td>';
|
||||
print '<td align="right"><input size="3" type="text" class="flat" name="value_PRODUIT_MULTIPRICES_LIMIT" value="'.$conf->global->PRODUIT_MULTIPRICES_LIMIT.'"></td>';
|
||||
print '<td class="right"><input size="3" type="text" class="flat" name="value_PRODUIT_MULTIPRICES_LIMIT" value="'.$conf->global->PRODUIT_MULTIPRICES_LIMIT.'"></td>';
|
||||
print '</tr>';
|
||||
}
|
||||
|
||||
@ -587,7 +587,7 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES) || ! empty($conf->global->PRODUI
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("AssociatedProductsAbility").'</td>';
|
||||
print '<td width="60" align="right">';
|
||||
print '<td width="60" class="right">';
|
||||
print $form->selectyesno("PRODUIT_SOUSPRODUITS", $conf->global->PRODUIT_SOUSPRODUITS, 1);
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
@ -598,13 +598,13 @@ print '<tr class="oddeven">';
|
||||
print '<td>'.$form->textwithpicto($langs->trans("UseSearchToSelectProduct"), $langs->trans('UseSearchToSelectProductTooltip'), 1).'</td>';
|
||||
if (empty($conf->use_javascript_ajax))
|
||||
{
|
||||
print '<td class="nowrap" align="right" colspan="2">';
|
||||
print '<td class="nowrap right" colspan="2">';
|
||||
print $langs->trans("NotAvailableWhenAjaxDisabled");
|
||||
print '</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="60" align="right">';
|
||||
print '<td width="60" class="right">';
|
||||
$arrval=array(
|
||||
'0'=>$langs->trans("No"),
|
||||
'1'=>$langs->trans("Yes").' ('.$langs->trans("NumberOfKeyToSearch", 1).')',
|
||||
@ -620,14 +620,14 @@ if (empty($conf->global->PRODUIT_USE_SEARCH_TO_SELECT))
|
||||
{
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("NumberOfProductShowInSelect").'</td>';
|
||||
print '<td align="right"><input size="3" type="text" class="flat" name="value_PRODUIT_LIMIT_SIZE" value="'.$conf->global->PRODUIT_LIMIT_SIZE.'"></td>';
|
||||
print '<td class="right"><input size="3" type="text" class="flat" name="value_PRODUIT_LIMIT_SIZE" value="'.$conf->global->PRODUIT_LIMIT_SIZE.'"></td>';
|
||||
print '</tr>';
|
||||
}
|
||||
|
||||
// Visualiser description produit dans les formulaires activation/desactivation
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("ViewProductDescInFormAbility").'</td>';
|
||||
print '<td width="60" align="right">';
|
||||
print '<td width="60" class="right">';
|
||||
print $form->selectyesno("activate_viewProdDescInForm", $conf->global->PRODUIT_DESC_IN_FORM, 1);
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
@ -637,7 +637,7 @@ print '</tr>';
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("MergePropalProductCard").'</td>';
|
||||
print '<td width="60" align="right">';
|
||||
print '<td width="60" class="right">';
|
||||
print $form->selectyesno("activate_mergePropalProductCard",$conf->global->PRODUIT_PDF_MERGE_PROPAL,1);
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
@ -648,7 +648,7 @@ print '</tr>';
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("UseUnits").'</td>';
|
||||
print '<td width="60" align="right">';
|
||||
print '<td width="60" class="right">';
|
||||
print $form->selectyesno("activate_units",$conf->global->PRODUCT_USE_UNITS,1);
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
@ -659,7 +659,7 @@ if (! empty($conf->global->MAIN_MULTILANGS))
|
||||
{
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("ViewProductDescInThirdpartyLanguageAbility").'</td>';
|
||||
print '<td width="60" align="right">';
|
||||
print '<td width="60" class="right">';
|
||||
print $form->selectyesno("activate_viewProdTextsInThirdpartyLanguage", (! empty($conf->global->PRODUIT_TEXTS_IN_THIRDPARTY_LANGUAGE)?$conf->global->PRODUIT_TEXTS_IN_THIRDPARTY_LANGUAGE:0), 1);
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
@ -669,7 +669,7 @@ if (! empty($conf->fournisseur->enabled))
|
||||
{
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("UseProductFournDesc").'</td>';
|
||||
print '<td width="60" align="right">';
|
||||
print '<td width="60" class="right">';
|
||||
print $form->selectyesno("activate_useProdFournDesc", (! empty($conf->global->PRODUIT_FOURN_TEXTS)?$conf->global->PRODUIT_FOURN_TEXTS:0), 1);
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
@ -682,7 +682,7 @@ if (! empty($conf->global->PRODUCT_CANVAS_ABILITY))
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("ProductSpecial").'</td>'."\n";
|
||||
print '<td align="right" width="60">'.$langs->trans("Value").'</td>'."\n";
|
||||
print '<td class="right" width="60">'.$langs->trans("Value").'</td>'."\n";
|
||||
print '<td width="80"> </td></tr>'."\n";
|
||||
|
||||
if (is_dir($dir))
|
||||
@ -710,19 +710,19 @@ if (! empty($conf->global->PRODUCT_CANVAS_ABILITY))
|
||||
|
||||
print $object->description;
|
||||
|
||||
print '</td><td align="right">';
|
||||
print '</td><td class="right">';
|
||||
|
||||
$const = "PRODUCT_SPECIAL_".strtoupper($file);
|
||||
|
||||
if ($conf->global->$const)
|
||||
{
|
||||
print img_picto($langs->trans("Active"), 'tick');
|
||||
print '</td><td align="right">';
|
||||
print '</td><td class="right">';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&spe='.$file.'&value=0">'.$langs->trans("Disable").'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print ' </td><td align="right">';
|
||||
print ' </td><td class="right">';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&spe='.$file.'&value=1">'.$langs->trans("Activate").'</a>';
|
||||
}
|
||||
|
||||
|
||||
@ -300,13 +300,13 @@ else
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Parameters").'</td>'."\n";
|
||||
print '<td align="right" width="60">'.$langs->trans("Value").'</td>'."\n";
|
||||
print '<td class="right" width="60">'.$langs->trans("Value").'</td>'."\n";
|
||||
print '</tr>'."\n";
|
||||
|
||||
|
||||
print '<tr class="oddeven">'."\n";
|
||||
print '<td>'.$langs->trans("OldVATRates").'</td>'."\n";
|
||||
print '<td width="60" align="right">'."\n";
|
||||
print '<td width="60" class="right">'."\n";
|
||||
print $form->load_tva('oldvatrate', $oldvatrate, $mysoc, null, 0, 0, '', false, 1);
|
||||
print '</td>'."\n";
|
||||
print '</tr>'."\n";
|
||||
@ -314,7 +314,7 @@ else
|
||||
|
||||
print '<tr class="oddeven">'."\n";
|
||||
print '<td>'.$langs->trans("NewVATRates").'</td>'."\n";
|
||||
print '<td width="60" align="right">'."\n";
|
||||
print '<td width="60" class="right">'."\n";
|
||||
print $form->load_tva('newvatrate', $newvatrate, $mysoc, null, 0, 0, '', false, 1);
|
||||
print '</td>'."\n";
|
||||
print '</tr>'."\n";
|
||||
@ -323,7 +323,7 @@ else
|
||||
|
||||
print '<tr class="oddeven">'."\n";
|
||||
print '<td>'.$langs->trans("PriceBaseTypeToChange").'</td>'."\n";
|
||||
print '<td width="60" align="right">'."\n";
|
||||
print '<td width="60" class="right">'."\n";
|
||||
print $form->selectPriceBaseType($price_base_type);
|
||||
print '</td>'."\n";
|
||||
print '</tr>'."\n";
|
||||
|
||||
@ -333,11 +333,11 @@ if ($id > 0 || ! empty($ref))
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans('ComposedProduct').'</td>';
|
||||
print '<td>'.$langs->trans('Label').'</td>';
|
||||
print '<td align="right" colspan="2">'.$langs->trans('MinSupplierPrice').'</td>';
|
||||
print '<td align="right" colspan="2">'.$langs->trans('MinCustomerPrice').'</td>';
|
||||
if (! empty($conf->stock->enabled)) print '<td align="right">'.$langs->trans('Stock').'</td>';
|
||||
print '<td align="center">'.$langs->trans('Qty').'</td>';
|
||||
print '<td align="center">'.$langs->trans('ComposedProductIncDecStock').'</td>';
|
||||
print '<td class="right" colspan="2">'.$langs->trans('MinSupplierPrice').'</td>';
|
||||
print '<td class="right" colspan="2">'.$langs->trans('MinCustomerPrice').'</td>';
|
||||
if (! empty($conf->stock->enabled)) print '<td class="right">'.$langs->trans('Stock').'</td>';
|
||||
print '<td class="center">'.$langs->trans('Qty').'</td>';
|
||||
print '<td class="center">'.$langs->trans('ComposedProductIncDecStock').'</td>';
|
||||
print '</tr>'."\n";
|
||||
|
||||
$class='pair';
|
||||
@ -361,7 +361,7 @@ if ($id > 0 || ! empty($ref))
|
||||
print '<td>'.$productstatic->label.'</td>';
|
||||
|
||||
// Best buying price
|
||||
print '<td align="right">';
|
||||
print '<td class="right">';
|
||||
if ($product_fourn->find_min_price_product_fournisseur($productstatic->id) > 0)
|
||||
{
|
||||
print $langs->trans("BuyingPriceMinShort").': ';
|
||||
@ -378,7 +378,7 @@ if ($id > 0 || ! empty($ref))
|
||||
$totalline=price2num($value['nb'] * ($fourn_unitprice * (1 - $fourn_remise_percent/100) - $fourn_remise), 'MT');
|
||||
$total+=$totalline;
|
||||
|
||||
print '<td align="right">';
|
||||
print '<td class="right">';
|
||||
print ($notdefined?'':($value['nb']> 1 ? $value['nb'].'x' : '').price($fourn_unitprice, '', '', 0, 0, -1, $conf->currency));
|
||||
print '</td>';
|
||||
|
||||
@ -393,20 +393,20 @@ if ($id > 0 || ! empty($ref))
|
||||
$totallinesell=price2num($value['nb'] * ($pricesell), 'MT');
|
||||
$totalsell+=$totallinesell;
|
||||
}
|
||||
print '<td align="right" colspan="2">';
|
||||
print '<td class="right" colspan="2">';
|
||||
print ($notdefined?'':($value['nb']> 1 ? $value['nb'].'x' : ''));
|
||||
if (is_numeric($pricesell)) print price($pricesell, '', '', 0, 0, -1, $conf->currency);
|
||||
else print $langs->trans($pricesell);
|
||||
print '</td>';
|
||||
|
||||
// Stock
|
||||
if (! empty($conf->stock->enabled)) print '<td align="right">'.$value['stock'].'</td>'; // Real stock
|
||||
if (! empty($conf->stock->enabled)) print '<td class="right">'.$value['stock'].'</td>'; // Real stock
|
||||
|
||||
// Qty + IncDec
|
||||
if ($user->rights->produit->creer || $user->rights->service->creer)
|
||||
{
|
||||
print '<td align="center"><input type="text" value="'.$nb_of_subproduct.'" name="TProduct['.$productstatic->id.'][qty]" size="4" /></td>';
|
||||
print '<td align="center"><input type="checkbox" name="TProduct['.$productstatic->id.'][incdec]" value="1" '.($value['incdec']==1?'checked':'' ).' /></td>';
|
||||
print '<td class="center"><input type="text" value="'.$nb_of_subproduct.'" name="TProduct['.$productstatic->id.'][qty]" size="4" /></td>';
|
||||
print '<td class="center"><input type="checkbox" name="TProduct['.$productstatic->id.'][incdec]" value="1" '.($value['incdec']==1?'checked':'' ).' /></td>';
|
||||
}
|
||||
else{
|
||||
print '<td>'.$nb_of_subproduct.'</td>';
|
||||
@ -438,7 +438,7 @@ if ($id > 0 || ! empty($ref))
|
||||
print '<td> </td>';
|
||||
|
||||
if (! empty($conf->stock->enabled)) print '<td></td>'; // Real stock
|
||||
print '<td align="center">'.$value['nb'].'</td>';
|
||||
print '<td class="center">'.$value['nb'].'</td>';
|
||||
print '<td> </td>';
|
||||
|
||||
print '</tr>'."\n";
|
||||
@ -450,29 +450,29 @@ if ($id > 0 || ! empty($ref))
|
||||
print '<td class="liste_total"></td>';
|
||||
|
||||
// Minimum buying price
|
||||
print '<td class="liste_total" align="right">';
|
||||
print '<td class="liste_total right">';
|
||||
print $langs->trans("TotalBuyingPriceMinShort");
|
||||
print '</td>';
|
||||
|
||||
print '<td class="liste_total" align="right">';
|
||||
print '<td class="liste_total right">';
|
||||
if ($atleastonenotdefined) print $langs->trans("Unknown").' ('.$langs->trans("SomeSubProductHaveNoPrices").')';
|
||||
print ($atleastonenotdefined?'':price($total, '', '', 0, 0, -1, $conf->currency));
|
||||
print '</td>';
|
||||
|
||||
// Minimum selling price
|
||||
print '<td class="liste_total" align="right">';
|
||||
print '<td class="liste_total right">';
|
||||
print $langs->trans("TotalSellingPriceMinShort");
|
||||
print '</td>';
|
||||
|
||||
print '<td class="liste_total" align="right">';
|
||||
print '<td class="liste_total right">';
|
||||
if ($atleastonenotdefined) print $langs->trans("Unknown").' ('.$langs->trans("SomeSubProductHaveNoPrices").')';
|
||||
print ($atleastonenotdefined?'':price($totalsell, '', '', 0, 0, -1, $conf->currency));
|
||||
print '</td>';
|
||||
|
||||
// Stock
|
||||
if (! empty($conf->stock->enabled)) print '<td class="liste_total" align="right"> </td>';
|
||||
if (! empty($conf->stock->enabled)) print '<td class="liste_total right"> </td>';
|
||||
|
||||
print '<td align="right" colspan="2">';
|
||||
print '<td class="right" colspan="2">';
|
||||
if ($user->rights->produit->creer || $user->rights->service->creer)
|
||||
{
|
||||
print '<input type="submit" class="button" value="'.$langs->trans('Save').'">';
|
||||
@ -542,9 +542,9 @@ if ($id > 0 || ! empty($ref))
|
||||
print '<tr class="liste_titre">';
|
||||
print '<th class="liste_titre">'.$langs->trans("ComposedProduct").'</td>';
|
||||
print '<th class="liste_titre">'.$langs->trans("Label").'</td>';
|
||||
//print '<th class="liste_titre" align="center">'.$langs->trans("IsInPackage").'</td>';
|
||||
print '<th class="liste_titre" align="right">'.$langs->trans("Qty").'</td>';
|
||||
print '<th align="center">'.$langs->trans('ComposedProductIncDecStock').'</th>';
|
||||
//print '<th class="liste_titre center">'.$langs->trans("IsInPackage").'</td>';
|
||||
print '<th class="liste_titre right">'.$langs->trans("Qty").'</td>';
|
||||
print '<th class="center">'.$langs->trans('ComposedProductIncDecStock').'</th>';
|
||||
print '</tr>';
|
||||
if ($resql)
|
||||
{
|
||||
@ -613,13 +613,13 @@ if ($id > 0 || ! empty($ref))
|
||||
$incdec=0;
|
||||
}
|
||||
// Contained into package
|
||||
/*print '<td align="center"><input type="hidden" name="prod_id_'.$i.'" value="'.$objp->rowid.'">';
|
||||
/*print '<td class="center"><input type="hidden" name="prod_id_'.$i.'" value="'.$objp->rowid.'">';
|
||||
print '<input type="checkbox" '.$addchecked.'name="prod_id_chk'.$i.'" value="'.$objp->rowid.'"></td>';*/
|
||||
// Qty
|
||||
print '<td align="right"><input type="hidden" name="prod_id_'.$i.'" value="'.$objp->rowid.'"><input type="text" size="2" name="prod_qty_'.$i.'" value="'.($qty?$qty:'').'"></td>';
|
||||
print '<td class="right"><input type="hidden" name="prod_id_'.$i.'" value="'.$objp->rowid.'"><input type="text" size="2" name="prod_qty_'.$i.'" value="'.($qty?$qty:'').'"></td>';
|
||||
|
||||
// Inc Dec
|
||||
print '<td align="center">';
|
||||
print '<td class="center">';
|
||||
if ($qty) print '<input type="checkbox" name="prod_incdec_'.$i.'" value="1" '.($incdec?'checked':'').'>';
|
||||
else
|
||||
{
|
||||
|
||||
@ -380,7 +380,7 @@ $parameters=array('arrayfields'=>$arrayfields);
|
||||
$reshook=$hookmanager->executeHooks('printFieldListOption', $parameters, $object); // Note that $action and $object may have been modified by hook
|
||||
print $hookmanager->resPrint;
|
||||
// Action column
|
||||
print '<td class="liste_titre" align="right">';
|
||||
print '<td class="liste_titre right">';
|
||||
$searchpicto=$form->showFilterButtons();
|
||||
print $searchpicto;
|
||||
print '</td>';
|
||||
@ -486,7 +486,7 @@ if (isset($totalarray['pos']))
|
||||
while ($i < $totalarray['nbfield'])
|
||||
{
|
||||
$i++;
|
||||
if (! empty($totalarray['pos'][$i])) print '<td align="right">'.price($totalarray['val'][$totalarray['pos'][$i]]).'</td>';
|
||||
if (! empty($totalarray['pos'][$i])) print '<td class="right">'.price($totalarray['val'][$totalarray['pos'][$i]]).'</td>';
|
||||
else
|
||||
{
|
||||
if ($i == 1)
|
||||
|
||||
@ -124,44 +124,44 @@ if (empty($conf) || ! is_object($conf))
|
||||
?>
|
||||
<tr style="background-color:<?php echo ($k%2 == 0) ? '#fff':'#eee'; ?>;">
|
||||
<td class="left"> <?php echo $row['produit']; ?></td>
|
||||
<td align="center"><?php echo $row['entrepot']; ?></td>
|
||||
<td class="center"><?php echo $row['entrepot']; ?></td>
|
||||
<?php if (! empty($conf->barcode->enabled)) { ?>
|
||||
<td align="center"><?php echo $row['barcode']; ?></td>
|
||||
<td class="center"><?php echo $row['barcode']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($can_validate == 1) { ?>
|
||||
<td align="center" style="background-color: #e8e8ff;"><?php echo $row['qty_stock']; ?></td>
|
||||
<td align="right" style="background-color: #e8e8ff;"><?php echo price($row['pmp_stock']); ?></td>
|
||||
<td align="right" style="background-color: #e8e8ff;"><?php echo price($row['pa_stock']); ?></td>
|
||||
<td class="center" style="background-color: #e8e8ff;"><?php echo $row['qty_stock']; ?></td>
|
||||
<td class="right" style="background-color: #e8e8ff;"><?php echo price($row['pmp_stock']); ?></td>
|
||||
<td class="right" style="background-color: #e8e8ff;"><?php echo price($row['pa_stock']); ?></td>
|
||||
<?php
|
||||
if(!empty($conf->global->INVENTORY_USE_MIN_PA_IF_NO_LAST_PA)){
|
||||
echo '<td align="right" style="background-color: #e8e8ff;">'.price($row['current_pa_stock']).'</td>';
|
||||
echo '<td class="right" style="background-color: #e8e8ff;">'.price($row['current_pa_stock']).'</td>';
|
||||
$total_current_pa+=$row['current_pa_stock'];
|
||||
}
|
||||
|
||||
?>
|
||||
<?php } ?>
|
||||
<td align="center"><?php echo $row['qty']; ?> <span id="qty_view_<?php echo $row['k']; ?>"><?php echo $row['qty_view']; ?></span>
|
||||
<td class="center"><?php echo $row['qty']; ?> <span id="qty_view_<?php echo $row['k']; ?>"><?php echo $row['qty_view']; ?></span>
|
||||
<input type="hidden" name="det_id_<?php echo $row['k']; ?>" value="<?php echo $row['id']; ?>" />
|
||||
</td>
|
||||
<?php if ($can_validate == 1) { ?>
|
||||
<td align="right"><?php echo price($row['pmp_actual']); ?></td>
|
||||
<td class="right"><?php echo price($row['pmp_actual']); ?></td>
|
||||
<?php
|
||||
if(!empty($user->rights->stock->changePMP)) {
|
||||
echo '<td align="right">'.$row['pmp_new'].'</td>';
|
||||
echo '<td class="right">'.$row['pmp_new'].'</td>';
|
||||
}
|
||||
?>
|
||||
<td align="right"><?php echo price($row['pa_actual']); ?></td>
|
||||
<td class="right"><?php echo price($row['pa_actual']); ?></td>
|
||||
<?php
|
||||
if(!empty($conf->global->INVENTORY_USE_MIN_PA_IF_NO_LAST_PA)){
|
||||
echo '<td align="right">'.price($row['current_pa_actual']).'</td>';
|
||||
echo '<td class="right">'.price($row['current_pa_actual']).'</td>';
|
||||
$total_current_pa_actual+=$row['current_pa_actual'];
|
||||
}
|
||||
|
||||
?>
|
||||
<td align="center"><?php echo $row['qty_regulated']; ?></td>
|
||||
<td class="center"><?php echo $row['qty_regulated']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($view['is_already_validate'] != 1) { ?>
|
||||
<td align="center" width="20%"><?php echo $row['action']; ?></td>
|
||||
<td class="center" width="20%"><?php echo $row['action']; ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user