diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 32e042c5731..ef9e7f81f43 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -579,11 +579,13 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie print ''.$arraytitle.''; print ''.$langs->trans('Date').''; print ''.$langs->trans('DateMaxPayment').''; - if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('Currency').''; - if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyAmountTTC').''; - if (!empty($conf->multicurrency->enabled)) print ''.$multicurrencyalreadypayedlabel.''; - if (!empty($conf->multicurrency->enabled)) print ''.$multicurrencyremaindertopay.''; - if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyPaymentAmount').''; + if (!empty($conf->multicurrency->enabled)) { + print ''.$langs->trans('Currency').''; + print ''.$langs->trans('MulticurrencyAmountTTC').''; + print ''.$multicurrencyalreadypayedlabel.''; + print ''.$multicurrencyremaindertopay.''; + print ''.$langs->trans('MulticurrencyPaymentAmount').''; + } print ''.$langs->trans('AmountTTC').''; print ''.$alreadypayedlabel.''; print ''.$remaindertopay.''; @@ -612,8 +614,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie $remaintopay=price2num($invoice->total_ttc - $paiement - $creditnotes - $deposits,'MT'); // Multicurrency Price - if (!empty($conf->multicurrency->enabled)) - { + if (!empty($conf->multicurrency->enabled)) { $multicurrency_payment = $invoice->getSommePaiement(1); $multicurrency_creditnotes=$invoice->getSumCreditNotesUsed(1); $multicurrency_deposits=$invoice->getSumDepositsUsed(1); @@ -630,25 +631,25 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie // Date print ''.dol_print_date($db->jdate($objp->df),'day')."\n"; - + // Date Max Payment if ($objp->dlr > 0 ) { print ''; print dol_print_date($db->jdate($objp->dlr), 'day'); - + if ($invoice->hasDelay()) { print img_warning($langs->trans('Late')); } - + print ''; } else { print '--'; } - + // Currency if (!empty($conf->multicurrency->enabled)) print ''.$objp->multicurrency_code."\n"; @@ -760,11 +761,13 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie // Print total print ''; print ''.$langs->trans('TotalTTC').''; - if (!empty($conf->multicurrency->enabled)) print ''; - if (!empty($conf->multicurrency->enabled)) print ''; - if (!empty($conf->multicurrency->enabled)) print ''; - if (!empty($conf->multicurrency->enabled)) print ''; - if (!empty($conf->multicurrency->enabled)) print ''; + if (!empty($conf->multicurrency->enabled)) { + print ''; + print ''; + print ''; + print ''; + print ''; + } print ''.price($sign * $total_ttc).''; print ''.price($sign * $totalrecu); if ($totalrecucreditnote) print '+'.price($totalrecucreditnote); diff --git a/htdocs/compta/salaries/stats/index.php b/htdocs/compta/salaries/stats/index.php index edb48edc303..6471f66cf57 100644 --- a/htdocs/compta/salaries/stats/index.php +++ b/htdocs/compta/salaries/stats/index.php @@ -187,7 +187,7 @@ $head[$h][1] = $langs->trans("ByMonthYear"); $head[$h][2] = 'byyear'; $h++; -complete_head_from_modules($conf,$langs,null,$head,$h,'trip_stats'); +complete_head_from_modules($conf,$langs,null,$head,$h,'salaries_stats'); dol_fiche_head($head, 'byyear', $langs->trans("Statistics"), -1); @@ -197,7 +197,7 @@ print '
'; // Show filter box print '
'; -print ''; +print '
'; print ''; // User print '
'.$langs->trans("Filter").'
'.$langs->trans("User").''; @@ -215,8 +215,8 @@ print ''; print '

'; print '
'; -print ''; -print ''; +print '
'; +print ''; print ''; print ''; print ''; @@ -231,14 +231,16 @@ foreach ($data as $val) { // If we have empty year $oldyear--; - print ''; + + print ''; print ''; print ''; print ''; print ''; print ''; } - print ''; + + print ''; print ''; print ''; print ''; diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php index febd4fcb703..09f7bd85c90 100644 --- a/htdocs/core/lib/company.lib.php +++ b/htdocs/core/lib/company.lib.php @@ -1517,7 +1517,8 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon='', $noprint= $contactstatic = new Contact($db); $out.=''; - if ($objcon && get_class($objcon) == 'Contact' && $filterobj && get_class($filterobj) == 'Societe') + if ($objcon && get_class($objcon) == 'Contact' && + (is_null($filterobj) || get_class($filterobj) == 'Societe')) { $out.=''; } diff --git a/htdocs/core/modules/modPropale.class.php b/htdocs/core/modules/modPropale.class.php index c7bf0f6979f..445d803ead9 100644 --- a/htdocs/core/modules/modPropale.class.php +++ b/htdocs/core/modules/modPropale.class.php @@ -225,8 +225,13 @@ class modPropale extends DolibarrModules include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php'; $keyforselect='product'; $keyforelement='product'; $keyforaliasextra='extra3'; include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php'; + $keyforselect='societe'; $keyforelement='societe'; $keyforaliasextra='extra4'; + include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php'; + $this->export_sql_start[$r]='SELECT DISTINCT '; $this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'societe as s '; + $this->export_sql_end[$r] .=' LEFT JOIN '.MAIN_DB_PREFIX.'societe_extrafields as extra4 ON s.rowid = extra4.fk_object'; + if(!$user->rights->societe->client->voir) $this->export_sql_end[$r] .=' LEFT JOIN '.MAIN_DB_PREFIX.'societe_commerciaux as sc ON sc.fk_soc = s.rowid'; $this->export_sql_end[$r] .=' LEFT JOIN '.MAIN_DB_PREFIX.'c_country as co ON s.fk_pays = co.rowid,'; $this->export_sql_end[$r] .=' '.MAIN_DB_PREFIX.'propal as c'; diff --git a/htdocs/expedition/stats/index.php b/htdocs/expedition/stats/index.php index a0631d8da23..e0b750e9797 100644 --- a/htdocs/expedition/stats/index.php +++ b/htdocs/expedition/stats/index.php @@ -213,7 +213,7 @@ if (! count($arrayyears)) $arrayyears[$nowyear]=$nowyear; $h=0; $head = array(); -$head[$h][0] = DOL_URL_ROOT . '/commande/stats/index.php?mode='.$mode; +$head[$h][0] = DOL_URL_ROOT . '/expedition/stats/index.php?mode='.$mode; $head[$h][1] = $langs->trans("ByMonthYear"); $head[$h][2] = 'byyear'; $h++;
'.$langs->trans("Year").''.$langs->trans("Number").''.$langs->trans("AmountTotal").'
'.$oldyear.'000
'.$year.''.$val['nb'].''.price(price2num($val['total'],'MT'),1).'