Quellcode durchsuchen

[Administration] Produits : problème saisie prix via TTC (NaN)

feature/rotating_product
Guillaume Bourgeois vor 5 Monaten
Ursprung
Commit
3d83421ae7
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. +4
    -2
      backend/web/js/backend.js

+ 4
- 2
backend/web/js/backend.js Datei anzeigen

@@ -322,7 +322,11 @@ function opendistrib_products_event_price_with_tax() {

function opendistrib_products_event_price() {
taxRateSelected = $('#product-id_tax_rate').find('option:selected').data('tax-rate-value');
if (typeof taxRateSelected == 'undefined') {
taxRateSelected = 0;
}
var priceWithTax = $('#product-price-with-tax').val();
if (priceWithTax) {
$('#product-price').val(getPrice(priceWithTax, taxRateSelected));
// formattage
@@ -391,7 +395,6 @@ function opendistrib_product_prices_event_price_with_tax() {
$('#productprice-price-with-tax').val(getPriceWithTax(price, taxRateValue));
// formattage
$('#productprice-price').val(parseFloat(price).toFixed(5));

opendistrib_product_prices_update_reduction_increase();
}
}
@@ -403,7 +406,6 @@ function opendistrib_product_prices_event_price() {
$('#productprice-price').val(getPrice(priceWithTax, taxRateValue));
// formattage
$('#productprice-price-with-tax').val(parseFloat(priceWithTax).toFixed(2));

opendistrib_product_prices_update_reduction_increase();
}
}

Laden…
Abbrechen
Speichern