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

Peppol xml front end changes #276

Merged
merged 7 commits into from
Dec 18, 2023
Merged

Peppol xml front end changes #276

merged 7 commits into from
Dec 18, 2023

Conversation

Ninarchive
Copy link
Collaborator

The front-end changes for confac. User is able to download the PEPPOL xml on the edit invoice-page and can send the xml as an attachment via e-mail.

The saving of a client has been changed: instead of country name, the ISO 3166 country code is saved in the field 'country'. This data is needed to comply with the PEPPOL standard. The user interface still shows the old country names. The exisiting data in the MongoDB database will need to be updated too.

@Ninarchive
Copy link
Collaborator Author

Ninarchive commented Dec 15, 2023

Scripts to change the Client data in the MongoDB:
db.getCollection('clients').find({country:'België'}).forEach(function(doc) {
db.getCollection('clients').updateMany({ _id: doc._id },{ $set: { country: 'BE'}});
})
db.getCollection('clients').find({country:'Nederland'}).forEach(function(doc) {
db.getCollection('clients').updateMany({ _id: doc._id },{ $set: { country: 'NL'}});
})
db.getCollection('clients').find({country:'UK'}).forEach(function(doc) {
db.getCollection('clients').updateMany({ _id: doc._id },{ $set: { country: 'GB'}});
})
db.getCollection('clients').find({country:'Duitsland'}).forEach(function(doc) {
db.getCollection('clients').updateMany({ _id: doc._id },{ $set: { country: 'DE'}});
})
db.getCollection('clients').find({country:'Frankrijk'}).forEach(function(doc) {
db.getCollection('clients').updateMany({ _id: doc._id },{ $set: { country: 'FR'}});
})

@Laoujin Laoujin merged commit 9f850d7 into master Dec 18, 2023
1 check failed
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

Successfully merging this pull request may close these issues.

2 participants