Merge remote-tracking branch 'origin/3.4' into 3.5
Conflicts: htdocs/compta/facture.php
This commit is contained in:
commit
9e9a386852
@ -3859,22 +3859,22 @@ else if ($id > 0 || ! empty($ref))
|
||||
{
|
||||
/*
|
||||
* Affiche formulaire mail
|
||||
*/
|
||||
*/
|
||||
|
||||
// By default if $action=='presend'
|
||||
$titreform='SendBillByMail';
|
||||
$topicmail='SendBillRef';
|
||||
$action='send';
|
||||
$modelmail='facture_send';
|
||||
|
||||
if ($action == 'prerelance') // For backward compatibility
|
||||
{
|
||||
$titrefrom='SendReminderBillByMail';
|
||||
$topicmail='SendReminderBillRef';
|
||||
$action='relance';
|
||||
$modelmail='facture_relance';
|
||||
$action='relance';
|
||||
}
|
||||
|
||||
else $action='send';
|
||||
|
||||
$ref = dol_sanitizeFileName($object->ref);
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||
$fileparams = dol_most_recent_file($conf->facture->dir_output . '/' . $ref, preg_quote($ref,'/'));
|
||||
|
||||
@ -268,8 +268,11 @@ else
|
||||
|
||||
// Country
|
||||
print '<tr><td>'.$langs->trans('Country').'</td><td colspan="3">';
|
||||
$img=picto_from_langcode($object->country_code);
|
||||
print ($img?$img.' ':'');
|
||||
if (! empty($object->country_code))
|
||||
{
|
||||
$img=picto_from_langcode($object->country_code);
|
||||
print ($img?$img.' ':'');
|
||||
}
|
||||
print $object->country;
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user