@@ -3,7 +3,7 @@
h2.product-title {{ data.name }}
img.product-image(:src="this.data.image_medium ? 'data:image/png;base64,' + this.data.image_medium : '/web/static/src/img/placeholder.png'")
.product-price
- span Gs {{ data.list_price }}
+ span {{ getPrice() }}
.product-qty
</template>
@@ -28,7 +28,9 @@
}
},
methods: {
- // TODO
+ getPrice() {
+ return accounting.formatMoney(this.data.list_price, '₲', 0, '.', ',')
+ },
drawImage() {
let ctx = this.$el.querySelector('.product-image').getContext('2d')
let img = new Image()