refactor: clear quotationId on create credit and debit notes
This commit is contained in:
parent
415ea3853d
commit
d13a4769a5
2 changed files with 4 additions and 2 deletions
|
|
@ -88,6 +88,7 @@ async function triggerDelete(id: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function triggerCreateCreditNote() {
|
async function triggerCreateCreditNote() {
|
||||||
|
pageState.quotationId = '';
|
||||||
pageState.creditDialog = true;
|
pageState.creditDialog = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -428,6 +429,8 @@ watch(
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<nav class="col-4 row justify-end">
|
<nav class="col-4 row justify-end">
|
||||||
|
{{ pageState.quotationId }}
|
||||||
|
|
||||||
<PaginationComponent
|
<PaginationComponent
|
||||||
v-model:current-page="page"
|
v-model:current-page="page"
|
||||||
v-model:max-page="pageMax"
|
v-model:max-page="pageMax"
|
||||||
|
|
@ -455,7 +458,6 @@ watch(
|
||||||
|
|
||||||
<section class="q-pa-md col full-width">
|
<section class="q-pa-md col full-width">
|
||||||
<div class="surface-1 rounded bordered q-pa-md full-height full-width">
|
<div class="surface-1 rounded bordered q-pa-md full-height full-width">
|
||||||
<!-- TODO: bind quotation id -->
|
|
||||||
<FormCredit v-model:quotation-id="pageState.quotationId" />
|
<FormCredit v-model:quotation-id="pageState.quotationId" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,7 @@ async function triggerDelete(id: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function triggerCreateDebitNote() {
|
async function triggerCreateDebitNote() {
|
||||||
|
pageState.quotationId = '';
|
||||||
pageState.debitDialog = true;
|
pageState.debitDialog = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -485,7 +486,6 @@ watch(
|
||||||
|
|
||||||
<section class="q-pa-md col full-width">
|
<section class="q-pa-md col full-width">
|
||||||
<div class="surface-1 rounded bordered q-pa-md full-height full-width">
|
<div class="surface-1 rounded bordered q-pa-md full-height full-width">
|
||||||
<!-- TODO: bind quotation id -->
|
|
||||||
<FormDebit v-model:quotation-id="pageState.quotationId" />
|
<FormDebit v-model:quotation-id="pageState.quotationId" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue