commit
484f8ec218
@ -42,6 +42,7 @@ For users:
|
|||||||
- Fix: Errors weren't being shown in customer's & supplier's orders
|
- Fix: Errors weren't being shown in customer's & supplier's orders
|
||||||
- New: Add conditional substitution IF/ELSEIF/ENDIF for ODT templates
|
- New: Add conditional substitution IF/ELSEIF/ENDIF for ODT templates
|
||||||
- New: Basic implementation of hooks and triggers for a lot (most) of core modules: action/calendar, trips and expenses, dons, vat payment, contact/society, contract, product lines, expedition, order supplier and order invoice (lines included), intervention card, project, tasks
|
- New: Basic implementation of hooks and triggers for a lot (most) of core modules: action/calendar, trips and expenses, dons, vat payment, contact/society, contract, product lines, expedition, order supplier and order invoice (lines included), intervention card, project, tasks
|
||||||
|
- Fix: [ bug #499 ]: Supplier order input method not translated
|
||||||
|
|
||||||
For developers:
|
For developers:
|
||||||
- New: Add webservice for thirdparty creation and list.
|
- New: Add webservice for thirdparty creation and list.
|
||||||
|
|||||||
@ -1118,7 +1118,25 @@ if ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
if ($object->methode_commande)
|
if ($object->methode_commande)
|
||||||
{
|
{
|
||||||
print '<tr><td>'.$langs->trans("Method").'</td><td colspan="2">'.$object->methode_commande.'</td></tr>';
|
$sql = "SELECT rowid, code, libelle";
|
||||||
|
$sql.= " FROM ".MAIN_DB_PREFIX.'c_input_method';
|
||||||
|
$sql.= " WHERE active=1 AND rowid = ".$db->escape($object->methode_commande_id);
|
||||||
|
|
||||||
|
$resql = $db->query($sql);
|
||||||
|
|
||||||
|
if ($resql && $db->num_rows($resql))
|
||||||
|
{
|
||||||
|
$obj = $db->fetch_object($resql);
|
||||||
|
|
||||||
|
// Si traduction existe, on l'utilise, sinon on prend le libelle par defaut
|
||||||
|
$methode_commande = ($langs->trans($obj->code) != $obj->code ? $langs->trans($obj->code) : ($obj->libelle!='-'?$obj->libelle:''));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dol_print_error($db);
|
||||||
|
}
|
||||||
|
|
||||||
|
print '<tr><td>'.$langs->trans("Method").'</td><td colspan="2">'.$methode_commande.'</td></tr>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user