Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW Add possibility to choose format #21426 #23509

Merged
merged 6 commits into from
Apr 18, 2023

Conversation

KiVoilaJe
Copy link
Contributor

NEW|New feature(#21426) Added in the export module the possibility to choose between utf-8 and iso format

/**
* Class to build export files with format CSV
*/
class ExportCsvUtf8 extends ModeleExports
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this class is a copy of the class for iso but with just few lines changed.
So why not don't you make an inherit
class ExportCsvUtf8 extends ExportCsv
And implement into class only properties or method with change for utf8 ?

@eldy eldy added the PR to fix - See feedback in comments PR needs to be fixed to be integrated (some comments should describes the fix to do) label Jan 11, 2023
@Hystepik
Copy link
Contributor

Still travis error. Try to move the set of the CHARSET... into an surcharging method write_record, ... instead of into constructor.

@Hystepik
Copy link
Contributor

Unit test to fix

… files to override the write_title and write_record functions to initialize EXPORT_CSV_FORCE_CHARSET
@Hystepik Hystepik added PR to fix - OK to merge if suggested fix are done PR was analyzed by PR merger and seems ok to be merged as soon as a fix has been published and removed PR to fix - See feedback in comments PR needs to be fixed to be integrated (some comments should describes the fix to do) labels Feb 16, 2023
…adds an export type when choosing the export type
@Hystepik Hystepik removed the PR to fix - OK to merge if suggested fix are done PR was analyzed by PR merger and seems ok to be merged as soon as a fix has been published label Mar 8, 2023
@Hystepik Hystepik added the PR OK to merge PR was analyzed by PR merger and seems ok to be validated. Merge may occurs soon... label Mar 16, 2023
@Hystepik
Copy link
Contributor

@eldy seams ok

@eldy eldy merged commit 6ab05df into Dolibarr:develop Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR OK to merge PR was analyzed by PR merger and seems ok to be validated. Merge may occurs soon...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants