Explorar el Código

[FIX] total decimals

Gogs hace 8 años
padre
commit
30026a5f8c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/CartTotal.vue

+ 1 - 1
src/components/CartTotal.vue

@@ -31,7 +31,7 @@
         },
         methods: {
             getTotal() {
-                return accounting.format(this.total, 2, '.', ',')
+                return accounting.format(this.total, this.decimals, '.', ',')
             },
             getSymbol() {
                 return this.symbol