From 5e2d8eac2b13bbce11fbf4a9d4094cec5a369b87 Mon Sep 17 00:00:00 2001
From: Laurent De Coninck
| '; print $tmpinvoice->getNomUrl(1, ''); print ' | '; @@ -222,15 +223,19 @@ if (!empty($conf->facture->enabled) && !empty($user->rights->facture->lire)) { print '
| '.$langs->trans('Rank').' | '; + // Product ref print ''.$langs->trans('ComposedProduct').' | '; + // Product label print ''.$langs->trans('Label').' | '; + // Min supplier price print ''.$langs->trans('MinSupplierPrice').' | '; + // Min customer price print ''.$langs->trans('MinCustomerPrice').' | '; + // Stock if (!empty($conf->stock->enabled)) { print ''.$langs->trans('Stock').' | '; } + // Qty in kit print ''.$langs->trans('Qty').' | '; + // Stoc inc/dev print ''.$langs->trans('ComposedProductIncDecStock').' | '; + // Move print ''; print ' | ||
| '.$object->sousprods[$parent_label][$value['id']][7].' | '; $notdefined = 0; $nb_of_subproduct = $value['nb']; + // Product ref print ''.$productstatic->getNomUrl(1, 'composition').' | '; + + // Product label print ''.$productstatic->label.' | '; // Best buying price @@ -423,8 +436,9 @@ if ($id > 0 || !empty($ref)) { print ''.($value['incdec'] == 1 ? 'x' : '').' | '; } - print ''; - print ' | '; + // Move action + print ''; + print ' | '; + + // Product ref print ' | '; for ($i = 0; $i < $value['level']; $i++) { print ' '; // Add indentation } print $productstatic->getNomUrl(1, 'composition').' | '; + + // Product label print ''.$productstatic->label.' | '; // Best buying price @@ -451,19 +471,36 @@ if ($id > 0 || !empty($ref)) { print ''; print ' | '; + // Stock if (!empty($conf->stock->enabled)) { print ' | '; // Real stock } + + // Qty in kit print ' | '.$value['nb'].' | '; + + // Inc/dec print ''; + + // Action move print ' | '; print ''."\n"; } } + + // Total + print ' |
| '; + + // Product ref print ' | '; + + // Product label print ' | '; // Minimum buying price @@ -495,11 +532,16 @@ if ($id > 0 || !empty($ref)) { print ' | '; } - print ' | '; + print ' | '; + + print ' | '; if ($user->rights->produit->creer || $user->rights->service->creer) { print ''; } print ' | '; + + print ''; + print ' | '; - print $obj->name_alias; + print ' | '; + print dol_escape_htmltag($obj->name_alias); print ' | '; if (!$i) { $totalarray['nbfield']++; @@ -1855,8 +1855,8 @@ if ($resql) { } // Town if (!empty($arrayfields['s.town']['checked'])) { - print ''; - print $obj->town; + print ' | '; + print dol_escape_htmltag($obj->town); print ' | '; if (!$i) { $totalarray['nbfield']++; @@ -1865,7 +1865,7 @@ if ($resql) { // Zip if (!empty($arrayfields['s.zip']['checked'])) { print ''; - print $obj->zip; + print dol_escape_htmltag($obj->zip); print ' | '; if (!$i) { $totalarray['nbfield']++; @@ -1873,7 +1873,7 @@ if ($resql) { } // State if (!empty($arrayfields['state.nom']['checked'])) { - print "".$obj->state_name." | \n"; + print "".dol_escape_htmltag($obj->state_name)." | \n"; if (!$i) { $totalarray['nbfield']++; } @@ -1936,7 +1936,7 @@ if ($resql) { // Module Source if (!empty($arrayfields['f.module_source']['checked'])) { print ''; - print $obj->module_source; + print dol_escape_htmltag($obj->module_source); print ' | '; if (!$i) { $totalarray['nbfield']++; @@ -1946,7 +1946,7 @@ if ($resql) { // POS Terminal if (!empty($arrayfields['f.pos_source']['checked'])) { print ''; - print $obj->pos_source; + print dol_escape_htmltag($obj->pos_source); print ' | '; if (!$i) { $totalarray['nbfield']++; From d064ab2b17f2317077856f6db64285c8cf187e3f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur
| '.$langs->trans("NoSupplierInvoiceToWithdraw", $langs->transnoentitiesnoconv("BankTransfer")).' | ||||||||||
| '.$langs->trans("NoSupplierInvoiceToWithdraw", $langs->transnoentitiesnoconv("BankTransfer")).' | ||||||||||
| '.$langs->trans("FeatureNotYetAvailable").' | ||||
| '.$langs->trans("FeatureNotYetAvailable").' |
| '.$langs->trans("FeatureNotYetAvailable").' | ||||
| '.$langs->trans("FeatureNotYetAvailable").' |
| '.$langs->trans("Statistics").' - '; + $result .= ' | '.$langs->trans("NbOfOpenInvoices").' - ';
if ($mode == 'customers') {
$result .= $langs->trans("CustomerInvoice");
} elseif ($mode == 'fourn' || $mode == 'suppliers') {
@@ -550,8 +550,9 @@ function getNumberInvoicesPieChart($mode)
$dolgraph->setShowLegend(2);
$dolgraph->setShowPercent(1);
$dolgraph->SetType(array('bars', 'bars', 'bars', 'bars', 'bars', 'bars'));
- $dolgraph->setHeight('180');
- $dolgraph->setWidth('500');
+ $dolgraph->setHeight('160');
+ $dolgraph->setWidth('400');
+ $dolgraph->setHideXValues(true);
if ($mode == 'customers') {
$dolgraph->draw('idgraphcustomerinvoices');
} elseif ($mode == 'fourn' || $mode == 'suppliers') {
From 704bae46a6672aa7a50260e6a6c0ca4df1ff745a Mon Sep 17 00:00:00 2001
From: Marc de Lima Lucio <68746600+marc-dll@users.noreply.github.com>
Date: Mon, 4 Oct 2021 08:51:31 +0200
Subject: [PATCH 077/117] FIX: expense report: show link to already existing
overlapping expense report without adding new parameter
---
htdocs/expensereport/class/expensereport.class.php | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/htdocs/expensereport/class/expensereport.class.php b/htdocs/expensereport/class/expensereport.class.php
index 8df8b356090..64034c10a3f 100644
--- a/htdocs/expensereport/class/expensereport.class.php
+++ b/htdocs/expensereport/class/expensereport.class.php
@@ -2195,10 +2195,9 @@ class ExpenseReport extends CommonObject
* @param User $fuser User
* @param integer $date_debut Start date
* @param integer $date_fin End date
- * @param bool $return_id True to return ID of existing expense report
* @return int <0 if KO, >0 if OK
*/
- public function periode_existe($fuser, $date_debut, $date_fin, $return_id = false)
+ public function periode_existe($fuser, $date_debut, $date_fin)
{
// phpcs:enable
$sql = "SELECT rowid, date_debut, date_fin";
@@ -2221,7 +2220,7 @@ class ExpenseReport extends CommonObject
$date_f_req = $this->db->jdate($objp->date_fin); // 4
if (!($date_f_form < $date_d_req || $date_d_form > $date_f_req)) {
- return $return_id ? $objp->rowid : 1;
+ return $objp->rowid;
}
$i++;
From 91ee704dc3a28a32988ec65162aba9a301518429 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur '; print '$dolibarr_nocsrfcheck: '.(empty($dolibarr_nocsrfcheck) ? '0' : $dolibarr_nocsrfcheck); if (!empty($dolibarr_nocsrfcheck)) { print ' '.img_picto('', 'warning').' '.$langs->trans("IfYouAreOnAProductionSetThis", 0); +} else { + print ' ('.$langs->trans("Recommended").': 0)'; } print ' '; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index d445cf8131a..b5a6c347133 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -2158,7 +2158,7 @@ NoWritableFilesFoundIntoRootDir=No writable files or directories of the common p RecommendedValueIs=Recommended: %s Recommended=Recommended NotRecommended=Not recommended -ARestrictedPath=A restricted path +ARestrictedPath=Some restricted path CheckForModuleUpdate=Check for external modules updates CheckForModuleUpdateHelp=This action will connect to editors of external modules to check if a new version is available. ModuleUpdateAvailable=An update is available From bad5d87f57e3b1006f49838ccff021354ee334e7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur ';
if ($object->status == $object::STATUS_VALIDATED) {
$qty_view = GETPOST("id_".$obj->rowid) && price2num(GETPOST("id_".$obj->rowid), 'MS') >= 0 ? GETPOST("id_".$obj->rowid) : $obj->qty_view;
- $totalfound += price2num($qty_view, 'MS');
+ if (!$hasinput && $qty_view !== null && $obj->qty_stock != $qty_view) {
+ $hasinput = true;
+ }
+
print '';
print ' | ';
print '';
@@ -777,7 +780,6 @@ if ($object->id > 0) {
print '';
} else {
print $obj->qty_view;
- $totalfound += $obj->qty_view;
print ' | ';
}
print ' | '; print img_picto('', 'product'); $form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES) ? '0' : ''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500'); - print ' '; print ' | '; } print ''.$langs->trans("NumberOfUnit").' | '; -print ''; +print ' | '; +if ($object->element == 'product' || $object->element == 'stock') { + print ''; + print ajax_combobox("mouvement"); +} +print ''; +print ' | '; print ''; // If product is a Kit, we ask if we must disable stock change of subproducts diff --git a/htdocs/product/stock/tpl/stocktransfer.tpl.php b/htdocs/product/stock/tpl/stocktransfer.tpl.php index 27c9b2acb21..3e2adf8a169 100644 --- a/htdocs/product/stock/tpl/stocktransfer.tpl.php +++ b/htdocs/product/stock/tpl/stocktransfer.tpl.php @@ -89,7 +89,7 @@ if ($object->element == 'stock') { print ''.$langs->trans("WarehouseTarget").' | '; print img_picto('', 'stock').$formproduct->selectWarehouses(GETPOST('id_entrepot_destination'), 'id_entrepot_destination', 'warehouseopen,warehouseinternal', 1); print ' | '; -print '
| '.$langs->trans("NumberOfUnit").' | '; +print ' | ||
| '.$langs->trans("NumberOfUnit").' | '; print ' | ||