Skip to content

Commit

Permalink
fix tva display
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptTF committed Apr 12, 2024
1 parent e0929c1 commit 93081c2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/routes/panel/products/reappro/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
amount_of_bundle: string;
amount_per_bundle: string;
bundle_cost_ht: string;
tva: number;
tva: string;
bundle_cost_ttc: string;
};
Expand All @@ -52,7 +52,7 @@
amount_of_bundle: 'Nombre de lots',
amount_per_bundle: 'Nombre de produits par lots',
bundle_cost_ht: "Prix d'un lot HT",
tva: 0,
tva: "0",
bundle_cost_ttc: "Prix d'un lot TTC"
};
Expand Down Expand Up @@ -119,7 +119,7 @@
amount_of_bundle: 'Nombre de lots',
amount_per_bundle: 'Nombre de produits par lots',
bundle_cost_ht: "Prix d'un lot HT",
tva: 0,
tva: "0",
bundle_cost_ttc: "Prix d'un lot TTC"
};
newItem = {
Expand Down Expand Up @@ -290,7 +290,7 @@
item.prices.coutant / (1 + (item.last_tva ?? 0) / 10000)
);
displayedValues.item_price_calc = item.prices.coutant;
displayedValues.tva = item.last_tva ?? 0;
displayedValues.tva = (item.last_tva ?? 0).toString();
newItem.tva = item.last_tva ?? 0;
newItem.item_id = item.id;
searchName = '';
Expand Down Expand Up @@ -438,9 +438,9 @@
amount_of_bundle: 'Nombre de lots',
amount_per_bundle: 'Nombre de produits par lots',
bundle_cost_ht: "Prix d'un lot HT",
tva: 0,
tva: "0",
bundle_cost_ttc: "Prix d'un lot TTC"
};
};
newItem = {
item_id: '',
amount_of_bundle: 0,
Expand Down

0 comments on commit 93081c2

Please sign in to comment.