Avoid print customer name when is default

This commit is contained in:
andreubisquerra 2020-03-23 22:58:04 +01:00 committed by GitHub
parent 53850caa87
commit 585c46b181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -717,7 +717,7 @@ $( document ).ready(function() {
<?php
$s = $langs->trans("Customer");
if ($invoice->socid != $conf->global->$constforcompanyid) {
if ($invoice->id > 0 && ($invoice->socid != $conf->global->$constforcompanyid)) {
$s = $soc->name;
}
?>