Skip to content

Commit

Permalink
change the layout of the new incoice form
Browse files Browse the repository at this point in the history
  • Loading branch information
manakjiri committed Feb 15, 2024
1 parent c517f70 commit aca3bdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions frontend/src/components/FakturaForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,29 @@
:key="index"
:item="item"
>
<v-col>
<v-col cols="9">
<v-text-field
v-model="item.description"
label="Popis"
density="compact"
:rules="[required]"
></v-text-field>
</v-col>
<v-col>
<v-col cols="1">
<v-text-field
v-model="item.quantity"
label="Množství"
density="compact"
></v-text-field>
</v-col>
<v-col>
<v-col cols="1">
<v-text-field
v-model="item.price"
label="Cena"
density="compact"
></v-text-field>
</v-col>
<v-col>
<v-col cols="1">
<v-text-field
v-model="item.tax"
label="DPH"
Expand Down Expand Up @@ -116,12 +116,12 @@ interface Invoice {
}
const items = reactive<Item[]>([
{ description: "", quantity: 0, price: 0, tax: 0 },
{ description: "", quantity: 1, price: 0, tax: 0 },
]);
function addItem() {
//push an empty item to the items array:
items.push({ description: "", quantity: 0, price: 0, tax: 0 });
items.push({ description: "", quantity: 1, price: 0, tax: 0 });
}
const new_invoice = ref<Invoice>({
Expand Down

0 comments on commit aca3bdb

Please sign in to comment.