FIX FEC Format - Save translation of the journal
This commit is contained in:
parent
a2fc3689da
commit
cd22cc70c8
@ -472,14 +472,15 @@ class BookKeeping extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public function createStd(User $user, $notrigger = false, $mode='')
|
public function createStd(User $user, $notrigger = false, $mode='')
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf, $langs;
|
||||||
|
|
||||||
|
$langs->loadLangs(array("accountancy", "bills", "compta"));
|
||||||
|
|
||||||
dol_syslog(__METHOD__, LOG_DEBUG);
|
dol_syslog(__METHOD__, LOG_DEBUG);
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
|
|
||||||
if (isset($this->doc_type)) {
|
if (isset($this->doc_type)) {
|
||||||
$this->doc_type = trim($this->doc_type);
|
$this->doc_type = trim($this->doc_type);
|
||||||
}
|
}
|
||||||
@ -546,7 +547,7 @@ class BookKeeping extends CommonObject
|
|||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
|
|
||||||
// Check parameters
|
// Check parameters
|
||||||
// Put here code to add control on parameters values
|
$this->journal_label = $langs->trans($this->journal_label);
|
||||||
|
|
||||||
// Insert request
|
// Insert request
|
||||||
$sql = 'INSERT INTO ' . MAIN_DB_PREFIX . $this->table_element . $mode.' (';
|
$sql = 'INSERT INTO ' . MAIN_DB_PREFIX . $this->table_element . $mode.' (';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user