Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
Laurent Destailleur 2021-06-10 12:49:18 +02:00
commit 3a0b9b4511
3 changed files with 3 additions and 2 deletions

View File

@ -2294,6 +2294,7 @@ if ($action == 'create') {
print $langs->trans('OutstandingBill');
print '</td><td class="valuefield">';
$arrayoutstandingbills = $soc->getOutstandingBills();
print ($arrayoutstandingbills['opened'] > $soc->outstanding_limit ? img_warning() : '');
print price($arrayoutstandingbills['opened']).' / ';
print price($soc->outstanding_limit, 0, $langs, 1, - 1, - 1, $conf->currency);
print '</td>';

View File

@ -345,7 +345,7 @@ if (($action == 'send' || $action == 'relance') && !$_POST['addfile'] && !$_POST
$subject = make_substitutions($subject, $substitutionarray);
$message = make_substitutions($message, $substitutionarray);
if (method_exists($object, 'makeSubstitution')) {
if (is_object($object) && method_exists($object, 'makeSubstitution')) {
$subject = $object->makeSubstitution($subject);
$message = $object->makeSubstitution($message);
}

View File

@ -164,7 +164,7 @@ if ($object->id > 0) {
print dol_get_fiche_end();
$modulepart = 'project';
$modulepart = 'projet';
$permissiontoadd = ($userWrite > 0);
$permtoedit = ($userWrite > 0);
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';