Merge pull request #15956 from aspangaro/13b7
FIX : Accountancy - FEC Export - Add trans & unaccent on journal label
This commit is contained in:
commit
942016d0cd
@ -820,6 +820,8 @@ class AccountancyExport
|
|||||||
*/
|
*/
|
||||||
public function exportFEC($objectLines)
|
public function exportFEC($objectLines)
|
||||||
{
|
{
|
||||||
|
global $langs;
|
||||||
|
|
||||||
$separator = "\t";
|
$separator = "\t";
|
||||||
$end_line = "\r\n";
|
$end_line = "\r\n";
|
||||||
|
|
||||||
@ -856,7 +858,7 @@ class AccountancyExport
|
|||||||
print $line->code_journal . $separator;
|
print $line->code_journal . $separator;
|
||||||
|
|
||||||
// FEC:JournalLib
|
// FEC:JournalLib
|
||||||
print $line->journal_label.$separator;
|
print dol_string_unaccent($langs->transnoentities($line->journal_label)) . $separator;
|
||||||
|
|
||||||
// FEC:EcritureNum
|
// FEC:EcritureNum
|
||||||
print $line->piece_num . $separator;
|
print $line->piece_num . $separator;
|
||||||
@ -919,6 +921,8 @@ class AccountancyExport
|
|||||||
*/
|
*/
|
||||||
public function exportFEC2($objectLines)
|
public function exportFEC2($objectLines)
|
||||||
{
|
{
|
||||||
|
global $langs;
|
||||||
|
|
||||||
$separator = "\t";
|
$separator = "\t";
|
||||||
$end_line = "\r\n";
|
$end_line = "\r\n";
|
||||||
|
|
||||||
@ -955,7 +959,7 @@ class AccountancyExport
|
|||||||
print $line->code_journal . $separator;
|
print $line->code_journal . $separator;
|
||||||
|
|
||||||
// FEC:JournalLib
|
// FEC:JournalLib
|
||||||
print $line->journal_label . $separator;
|
print dol_string_unaccent($langs->transnoentities($line->journal_label)) . $separator;
|
||||||
|
|
||||||
// FEC:EcritureNum
|
// FEC:EcritureNum
|
||||||
print $line->piece_num . $separator;
|
print $line->piece_num . $separator;
|
||||||
|
|||||||
@ -549,7 +549,7 @@ if (!$error && $action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt >= 0 ? $mt : 0);
|
$bookkeeping->debit = ($mt >= 0 ? $mt : 0);
|
||||||
$bookkeeping->credit = ($mt < 0 ? -$mt : 0);
|
$bookkeeping->credit = ($mt < 0 ? -$mt : 0);
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->date_creation = $now;
|
$bookkeeping->date_creation = $now;
|
||||||
|
|
||||||
@ -605,7 +605,7 @@ if (!$error && $action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt < 0 ? -$mt : 0);
|
$bookkeeping->debit = ($mt < 0 ? -$mt : 0);
|
||||||
$bookkeeping->credit = ($mt >= 0) ? $mt : 0;
|
$bookkeeping->credit = ($mt >= 0) ? $mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->date_creation = $now;
|
$bookkeeping->date_creation = $now;
|
||||||
|
|
||||||
@ -737,7 +737,7 @@ if (!$error && $action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt < 0 ? -$mt : 0);
|
$bookkeeping->debit = ($mt < 0 ? -$mt : 0);
|
||||||
$bookkeeping->credit = ($mt >= 0) ? $mt : 0;
|
$bookkeeping->credit = ($mt >= 0) ? $mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->date_creation = $now;
|
$bookkeeping->date_creation = $now;
|
||||||
$bookkeeping->label_compte = '';
|
$bookkeeping->label_compte = '';
|
||||||
|
|||||||
@ -223,7 +223,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt <= 0) ? -$mt : 0;
|
$bookkeeping->debit = ($mt <= 0) ? -$mt : 0;
|
||||||
$bookkeeping->credit = ($mt > 0) ? $mt : 0;
|
$bookkeeping->credit = ($mt > 0) ? $mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->entity = $conf->entity;
|
$bookkeeping->entity = $conf->entity;
|
||||||
|
|
||||||
@ -271,7 +271,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt > 0) ? $mt : 0;
|
$bookkeeping->debit = ($mt > 0) ? $mt : 0;
|
||||||
$bookkeeping->credit = ($mt <= 0) ? -$mt : 0;
|
$bookkeeping->credit = ($mt <= 0) ? -$mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->entity = $conf->entity;
|
$bookkeeping->entity = $conf->entity;
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt > 0) ? $mt : 0;
|
$bookkeeping->debit = ($mt > 0) ? $mt : 0;
|
||||||
$bookkeeping->credit = ($mt <= 0) ? -$mt : 0;
|
$bookkeeping->credit = ($mt <= 0) ? -$mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->entity = $conf->entity;
|
$bookkeeping->entity = $conf->entity;
|
||||||
|
|
||||||
|
|||||||
@ -322,7 +322,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt <= 0) ? -$mt : 0;
|
$bookkeeping->debit = ($mt <= 0) ? -$mt : 0;
|
||||||
$bookkeeping->credit = ($mt > 0) ? $mt : 0;
|
$bookkeeping->credit = ($mt > 0) ? $mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->entity = $conf->entity;
|
$bookkeeping->entity = $conf->entity;
|
||||||
|
|
||||||
@ -372,7 +372,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt > 0) ? $mt : 0;
|
$bookkeeping->debit = ($mt > 0) ? $mt : 0;
|
||||||
$bookkeeping->credit = ($mt <= 0) ? -$mt : 0;
|
$bookkeeping->credit = ($mt <= 0) ? -$mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->entity = $conf->entity;
|
$bookkeeping->entity = $conf->entity;
|
||||||
|
|
||||||
@ -433,7 +433,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt > 0) ? $mt : 0;
|
$bookkeeping->debit = ($mt > 0) ? $mt : 0;
|
||||||
$bookkeeping->credit = ($mt <= 0) ? -$mt : 0;
|
$bookkeeping->credit = ($mt <= 0) ? -$mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->entity = $conf->entity;
|
$bookkeeping->entity = $conf->entity;
|
||||||
|
|
||||||
@ -484,7 +484,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt > 0) ? $mt : 0;
|
$bookkeeping->debit = ($mt > 0) ? $mt : 0;
|
||||||
$bookkeeping->credit = ($mt <= 0) ? -$mt : 0;
|
$bookkeeping->credit = ($mt <= 0) ? -$mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->entity = $conf->entity;
|
$bookkeeping->entity = $conf->entity;
|
||||||
|
|
||||||
|
|||||||
@ -333,7 +333,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt >= 0) ? $mt : 0;
|
$bookkeeping->debit = ($mt >= 0) ? $mt : 0;
|
||||||
$bookkeeping->credit = ($mt < 0) ? -$mt : 0;
|
$bookkeeping->credit = ($mt < 0) ? -$mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->entity = $conf->entity;
|
$bookkeeping->entity = $conf->entity;
|
||||||
|
|
||||||
@ -383,7 +383,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt < 0) ? -$mt : 0;
|
$bookkeeping->debit = ($mt < 0) ? -$mt : 0;
|
||||||
$bookkeeping->credit = ($mt >= 0) ? $mt : 0;
|
$bookkeeping->credit = ($mt >= 0) ? $mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->entity = $conf->entity;
|
$bookkeeping->entity = $conf->entity;
|
||||||
|
|
||||||
@ -443,7 +443,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
$bookkeeping->debit = ($mt < 0) ? -$mt : 0;
|
$bookkeeping->debit = ($mt < 0) ? -$mt : 0;
|
||||||
$bookkeeping->credit = ($mt >= 0) ? $mt : 0;
|
$bookkeeping->credit = ($mt >= 0) ? $mt : 0;
|
||||||
$bookkeeping->code_journal = $journal;
|
$bookkeeping->code_journal = $journal;
|
||||||
$bookkeeping->journal_label = $journal_label;
|
$bookkeeping->journal_label = $langs->transnoentities($journal_label);
|
||||||
$bookkeeping->fk_user_author = $user->id;
|
$bookkeeping->fk_user_author = $user->id;
|
||||||
$bookkeeping->entity = $conf->entity;
|
$bookkeeping->entity = $conf->entity;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user