Fix data on thirdparty tooltip
This commit is contained in:
parent
78cbd92e98
commit
3287c03e67
@ -338,15 +338,18 @@ if ($resql)
|
|||||||
{
|
{
|
||||||
$objp = $db->fetch_object($resql);
|
$objp = $db->fetch_object($resql);
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
$thirdpartystatic->fetch($objp->socid);
|
||||||
|
|
||||||
$invoice=new Facture($db);
|
$invoice=new Facture($db);
|
||||||
$invoice->fetch($objp->facid);
|
$invoice->fetch($objp->facid);
|
||||||
$paiement = $invoice->getSommePaiement();
|
|
||||||
$creditnotes=$invoice->getSumCreditNotesUsed();
|
$paiement = $invoice->getSommePaiement();
|
||||||
$deposits=$invoice->getSumDepositsUsed();
|
$creditnotes=$invoice->getSumCreditNotesUsed();
|
||||||
$alreadypayed=price2num($paiement + $creditnotes + $deposits,'MT');
|
$deposits=$invoice->getSumDepositsUsed();
|
||||||
$remaintopay=price2num($invoice->total_ttc - $paiement - $creditnotes - $deposits,'MT');
|
$alreadypayed=price2num($paiement + $creditnotes + $deposits,'MT');
|
||||||
|
$remaintopay=price2num($invoice->total_ttc - $paiement - $creditnotes - $deposits,'MT');
|
||||||
|
|
||||||
|
print '<tr class="oddeven">';
|
||||||
|
|
||||||
// Invoice
|
// Invoice
|
||||||
print '<td>';
|
print '<td>';
|
||||||
@ -355,8 +358,6 @@ if ($resql)
|
|||||||
|
|
||||||
// Third party
|
// Third party
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$thirdpartystatic->id=$objp->socid;
|
|
||||||
$thirdpartystatic->name=$objp->name;
|
|
||||||
print $thirdpartystatic->getNomUrl(1);
|
print $thirdpartystatic->getNomUrl(1);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user