Explorar el Código

[ADD] customer information un pos summary display

Gogs hace 7 años
padre
commit
2daf995f82
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/components/SummaryDisplay.vue

+ 3 - 1
src/components/SummaryDisplay.vue

@@ -1,6 +1,7 @@
 <template lang="pug">
     .summary
         h2 {{ getTotal() }}
+        h3 {{ customer.name }}
 </template>
 
 <script>
@@ -8,7 +9,8 @@
 
     export default {
         computed: mapGetters({
-            total: 'getTotal'
+            total: 'getTotal',
+            customer: 'getSelectedCustomer'
         }),
         methods: {
             getTotal() {