Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
290766acaa
@ -149,7 +149,7 @@ if ($permission) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<form class="tagtr liste_titre liste_titre_add formnoborder">
|
<form class="tagtr liste_titre liste_titre_add formnoborder">
|
||||||
<div class="tagtd liste_titre"><?php echo $langs->trans("Nature"); ?></div>
|
<div class="tagtd liste_titre"><?php echo $langs->trans("NatureOfContact"); ?></div>
|
||||||
<div class="tagtd liste_titre"><?php echo $langs->trans("ThirdParty"); ?></div>
|
<div class="tagtd liste_titre"><?php echo $langs->trans("ThirdParty"); ?></div>
|
||||||
<div class="tagtd liste_titre"><?php echo $langs->trans("Users").'/'.$langs->trans("Contacts"); ?></div>
|
<div class="tagtd liste_titre"><?php echo $langs->trans("Users").'/'.$langs->trans("Contacts"); ?></div>
|
||||||
<div class="tagtd liste_titre"><?php echo $langs->trans("ContactType"); ?></div>
|
<div class="tagtd liste_titre"><?php echo $langs->trans("ContactType"); ?></div>
|
||||||
|
|||||||
@ -3935,11 +3935,9 @@ class Societe extends CommonObject
|
|||||||
|
|
||||||
$outstandingOpened+=$obj->total_ttc - $paiement - $creditnotes - $deposits;
|
$outstandingOpened+=$obj->total_ttc - $paiement - $creditnotes - $deposits;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if credit note is converted but not used
|
//if credit note is converted but not used
|
||||||
if($mode == 'supplier' && $obj->type == FactureFournisseur::TYPE_CREDIT_NOTE && $tmpobject->isCreditNoteUsed())$outstandingOpened-=$tmpobject->getSumFromThisCreditNotesNotUsed();
|
if($mode == 'supplier' && $obj->type == FactureFournisseur::TYPE_CREDIT_NOTE && $tmpobject->isCreditNoteUsed())$outstandingOpened-=$tmpobject->getSumFromThisCreditNotesNotUsed();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return array('opened'=>$outstandingOpened, 'total_ht'=>$outstandingTotal, 'total_ttc'=>$outstandingTotalIncTax); // 'opened' is 'incl taxes'
|
return array('opened'=>$outstandingOpened, 'total_ht'=>$outstandingTotal, 'total_ttc'=>$outstandingTotalIncTax); // 'opened' is 'incl taxes'
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user