Author: Hugo Melo <hugo@riseup.net>
Use input#number instead of text in price
plugins/suppliers/public/javascripts/views/product-modal.tag.slim | 2
diff --git a/plugins/suppliers/public/javascripts/views/product-modal.tag.slim b/plugins/suppliers/public/javascripts/views/product-modal.tag.slim index 73853576501c7b53af095a2386bf4ba071d02f3b..10b0da7d8be54509b20396af232d39a3bfb870ec 100644 --- a/plugins/suppliers/public/javascripts/views/product-modal.tag.slim +++ b/plugins/suppliers/public/javascripts/views/product-modal.tag.slim @@ -60,7 +60,7 @@ .form-group label for="p-supplier-price" |{t("views.product.the_supplier_price")} - input type="text" value="{product.supplier_price}" id='p-supplier-price' oninput="{updatePrice}" + input type="number" value="{product.supplier_price}" id='p-supplier-price' oninput="{updatePrice}" .form-group p.final_price