Supplier Ltd Logo Invoice #: 123
Invoice Date: 1 January 2019
Payment Due: 1 February 2019
To:
Company Name Ltd
12345 High Street
London
From:
Supplier Ltd.
John Doe
john@example.com
Payment Method Cheque No
Cheque 1000397
Item Price Qty Total
£ £ {{ item.price * item.quantity | currency }}
Total: £ {{ total | currency }}
View jQuery Invoice
            
    const app = new Vue({
        el: "table",
        data: {
            items: [
                { description: "Website design", quantity: 1, price: 300 },
                { description: "Website hosting", quantity: 1, price: 75 },
                { description: "Domain names", quantity: 1, price: 10 }
            ]
        },
        computed: {
            total() {
                return this.items.reduce(
                    (acc, item) => acc + item.price * item.quantity,
                    0
                );
            }
        },
        methods: {
            addRow() {
                this.items.push({ description: "", quantity: 1, price: 0 });
            }
        },
        filters: {
            currency(value) {
                return value.toFixed(2);
            }
        }
    });