From 926108f7205fe4fd7125358183d9ee0a209b44d4 Mon Sep 17 00:00:00 2001 From: JULLIEN Baptiste Date: Wed, 1 May 2024 13:41:49 +0200 Subject: [PATCH] fix(front): reset bundle_cost_float_ttc when ttc changed --- frontend/src/routes/panel/products/reappro/+page.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/routes/panel/products/reappro/+page.svelte b/frontend/src/routes/panel/products/reappro/+page.svelte index be309a4..7dd05c6 100644 --- a/frontend/src/routes/panel/products/reappro/+page.svelte +++ b/frontend/src/routes/panel/products/reappro/+page.svelte @@ -425,6 +425,7 @@ ); // @ts-ignore newItem.bundle_cost_ttc = parsePrice(e.target?.value); + newItem.bundle_cost_float_ttc = 0.0; let r = formatPrice(newItem.bundle_cost_ttc); displayedValues.bundle_cost_ttc = r; displayedValues.bundle_cost_ht = formatPrice(newItem.bundle_cost_ht);