Fix somes code formating errors
This commit is contained in:
parent
128ec6fd78
commit
bf8cd51a5a
@ -977,7 +977,6 @@ else
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
|
||||
// Debit
|
||||
$obj = $db->fetch_object($result);
|
||||
if (isset($obj->amount))
|
||||
@ -987,7 +986,7 @@ else
|
||||
}
|
||||
print '<tr class="oddeven"><td> </td>';
|
||||
print "<td>".$langs->trans("Debit")."</td>\n";
|
||||
if ($modecompta == 'CREANCES-DETTES') print '<td class="right">'.price(-$obj->amount).'</td>';
|
||||
if ($modecompta == 'CREANCES-DETTES') print '<td class="right">'.price(-$obj->amount).'</td>';
|
||||
print '<td class="right">'.price(-$obj->amount)."</td>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
@ -1000,7 +999,7 @@ else
|
||||
}
|
||||
print '<tr class="oddeven"><td> </td>';
|
||||
print "<td>".$langs->trans("Credit")."</td>\n";
|
||||
if ($modecompta == 'CREANCES-DETTES') print '<td class="right">'.price($obj->amount).'</td>';
|
||||
if ($modecompta == 'CREANCES-DETTES') print '<td class="right">'.price($obj->amount).'</td>';
|
||||
print '<td class="right">'.price($obj->amount)."</td>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
@ -1012,7 +1011,6 @@ else
|
||||
print '<td colspan="3" class="right">'.price($subtotal_ht).'</td>';
|
||||
print '<td colspan="3" class="right">'.price($subtotal_ttc).'</td>';
|
||||
print '</tr>';
|
||||
|
||||
}
|
||||
else dol_print_error($db);
|
||||
}
|
||||
@ -1055,7 +1053,6 @@ else
|
||||
$subtotal_ht -= $obj->amount;
|
||||
$subtotal_ttc -= $obj->amount;
|
||||
}
|
||||
|
||||
$total_ht += $subtotal_ht;
|
||||
$total_ttc += $subtotal_ttc;
|
||||
print '<tr class="liste_total">';
|
||||
@ -1067,7 +1064,6 @@ else
|
||||
else dol_print_error($db);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* VAT
|
||||
*/
|
||||
|
||||
@ -801,7 +801,6 @@ elseif ($modecompta == 'BOOKKEEPING') {
|
||||
|
||||
if (!empty($conf->global->ACCOUNTING_REPORTS_INCLUDE_VARPAY) && !empty($conf->banque->enabled) && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES"))
|
||||
{
|
||||
|
||||
// decaiss
|
||||
|
||||
$sql = "SELECT date_format(p.datep, '%Y-%m') AS dm, SUM(p.amount) AS amount FROM ".MAIN_DB_PREFIX."payment_various as p";
|
||||
@ -863,9 +862,9 @@ if (!empty($conf->global->ACCOUNTING_REPORTS_INCLUDE_VARPAY) && !empty($conf->ba
|
||||
}
|
||||
|
||||
}
|
||||
elseif ($modecompta == 'BOOKKEEPING') {
|
||||
// Useless with BOOKKEEPING
|
||||
}
|
||||
// Useless with BOOKKEEPING
|
||||
//elseif ($modecompta == 'BOOKKEEPING') {
|
||||
//}
|
||||
|
||||
/*
|
||||
* Payement Loan
|
||||
@ -873,7 +872,6 @@ elseif ($modecompta == 'BOOKKEEPING') {
|
||||
|
||||
if (!empty($conf->global->ACCOUNTING_REPORTS_INCLUDE_LOAN) && !empty($conf->loan->enabled) && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES"))
|
||||
{
|
||||
|
||||
$sql = "SELECT date_format(p.datep, '%Y-%m') AS dm, SUM(p.amount_capital + p.amount_insurance + p.amount_interest) AS amount FROM ".MAIN_DB_PREFIX."payment_loan AS p";
|
||||
$sql .= ' WHERE 1 = 1';
|
||||
if (!empty($date_start) && !empty($date_end))
|
||||
@ -903,9 +901,9 @@ if (!empty($conf->global->ACCOUNTING_REPORTS_INCLUDE_LOAN) && !empty($conf->loan
|
||||
}
|
||||
|
||||
}
|
||||
elseif ($modecompta == 'BOOKKEEPING') {
|
||||
// Not use with BOOKKEEPING
|
||||
}
|
||||
// Useless with BOOKKEEPING
|
||||
//elseif ($modecompta == 'BOOKKEEPING') {
|
||||
//}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user