Remove magic values by scraping them from page

Fix bug that avoid quarterly declarations to be retrieved
This commit is contained in:
Schoumi 2019-07-21 13:31:08 +02:00
parent 8ed28a9e65
commit b35b41e45a
2 changed files with 3 additions and 3 deletions

View file

@ -67,7 +67,7 @@ You can reach the Cozy Community by:
License
-------
Net-Entreprises-AE is developed by Schoumi and distributed under the [AGPL v3 license][agpl-3.0].
net-entreprises-micro is developed by Schoumi and distributed under the [AGPL v3 license][agpl-3.0].
[cozy]: https://cozy.io "Cozy Cloud"
[agpl-3.0]: https://www.gnu.org/licenses/agpl-3.0.html

View file

@ -126,8 +126,8 @@ async function getDeclarationsParameters(url) {
/* Get all available declarations IDs */
async function buildDeclarationList(params) {
params.codepaye = 10
params.echeance = 44
params.codepaye = params.codep
params.echeance = params.ech
params.listexi = ''
params.habpai = 'N'
params.habdev = 'N'