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

Gestion de la TVA dans le tunnel de vente #1383

Merged
merged 4 commits into from
Dec 16, 2023
Merged

Gestion de la TVA dans le tunnel de vente #1383

merged 4 commits into from
Dec 16, 2023

Conversation

agallou
Copy link
Member

@agallou agallou commented Dec 10, 2023

On affiche le prix HT unitaire, le prix HT, et précise quand les tarifs sont en TTC.
Sur le total on ajoute des entêtes pour clarifier le tableau vu les infos ajoutées.

fixes #1355

sans TVA:
Screenshot 2023-12-10 at 14-09-40 Prenez votre place pour le forum

avec TVA:
Screenshot 2023-12-10 at 14-09-15 Prenez votre place pour le forum

On affiche le prix HT unitaire, le prix HT, et précise quand les tarifs
sont en TTC.
@agallou agallou changed the title gestion de la TVA dans le tunnel de vente Gestion de la TVA dans le tunnel de vente Dec 10, 2023
Comment on lines 7 to 26
var isSubjectedToVat = $('#ticketing').data('is-subjected-to-vat') == 1;


var computeWithoutTaxesPriceFromPriceWithTaxes = function (price) {
return price / (1 + 0.1); // on a 10% sur la billeterie
}

var computeWithoutTaxesPriceFromPriceWithTaxesConditionally = function (price) {
if (!isSubjectedToVat) {
return price;
}

return computeWithoutTaxesPriceFromPriceWithTaxes(price);
}

var formatPrice = function (price) {
let formatter = Intl.NumberFormat(
'fr-FR',
{
minimumFractionDigits: 2,
Copy link
Contributor

Choose a reason for hiding this comment

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

Let ou const est préférable coté js @agallou

Copy link
Contributor

@vinceAmstoutz vinceAmstoutz left a comment

Choose a reason for hiding this comment

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

Super tout ça 🙂🎉

@agallou agallou merged commit a49de0a into master Dec 16, 2023
10 checks passed
@agallou agallou deleted the vat_tunnel branch December 16, 2023 14:37
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.

Fiscalisation : gestion de la TVA sur le tunnel de vente
3 participants