Skip to content

Commit

Permalink
Update facture.php
Browse files Browse the repository at this point in the history
$soc already filled upper if $socid filled
  • Loading branch information
defrance committed Dec 28, 2014
1 parent 41118a1 commit 2957c14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/compta/facture.php
Expand Up @@ -1767,7 +1767,9 @@
$ref_client = (! empty($objectsrc->ref_client) ? $objectsrc->ref_client : '');
$ref_int = (! empty($objectsrc->ref_int) ? $objectsrc->ref_int : '');

$soc = $objectsrc->thirdparty;
// only if socid not filled else it's allready done upper
if (empty($socid))
$soc = $objectsrc->thirdparty;

$cond_reglement_id = (! empty($objectsrc->cond_reglement_id)?$objectsrc->cond_reglement_id:(! empty($soc->cond_reglement_id)?$soc->cond_reglement_id:1));
$mode_reglement_id = (! empty($objectsrc->mode_reglement_id)?$objectsrc->mode_reglement_id:(! empty($soc->mode_reglement_id)?$soc->mode_reglement_id:0));
Expand Down

0 comments on commit 2957c14

Please sign in to comment.