Remove magic values by scraping them from page

Fix bug that avoid quarterly declarations to be retrieved
master
Schoumi 4 years ago
parent 8ed28a9e65
commit b35b41e45a

@ -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

@ -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'

Loading…
Cancel
Save