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

Multi-line accounts does not download all bills #152

Open
LoicAlba opened this issue Nov 1, 2018 · 0 comments
Open

Multi-line accounts does not download all bills #152

LoicAlba opened this issue Nov 1, 2018 · 0 comments

Comments

@LoicAlba
Copy link

LoicAlba commented Nov 1, 2018

Hy,

When connecting to a multi-line account, not all bills are download.
Looking in source code, I think there is an error in the file name generation.

    if (isMultiline && !dataFactMulti) {
      bill.phonenumber = number
      bill.titulaire = titulaire
    }

    if (date.year() > 2011) {
      bill.fileurl = pdfUrl
      bill.filename = getFileName(date)
}

The phone and titulaire data are not used to generate file name so the file name is ${date.format('YYYYMM')}_freemobile.pdfeven if there is multi-lines.

The file name need to be ${date.format('YYYYMM')}_freemobile_${bill.phonenumber}.pdfif phonenumber exists.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant