fix: Format thirdparty address label on pdf. Currently, an extra blank line is displayed between city/state and before country
This commit is contained in:
parent
38bbc1d28d
commit
ecb2492675
@ -603,7 +603,7 @@ function pdf_build_address($outputlangs, $sourcecompany, $targetcompany = '', $t
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (is_object($targetcompany)) {
|
if (is_object($targetcompany)) {
|
||||||
$stringaddress .= ($stringaddress ? "\n" : '').$outputlangs->convToOutputCharset(dol_format_address($targetcompany))."\n";
|
$stringaddress .= ($stringaddress ? "\n" : '').$outputlangs->convToOutputCharset(dol_format_address($targetcompany));
|
||||||
// Country
|
// Country
|
||||||
if (!empty($targetcompany->country_code) && $targetcompany->country_code != $sourcecompany->country_code) {
|
if (!empty($targetcompany->country_code) && $targetcompany->country_code != $sourcecompany->country_code) {
|
||||||
$stringaddress .= ($stringaddress ? "\n" : '').$outputlangs->convToOutputCharset($outputlangs->transnoentitiesnoconv("Country".$targetcompany->country_code));
|
$stringaddress .= ($stringaddress ? "\n" : '').$outputlangs->convToOutputCharset($outputlangs->transnoentitiesnoconv("Country".$targetcompany->country_code));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user