Merge pull request #3069 from aspangaro/develop-patch33

Fix: Accountancy - SQL error & typo
This commit is contained in:
Laurent Destailleur 2015-06-19 11:23:43 +02:00
commit eac822d821
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ if ($result) {
// Situation invoices handling
$line = new FactureLigne($db);
$line->fetch($obj->id);
$line->fetch($obj->rowid);
$prev_progress = $line->get_prev_progress();
if ($obj->situation_percent == 0) { // Avoid divide by 0
$situation_ratio = 0;

View File

@ -290,7 +290,7 @@ if ($id > 0 || ! empty($ref))
}
else
{
print '<tr clas="impair">';
print '<tr class="impair">';
print '<td colspan="3">'.$langs->trans("None").'</td>';
print '</tr>';
}