Skip to content
Snippets Groups Projects
Commit eac822d8 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #3069 from aspangaro/develop-patch33

Fix: Accountancy - SQL error & typo
parents 44d4d23c fb57941b
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,7 @@ if ($result) { ...@@ -141,7 +141,7 @@ if ($result) {
// Situation invoices handling // Situation invoices handling
$line = new FactureLigne($db); $line = new FactureLigne($db);
$line->fetch($obj->id); $line->fetch($obj->rowid);
$prev_progress = $line->get_prev_progress(); $prev_progress = $line->get_prev_progress();
if ($obj->situation_percent == 0) { // Avoid divide by 0 if ($obj->situation_percent == 0) { // Avoid divide by 0
$situation_ratio = 0; $situation_ratio = 0;
......
...@@ -290,7 +290,7 @@ if ($id > 0 || ! empty($ref)) ...@@ -290,7 +290,7 @@ if ($id > 0 || ! empty($ref))
} }
else else
{ {
print '<tr clas="impair">'; print '<tr class="impair">';
print '<td colspan="3">'.$langs->trans("None").'</td>'; print '<td colspan="3">'.$langs->trans("None").'</td>';
print '</tr>'; print '</tr>';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment