invoice form
wayand opened this issue ยท 4 comments
wayand commented
.....Store->
state: {
newInvoice: {
inv_number: '',
inv_date: '',
client_id: '',
total: 0,
items: [
{
inv_id: 0,
date: '',
description: '',
qty: 0,
rate: 0,
price: 0
}
]
}
<template>
<form action="" @submit.prevent="onSubmit">
<div class="invoice" v-for="(i, index) in invoice.items">
<input name="inv_date" type="text" v-model="i.date">
<input name="client_id" type="text" v-model="i.description">
etc.......
</div>
</form>
</template>
ooade commented
Do you mind sending a PR?
wayand commented
Hmmm, How to do that?
ooade commented
Fork the repository
Create a new branch "Invoice" with the master branch
Add the store
Add the component
Thanks
Awaiting your PR
In case you need any help, I'm happy to offer some.
ooade commented
Perfect time to send in a PR