Browse Source

Fix float display

fix_js_vente
Gabriel Detraz 6 years ago
committed by root
parent
commit
8118c9edf2
  1. 4
      cotisations/templates/cotisations/facture.html

4
cotisations/templates/cotisations/facture.html

@ -87,7 +87,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% if articlesformset %}
var prices = {};
{% for article in articlelist %}
prices[{{ article.id|escapejs }}] = {{ article.prix }};
prices[{{ article.id|escapejs }}] = "{{ article.prix }}";
{% endfor %}
var template = `Article :  
@ -121,7 +121,7 @@ function update_price(){
if (article == '') {
continue;
}
article_price = prices[article];
article_price = parseFloat(prices[article].replace(',', '.'));
quantity = document.getElementById(
'id_form-' + i.toString() + '-quantity').value;
price += article_price * quantity;

Loading…
Cancel
Save