Skip to content

Commit

Permalink
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
eldy committed Sep 18, 2021
2 parents 6c37836 + a2db39e commit f054743
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/actions_addupdatedelete.inc.php
Expand Up @@ -87,7 +87,7 @@
$value = $tmparraykey[GETPOST($key)].','.GETPOST($key.'2');
} else {
if ($key == 'lang') {
$value = GETPOST($key, 'aZ09');
$value = GETPOST($key, 'aZ09')?GETPOST($key, 'aZ09'):"";
} else {
$value = GETPOST($key, 'alphanohtml');
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/movement/doc/pdf_standard.modules.php
Expand Up @@ -35,7 +35,7 @@
/**
* Class to build documents using ODF templates generator
*/
class pdf_stdandard extends ModelePDFMovement
class pdf_standard extends ModelePDFMovement
{
/**
* @var DoliDb Database handler
Expand Down
2 changes: 0 additions & 2 deletions htdocs/core/modules/stock/doc/pdf_standard.modules.php
Expand Up @@ -208,8 +208,6 @@ public function write_file($object, $outputlangs, $srctemplatepath = '', $hidede
// Load traductions files required by page
$outputlangs->loadLangs(array("main", "dict", "companies", "bills", "stocks", "orders", "deliveries"));

$nblines = count($object->lines);

if ($conf->stock->dir_output) {
// Definition of $dir and $file
if ($object->specimen) {
Expand Down
4 changes: 2 additions & 2 deletions htdocs/knowledgemanagement/knowledgerecord_list.php
Expand Up @@ -226,7 +226,7 @@
// Add fields from hooks
$parameters = array();
$reshook = $hookmanager->executeHooks('printFieldListSelect', $parameters, $object); // Note that $action and $object may have been modified by hook
$sql .= preg_replace('/^,/', '', $hookmanager->resPrint);
$sql .= preg_replace('/^,/', ',', $hookmanager->resPrint);
$sql = preg_replace('/,\s*$/', '', $sql);
$sql .= " FROM ".MAIN_DB_PREFIX.$object->table_element." as t";
if (is_array($extrafields->attributes[$object->table_element]['label']) && count($extrafields->attributes[$object->table_element]['label'])) {
Expand Down Expand Up @@ -371,7 +371,7 @@

// List of mass actions available
$arrayofmassactions = array(
//'validate'=>$langs->trans("Validate"),
'validate'=>$langs->trans("Validate"),
//'generate_doc'=>$langs->trans("ReGeneratePDF"),
//'builddoc'=>$langs->trans("PDFMerge"),
//'presend'=>$langs->trans("SendByMail"),
Expand Down
19 changes: 18 additions & 1 deletion htdocs/mrp/mo_production.php
Expand Up @@ -726,6 +726,14 @@
print $langs->trans("Warehouse");
}
print '</td>';
if ($conf->productbatch->enabled) {
// Available
print '<td>';
if ($collapse || in_array($action, array('consumeorproduce', 'consumeandproduceall'))) {
print $langs->trans("Stock");
}
print '</td>';
}
// Lot - serial
if ($conf->productbatch->enabled) {
print '<td>';
Expand Down Expand Up @@ -867,8 +875,17 @@
}
print ' '.$alreadyconsumed;
print '</td>';
print '<td>'; // Warehouse
// Warehouse
print '<td>';
print '</td>';
if ($conf->stock->enabled) {
print '<td>';
if ($tmpproduct->stock_reel < ($line->qty - $alreadyconsumed)) {
print img_warning($langs->trans('StockTooLow')).' ';
}
print $tmpproduct->stock_reel; // Available
print '</td>';
}
if ($conf->productbatch->enabled) {
print '<td></td>'; // Lot
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/inventory/inventory.php
Expand Up @@ -748,7 +748,7 @@ function disablebuttonmakemovementandclose() {
print $warehouse_static->getNomUrl(1);
print '</td>';
print '<td id="id_'.$obj->rowid.'_product">';
print $product_static->getNomUrl(1);
print $product_static->getNomUrl(1).' - '.$product_static->label;
print '</td>';

if ($conf->productbatch->enabled) {
Expand Down
1 change: 1 addition & 0 deletions htdocs/product/stock/movement_list.php
Expand Up @@ -864,6 +864,7 @@

// List of mass actions available
$arrayofmassactions = array(
'generate_doc'=>img_picto('', 'pdf', 'class="pictofixedwidth"').$langs->trans("ReGeneratePDF"),
// 'presend'=>img_picto('', 'email', 'class="pictofixedwidth"').$langs->trans("SendByMail"),
// 'builddoc'=>img_picto('', 'pdf', 'class="pictofixedwidth"').$langs->trans("PDFMerge"),
);
Expand Down

0 comments on commit f054743

Please sign in to comment.