Fixing style errors.

This commit is contained in:
stickler-ci 2021-07-30 10:32:56 +00:00
parent 6983da8c84
commit 3c71784272
2 changed files with 30 additions and 30 deletions

View File

@ -453,8 +453,8 @@ class StockTransfer extends CommonObject
public function update(User $user, $notrigger = false) public function update(User $user, $notrigger = false)
{ {
$res = $this->updateCommon($user, $notrigger); $res = $this->updateCommon($user, $notrigger);
if($this->socid > 0 || $this->fk_soc > 0 && empty($this->thirdparty)) $this->fetch_thirdparty(); if ($this->socid > 0 || $this->fk_soc > 0 && empty($this->thirdparty)) $this->fetch_thirdparty();
if(empty($this->socid) && empty($this->fk_soc)) unset($this->thirdparty); if (empty($this->socid) && empty($this->fk_soc)) unset($this->thirdparty);
return $res; return $res;
} }

View File

@ -561,7 +561,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
$linkback = '<a href="'.dol_buildpath('/product/stock/stocktransfer/stocktransfer_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>'; $linkback = '<a href="'.dol_buildpath('/product/stock/stocktransfer/stocktransfer_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
$morehtmlref = '<div class="refidno">'; $morehtmlref = '<div class="refidno">';
if($conf->societe->enabled) { if ($conf->societe->enabled) {
// Thirdparty // Thirdparty
$morehtmlref .= $langs->trans('ThirdParty') . ' : ' . (is_object($object->thirdparty) ? $object->thirdparty->getNomUrl(1) : '').'<br>'; $morehtmlref .= $langs->trans('ThirdParty') . ' : ' . (is_object($object->thirdparty) ? $object->thirdparty->getNomUrl(1) : '').'<br>';
} }