- {{ getLinesByType(gdtEntryType).first }}
- {{ getLinesByType(gdtEntryType).second }}
+ {{ getLinesByType.first }}
+ {{ getLinesByType.second }}
- {{ getLinesByType(gdtEntryType).firstMath }}
-
- {{ getLinesByType(gdtEntryType).secondMath }}
+
{{ getLinesByType.firstMath }}
+
+ {{ getLinesByType.secondMath }}
@@ -33,9 +33,9 @@ export default {
factor: { type: Number },
gdt: { type: Number },
},
- methods: {
- getLinesByType(givenType) {
- switch (givenType) {
+ computed: {
+ getLinesByType() {
+ switch (this.gdtEntryType) {
case GdtEntryType.FORM:
case GdtEntryType.CVS:
case GdtEntryType.ELOPAGE:
@@ -80,7 +80,7 @@ export default {
}
}
default:
- throw new Error('no additional transaction info for this type: ' + givenType)
+ throw new Error('no additional transaction info for this type: ' + this.gdtEntryType)
}
},
},