mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0
This commit is contained in:
@@ -210,6 +210,8 @@ if (empty($reshook)) {
|
|||||||
// Remove a product line
|
// Remove a product line
|
||||||
$result = $object->deleteline($user, $lineid);
|
$result = $object->deleteline($user, $lineid);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
|
// reorder lines
|
||||||
|
$object->line_order(true);
|
||||||
// Define output language
|
// Define output language
|
||||||
$outputlangs = $langs;
|
$outputlangs = $langs;
|
||||||
$newlang = '';
|
$newlang = '';
|
||||||
|
|||||||
@@ -264,6 +264,8 @@ if (empty($reshook)) {
|
|||||||
|
|
||||||
$result = $object->deleteline(GETPOST('lineid', 'int'));
|
$result = $object->deleteline(GETPOST('lineid', 'int'));
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
|
// reorder lines
|
||||||
|
$object->line_order(true);
|
||||||
// Define output language
|
// Define output language
|
||||||
$outputlangs = $langs;
|
$outputlangs = $langs;
|
||||||
$newlang = '';
|
$newlang = '';
|
||||||
|
|||||||
@@ -639,7 +639,7 @@ function modules_prepare_head($nbofactivatedmodules, $nboftotalmodules)
|
|||||||
if ($nbofactivatedmodules <= (empty($conf->global->MAIN_MIN_NB_ENABLED_MODULE_FOR_WARNING) ? 1 : $conf->global->MAIN_MIN_NB_ENABLED_MODULE_FOR_WARNING)) { // If only minimal initial modules enabled)
|
if ($nbofactivatedmodules <= (empty($conf->global->MAIN_MIN_NB_ENABLED_MODULE_FOR_WARNING) ? 1 : $conf->global->MAIN_MIN_NB_ENABLED_MODULE_FOR_WARNING)) { // If only minimal initial modules enabled)
|
||||||
//$head[$h][1] = $form->textwithpicto($langs->trans("AvailableModules"), $desc);
|
//$head[$h][1] = $form->textwithpicto($langs->trans("AvailableModules"), $desc);
|
||||||
$head[$h][1] = $langs->trans("AvailableModules");
|
$head[$h][1] = $langs->trans("AvailableModules");
|
||||||
$head[$h][1] .= $form->textwithpicto('', $langs->trans("YouMustEnableOneModule").'.<br><br><span class="opacitymedium">'.$desc.'</span>', 1, warning);
|
$head[$h][1] .= $form->textwithpicto('', $langs->trans("YouMustEnableOneModule").'.<br><br><span class="opacitymedium">'.$desc.'</span>', 1, 'warning');
|
||||||
} else {
|
} else {
|
||||||
//$head[$h][1] = $langs->trans("AvailableModules").$form->textwithpicto('<span class="badge marginleftonly">'.$nbofactivatedmodules.' / '.$nboftotalmodules.'</span>', $desc, 1, 'help', '', 1, 3);
|
//$head[$h][1] = $langs->trans("AvailableModules").$form->textwithpicto('<span class="badge marginleftonly">'.$nbofactivatedmodules.' / '.$nboftotalmodules.'</span>', $desc, 1, 'help', '', 1, 3);
|
||||||
$head[$h][1] = $langs->trans("AvailableModules").'<span class="badge marginleftonly">'.$nbofactivatedmodules.' / '.$nboftotalmodules.'</span>';
|
$head[$h][1] = $langs->trans("AvailableModules").'<span class="badge marginleftonly">'.$nbofactivatedmodules.' / '.$nboftotalmodules.'</span>';
|
||||||
|
|||||||
@@ -1206,6 +1206,10 @@ if ($action == 'create') {
|
|||||||
print '<input name="idl'.$indiceAsked.'" type="hidden" value="'.$line->id.'">';
|
print '<input name="idl'.$indiceAsked.'" type="hidden" value="'.$line->id.'">';
|
||||||
print '<input name="qtyl'.$indiceAsked.'" id="qtyl'.$indiceAsked.'" class="qtyl center" type="text" size="4" value="'.$deliverableQty.'">';
|
print '<input name="qtyl'.$indiceAsked.'" id="qtyl'.$indiceAsked.'" class="qtyl center" type="text" size="4" value="'.$deliverableQty.'">';
|
||||||
} else {
|
} else {
|
||||||
|
if (! empty($conf->global->SHIPMENT_GETS_ALL_ORDER_PRODUCTS)) {
|
||||||
|
print '<input name="qtyl'.$indiceAsked.'" id="qtyl'.$indiceAsked.'" type="hidden" value="0">';
|
||||||
|
}
|
||||||
|
|
||||||
print $langs->trans("NA");
|
print $langs->trans("NA");
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@@ -1385,6 +1389,10 @@ if ($action == 'create') {
|
|||||||
print '<input '.$tooltip.' name="qtyl'.$indiceAsked.'_'.$subj.'" id="qtyl'.$indiceAsked.'" type="text" size="4" value="'.$deliverableQty.'">';
|
print '<input '.$tooltip.' name="qtyl'.$indiceAsked.'_'.$subj.'" id="qtyl'.$indiceAsked.'" type="text" size="4" value="'.$deliverableQty.'">';
|
||||||
print '<input name="ent1'.$indiceAsked.'_'.$subj.'" type="hidden" value="'.$warehouse_id.'">';
|
print '<input name="ent1'.$indiceAsked.'_'.$subj.'" type="hidden" value="'.$warehouse_id.'">';
|
||||||
} else {
|
} else {
|
||||||
|
if (! empty($conf->global->SHIPMENT_GETS_ALL_ORDER_PRODUCTS)) {
|
||||||
|
print '<input name="qtyl'.$indiceAsked.'_'.$subj.'" id="qtyl'.$indiceAsked.'" type="hidden" value="0">';
|
||||||
|
}
|
||||||
|
|
||||||
print $langs->trans("NA");
|
print $langs->trans("NA");
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
@@ -853,6 +853,8 @@ if (empty($reshook)) {
|
|||||||
|
|
||||||
$result = $object->deleteline($lineid);
|
$result = $object->deleteline($lineid);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
|
// reorder lines
|
||||||
|
$object->line_order(true);
|
||||||
// Define output language
|
// Define output language
|
||||||
$outputlangs = $langs;
|
$outputlangs = $langs;
|
||||||
$newlang = '';
|
$newlang = '';
|
||||||
|
|||||||
@@ -738,7 +738,7 @@ $help_url = '';
|
|||||||
// llxHeader('',$title,$help_url);
|
// llxHeader('',$title,$help_url);
|
||||||
|
|
||||||
$sql = 'SELECT';
|
$sql = 'SELECT';
|
||||||
if ($sall || $search_product_category > 0 || $search_user > 0) {
|
if ($sall || $search_product_category > 0) {
|
||||||
$sql = 'SELECT DISTINCT';
|
$sql = 'SELECT DISTINCT';
|
||||||
}
|
}
|
||||||
$sql .= ' s.rowid as socid, s.nom as name, s.town, s.zip, s.fk_pays, s.client, s.code_client, s.email,';
|
$sql .= ' s.rowid as socid, s.nom as name, s.town, s.zip, s.fk_pays, s.client, s.code_client, s.email,';
|
||||||
@@ -780,10 +780,6 @@ $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."projet as p ON p.rowid = cf.fk_projet";
|
|||||||
if ($search_sale > 0 || (empty($user->rights->societe->client->voir) && !$socid)) {
|
if ($search_sale > 0 || (empty($user->rights->societe->client->voir) && !$socid)) {
|
||||||
$sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
$sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||||
}
|
}
|
||||||
if ($search_user > 0) {
|
|
||||||
$sql .= ", ".MAIN_DB_PREFIX."element_contact as ec";
|
|
||||||
$sql .= ", ".MAIN_DB_PREFIX."c_type_contact as tc";
|
|
||||||
}
|
|
||||||
$parameters = array();
|
$parameters = array();
|
||||||
$reshook = $hookmanager->executeHooks('printFieldListFrom', $parameters, $object); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('printFieldListFrom', $parameters, $object); // Note that $action and $object may have been modified by hook
|
||||||
$sql .= $hookmanager->resPrint;
|
$sql .= $hookmanager->resPrint;
|
||||||
@@ -869,7 +865,13 @@ if ($search_sale > 0) {
|
|||||||
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = ".((int) $search_sale);
|
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = ".((int) $search_sale);
|
||||||
}
|
}
|
||||||
if ($search_user > 0) {
|
if ($search_user > 0) {
|
||||||
$sql .= " AND ec.fk_c_type_contact = tc.rowid AND tc.element='supplier_order' AND tc.source='internal' AND ec.element_id = cf.rowid AND ec.fk_socpeople = ".((int) $search_user);
|
$sql .= " AND EXISTS (";
|
||||||
|
$sql .= " SELECT ec.rowid ";
|
||||||
|
$sql .= " FROM " . MAIN_DB_PREFIX . "element_contact as ec";
|
||||||
|
$sql .= " INNER JOIN " . MAIN_DB_PREFIX . "c_type_contact as tc ON tc.rowid = ec.fk_c_type_contact";
|
||||||
|
$sql .= " WHERE ec.element_id = cf.rowid AND ec.fk_socpeople = " . ((int) $search_user);
|
||||||
|
$sql .= " AND tc.element = 'order_supplier' AND tc.source = 'internal'";
|
||||||
|
$sql .= ")";
|
||||||
}
|
}
|
||||||
if ($search_total_ht != '') {
|
if ($search_total_ht != '') {
|
||||||
$sql .= natural_search('cf.total_ht', $search_total_ht, 1);
|
$sql .= natural_search('cf.total_ht', $search_total_ht, 1);
|
||||||
|
|||||||
@@ -265,6 +265,8 @@ if (empty($reshook)) {
|
|||||||
// Remove a product line
|
// Remove a product line
|
||||||
$result = $object->deleteline($lineid);
|
$result = $object->deleteline($lineid);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
|
// reorder lines
|
||||||
|
$object->line_order(true);
|
||||||
// Define output language
|
// Define output language
|
||||||
/*$outputlangs = $langs;
|
/*$outputlangs = $langs;
|
||||||
$newlang = '';
|
$newlang = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user